MediaSessionService.Listener


@UnstableApi
interface MediaSessionService.Listener


Listener for MediaSessionService.

The methods will be called on the main thread.

Summary

Public functions

Unit

Called when the service fails to start in the foreground and a is thrown on Android 12 or later.

Public functions

onForegroundServiceStartNotAllowedException

@RequiresApi(value = 31)
fun onForegroundServiceStartNotAllowedException(): Unit

Called when the service fails to start in the foreground and a is thrown on Android 12 or later.