Android APIs
public static abstract class

MediaController.Callback

extends Object
java.lang.Object
   ↳ android.media.session.MediaController.Callback

Class Overview

Callback for receiving updates on from the session. A Callback can be registered using addCallback(MediaController.Callback)

Summary

Public Constructors
MediaController.Callback()
Public Methods
void onMetadataChanged(MediaMetadata metadata)
Override to handle changes to the current metadata.
void onPlaybackStateChanged(PlaybackState state)
Override to handle changes in playback state.
void onSessionEvent(String event, Bundle extras)
Override to handle custom events sent by the session owner without a specified interface.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MediaController.Callback ()

Public Methods

public void onMetadataChanged (MediaMetadata metadata)

Override to handle changes to the current metadata.

Parameters
metadata The current metadata for the session or null
See Also

public void onPlaybackStateChanged (PlaybackState state)

Override to handle changes in playback state.

Parameters
state The new playback state of the session

public void onSessionEvent (String event, Bundle extras)

Override to handle custom events sent by the session owner without a specified interface. Controllers should only handle these for sessions they own.