Request for screen capturing, and return a Promise of ScreenCapturer. If user rejects or encounters an error, it will throw a ScreenCaptureRequestError.
Request for screen capturing needs to start a new Activity, so that on Android 10 and higher, only the app is in the foreground can request. And the app must keep the foreground service running while capturing, otherwise it will not receive new images.
Screen capturing options
Context for starting the request for screen capturing, usually no need to pass this parameter
This module can request screen capture permission, get screen capture and listen screen capture events.
Image