public interface

SessionToken.OnSessionTokenCreatedListener

 androidx.media2.session.SessionToken.OnSessionTokenCreatedListener

Overview

Interface definition of a listener to be invoked when a token2 object is created from a .

Summary

Methods
public voidonSessionTokenCreated(android.support.v4.media.session.MediaSessionCompat.Token compatToken, SessionToken sessionToken)

Called when SessionToken object is created.

Methods

public void onSessionTokenCreated(android.support.v4.media.session.MediaSessionCompat.Token compatToken, SessionToken sessionToken)

Called when SessionToken object is created.

Parameters:

compatToken: the compat token used for creating token2
sessionToken: the created SessionToken object