public interface

MediaSessionService.Listener

 androidx.media3.session.MediaSessionService.Listener

Overview

Listener for MediaSessionService.

The methods will be called on the main thread.

Summary

Methods
public voidonForegroundServiceStartNotAllowedException()

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

Methods

public void onForegroundServiceStartNotAllowedException()

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