AppCompatScreenCaptureInitializer

Screen capture initializer for use in IRemoteSupportClient.addScreenSharing. This class must be initialized in ComponentActivity.onCreate, then can be used to create an instance of VideoStreamConfiguration that can be passed to IRemoteSupportClient.addScreenSharing.

Due to Android platform limitations, this class can only be used with an instance of IRemoteSupportClient hosted in an Android foreground service. You can create your own foreground service or use the RemoteSupportService provided in this package.

Constructors

Link copied to clipboard
fun AppCompatScreenCaptureInitializer(activity: ComponentActivity)

Create empty App compat screen capture initializer

Functions

Link copied to clipboard
open suspend override fun requestMediaProjectionService(): Intent