MediaSessionService.Listener


@UnstableApi
public interface MediaSessionService.Listener


Listener for MediaSessionService.

The methods will be called on the main thread.

Summary

Public methods

default void

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

Public methods

onForegroundServiceStartNotAllowedException

@RequiresApi(value = 31)
default void onForegroundServiceStartNotAllowedException()

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