RemoteSupport

object RemoteSupport

Static methods to manage the RemoteSupportService and related singleton objects

Functions

Link copied to clipboard
fun configureRemoteSupport(    serviceUrl: String,     key: String,     serviceIcon: Int = 0,     serviceTitle: String = "Remote Support")

Set configuration options for the RemoteSupportService.

Link copied to clipboard
suspend fun getProxy(scope: CoroutineScope): IClientProxy

Get a proxy to an IRemoteSupportClient owned by the RemoteSupportService.

Link copied to clipboard
suspend fun getScreenCaptureInitializer(): IScreenCaptureInitializer

Returns the IScreenCaptureInitializer set with setScreenCaptureInitializer. If no IScreenCaptureInitializer has been provided, this method will suspend until setScreenCaptureInitializer is called

Link copied to clipboard
suspend fun isClientConnected(): Boolean

Can be used to determine if the RemoteSupportService is running and the IRemoteSupportClient is connected to a peer.

Link copied to clipboard
fun setScreenCaptureInitializer(screenCaptureInitializer: IScreenCaptureInitializer)

Store a IScreenCaptureInitializer as a singleton object

Link copied to clipboard
suspend fun startService(context: Context)

Start the RemoteSupportService foreground service

Link copied to clipboard
fun stopService(context: Context)

Stop the RemoteSupportService foreground service and cleanup related resources