FileDocCategorySizeDatePackage
IRemoteControlClient.javaAPI DocAndroid 5.1 API13174Sat Mar 14 05:48:10 GMT 2015android.media

IRemoteControlClient

public interface IRemoteControlClient implements android.os.IInterface
hide
Interface registered by AudioManager to notify a source of remote control information that information is requested to be displayed on the remote control (through IRemoteControlDisplay). {@see AudioManager#registerRemoteControlClient(RemoteControlClient)}.

Fields Summary
Constructors Summary
Methods Summary
public voidenableRemoteControlDisplay(android.media.IRemoteControlDisplay rcd, boolean enabled)

public voidinformationRequestForDisplay(android.media.IRemoteControlDisplay rcd, int w, int h)
Notifies a remote control client that information for the given generation ID is requested for the given IRemoteControlDisplay alone.

param
rcd the display to which current info should be sent

public voidonInformationRequested(int generationId, int infoFlags)
Notifies a remote control client that information for the given generation ID is requested. If the flags contains {@link RemoteControlClient#FLAG_INFORMATION_REQUESTED_ALBUM_ART} then the width and height parameters are valid.

param
generationId
param
infoFlags FIXME: is infoFlags required? since the RCC pushes info, this might always be called with RC_INFO_ALL

public voidplugRemoteControlDisplay(android.media.IRemoteControlDisplay rcd, int w, int h)

public voidseekTo(int clientGeneration, long timeMs)

public voidsetBitmapSizeForDisplay(android.media.IRemoteControlDisplay rcd, int w, int h)

public voidsetCurrentClientGenerationId(int clientGeneration)
Sets the generation counter of the current client that is displayed on the remote control.

public voidsetWantsSyncForDisplay(android.media.IRemoteControlDisplay rcd, boolean wantsSync)

public voidunplugRemoteControlDisplay(android.media.IRemoteControlDisplay rcd)

public voidupdateMetadata(int clientGeneration, int key, android.media.Rating value)