Added in API level 29

OnSession2TokensChangedListener


interface OnSession2TokensChangedListener
android.media.session.MediaSessionManager.OnSession2TokensChangedListener

This API is not generally intended for third party application developers. Use the AndroidX Media2 session Library for consistent behavior across all devices.

Listens for changes to the getSession2Tokens(). This can be added using addOnSession2TokensChangedListener(android.media.session.MediaSessionManager.OnSession2TokensChangedListener,android.os.Handler).

Summary

Public methods
abstract Unit

Called when the getSession2Tokens() is changed.

Public methods

onSession2TokensChanged

Added in API level 29
abstract fun onSession2TokensChanged(tokens: MutableList<Session2Token!>): Unit

Called when the getSession2Tokens() is changed.

Parameters
tokens MutableList<Session2Token!>: list of Session2Token This value cannot be null.