ScreenCaptureInitializer
class ScreenCaptureInitializer(activity: Activity, requestCode: Int = Int.MAX_VALUE - 1024) : IScreenCaptureInitializer
Content copied to clipboard
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)
Content copied to clipboard
Functions
Link copied to clipboard
fun processActivityResult( requestCode: Int, resultCode: Int, data: Intent?)
Content copied to clipboard
Process the result for the request made in requestMediaProjectionService
Link copied to clipboard
Returns an android media projection service screen capture intent