Skip to content

Commit

Permalink
Merge pull request #687 from jasonwuamzn/patch-1
Browse files Browse the repository at this point in the history
Add contactFeature ScreenRecording enabled sample
  • Loading branch information
jagadeeshaby authored Jun 16, 2023
2 parents b18854e + a166305 commit 932ad6a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cheat-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,4 +347,14 @@
agent.mute();
}
}
```
```
## Check if connected contact has ScreenRecording Enabled
```js
connect.contact(function (contact) {
contact.onConnected(function (connectedContact) {
const isScreenRecordingEnabled = connectedContact.getContactFeatures()?.screenRecordingConfig?.screenRecordingEnabled ?? false
console.log(`contact isScreenRecordingEnabled: ${isScreenRecordingEnabled}`)
});
});
```

0 comments on commit 932ad6a

Please sign in to comment.