RootSourceClient

constructor(context: Context, sourceId: SourceId, coroutineDispatcher: CoroutineDispatcher = Options.mediaCoroutineDispatcher)

Parameters

context

Android context.

sourceId

ID of the source to connect to.

coroutineDispatcher

The coroutine dispatcher to use to launch background operations. The most common are IPC requests via Binder. Defaults to the IO dispatcher.