ScreenCaptureInitializer

class ScreenCaptureInitializer(activity: Activity, requestCode: Int = Int.MAX_VALUE - 1024) : IScreenCaptureInitializer

Screen capture initializer designed for use with android.app.Activity and the android.app.Activity.startActivityForResult / processActivityResult methods.

To use, override Activity.processActivityResult and call ScreenCaptureInitializer.processActivityResult.

Parameters

activity

The activity that owns the com.cygnusreach.IRemoteSupportClient

requestCode

The request code used when launching the Context.MEDIA_PROJECTION_SERVICE activity

Constructors

Link copied to clipboard
fun ScreenCaptureInitializer(activity: Activity, requestCode: Int = Int.MAX_VALUE - 1024)

Functions

Link copied to clipboard
fun processActivityResult(    requestCode: Int,     resultCode: Int,     data: Intent?)

Process the result for the request made in requestMediaProjectionService

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

Returns an android media projection service screen capture intent