MediaProjectionService
Foreground bound service that manages screen recorder streamers.
To customise this service, you have to extend this class.
In your AndroidManifest, you have to add:
To customize notification, you can override:
R.string.service_notification_* string values
override open onNotification methods: onOpenNotification, onCloseNotification and onErrorNotification
Parameters
the streamer factory
the notification id a unique number
the notification channel id
A string resource identifier for the user visible name of the notification channel.
A string resource identifier for the user visible description of the notification channel.
A drawable resource identifier for the user visible icon of the notification channel.
Constructors
Properties
Functions
Creates the default audio source.
Creates the default video source.
Called when streamer is closed
Called when the service is created
Called when an error happens
Calls in onBind or onStartCommand with the Intent.getExtras passed in the Intent.
Called when the streamer is opened
Called when the streamer is stopped.
Sets the media projection to the streamer.