ScreenCapturerAndroid

constructor(mediaProjectionPermissionResultData: Intent, mediaProjectionCallback: MediaProjection.Callback)

Constructs a new Screen Capturer.

Parameters

mediaProjectionPermissionResultData

the result data of MediaProjection permission activity; the calling app must validate that result code is Activity.RESULT_OK before calling this method.

mediaProjectionCallback

MediaProjection callback to implement application specific logic in events such as when the user revokes a previously granted capture permission.