/**@class android.media.RemoteController.OnClientUpdateListener Interface definition for the callbacks to be invoked whenever media events, metadata and playback status are available. */ var OnClientUpdateListener = { /**Called whenever all information, previously received through the other methods of the listener, is no longer valid and is about to be refreshed. This is typically called whenever a new {@link android.media.RemoteControlClient} has been selected by the system to have its media information published. @param {Boolean} clearing true if there is no selected RemoteControlClient and no information is available. */ onClientChange : function( ) {}, /**Called whenever the playback state has changed. It is called when no information is known about the playback progress in the media and the playback speed. @param {Number} state one of the playback states authorized in {@link RemoteControlClient#setPlaybackState(int)}. */ onClientPlaybackStateUpdate : function( ) {}, /**Called whenever the playback state has changed, and playback position and speed are known. @param {Number} state one of the playback states authorized in {@link RemoteControlClient#setPlaybackState(int)}. @param {Number} stateChangeTimeMs the system time at which the state change was reported, expressed in ms. Based on {@link android.os.SystemClock#elapsedRealtime()}. @param {Number} currentPosMs a positive value for the current media playback position expressed in ms, a negative value if the position is temporarily unknown. @param {Number} speed a value expressed as a ratio of 1x playback: 1.0f is normal playback, 2.0f is 2x, 0.5f is half-speed, -2.0f is rewind at 2x speed. 0.0f means nothing is playing (e.g. when state is {@link RemoteControlClient#PLAYSTATE_ERROR}). */ onClientPlaybackStateUpdate : function( ) {}, /**Called whenever the transport control flags have changed. @param {Number} transportControlFlags one of the flags authorized in {@link RemoteControlClient#setTransportControlFlags(int)}. */ onClientTransportControlUpdate : function( ) {}, /**Called whenever new metadata is available. See the {@link android.media.MediaMetadataEditor#putLong(int, long)}, {@link android.media.MediaMetadataEditor#putString(int, String)}, {@link android.media.MediaMetadataEditor#putBitmap(int, Bitmap)}, and {@link android.media.MediaMetadataEditor#putObject(int, Object)} methods for the various keys that can be queried. @param {Object {RemoteController.MetadataEditor}} metadataEditor the container of the new metadata. */ onClientMetadataUpdate : function( ) {}, };