Can I detect when a user is screen sharing?

Generated on 8/2/2024

1 search

Yes, you can detect when a user is screen sharing by utilizing the system's start broadcast button each time they start a screen capture or share. This is particularly relevant for visionOS, where the system will automatically replace the normally black background with the passthrough camera's view, enabling the "see what I see" capability in your captures. This feature requires the use of a broadcast upload extension to receive the feed and visionOS's built-in broadcast feature through ReplayKit.

For more details, you can refer to the session Introducing enterprise APIs for visionOS.

Relevant Sessions

  1. Introducing enterprise APIs for visionOS
  2. Capture HDR content with ScreenCaptureKit