launch
fun launch(context: Context, serviceClass: Class<out ScreenRecorderRtmpLiveService>, enableAudio: Boolean, onServiceCreated: (ScreenRecorderRtmpLiveStreamer) -> Unit, onServiceDisconnected: (name: ComponentName?) -> Unit)
Starts and binds the service with the appropriate parameters.
Parameters
context
The application context.
serviceClass
The children service class.
enableAudio
Boolean.true to also capture audio. False to disable audio capture.
onServiceCreated
Callback that returns the ScreenRecorderRtmpLiveStreamer instance when the service has been connected.
onServiceDisconnected
Callback that will be called when the service is disconnected.