Use this API to listen for when the user takes a screenshot. This can be used to show sharing prompts or track screenshot events.
Parameters
Code Example
Basic Usage
Show Share Prompt
Track Screenshot Events
Sensitive Content Warning
Use this API to provide helpful sharing options or remind users about sensitive content when they take screenshots.
my.offUserCaptureScreen
Stop listening for screenshots
my.showSharePanel
Show share panel