android.media
Class RemoteControlClient

java.lang.Object
  extended by android.media.RemoteControlClient

public class RemoteControlClient
extends Object


Nested Class Summary
 class RemoteControlClient.MetadataEditor
           
 
Field Summary
static int FLAG_KEY_MEDIA_FAST_FORWARD
           
static int FLAG_KEY_MEDIA_NEXT
           
static int FLAG_KEY_MEDIA_PAUSE
           
static int FLAG_KEY_MEDIA_PLAY
           
static int FLAG_KEY_MEDIA_PLAY_PAUSE
           
static int FLAG_KEY_MEDIA_PREVIOUS
           
static int FLAG_KEY_MEDIA_REWIND
           
static int FLAG_KEY_MEDIA_STOP
           
static int PLAYSTATE_BUFFERING
           
static int PLAYSTATE_ERROR
           
static int PLAYSTATE_FAST_FORWARDING
           
static int PLAYSTATE_PAUSED
           
static int PLAYSTATE_PLAYING
           
static int PLAYSTATE_REWINDING
           
static int PLAYSTATE_SKIPPING_BACKWARDS
           
static int PLAYSTATE_SKIPPING_FORWARDS
           
static int PLAYSTATE_STOPPED
           
 
Constructor Summary
RemoteControlClient(PendingIntent mediaButtonIntent)
           
RemoteControlClient(PendingIntent mediaButtonIntent, Looper looper)
           
 
Method Summary
 RemoteControlClient.MetadataEditor editMetadata(boolean startEmpty)
           
 void setPlaybackState(int state)
           
 void setTransportControlFlags(int transportControlFlags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLAYSTATE_STOPPED

public static final int PLAYSTATE_STOPPED
See Also:
Constant Field Values

PLAYSTATE_PAUSED

public static final int PLAYSTATE_PAUSED
See Also:
Constant Field Values

PLAYSTATE_PLAYING

public static final int PLAYSTATE_PLAYING
See Also:
Constant Field Values

PLAYSTATE_FAST_FORWARDING

public static final int PLAYSTATE_FAST_FORWARDING
See Also:
Constant Field Values

PLAYSTATE_REWINDING

public static final int PLAYSTATE_REWINDING
See Also:
Constant Field Values

PLAYSTATE_SKIPPING_FORWARDS

public static final int PLAYSTATE_SKIPPING_FORWARDS
See Also:
Constant Field Values

PLAYSTATE_SKIPPING_BACKWARDS

public static final int PLAYSTATE_SKIPPING_BACKWARDS
See Also:
Constant Field Values

PLAYSTATE_BUFFERING

public static final int PLAYSTATE_BUFFERING
See Also:
Constant Field Values

PLAYSTATE_ERROR

public static final int PLAYSTATE_ERROR
See Also:
Constant Field Values

FLAG_KEY_MEDIA_PREVIOUS

public static final int FLAG_KEY_MEDIA_PREVIOUS
See Also:
Constant Field Values

FLAG_KEY_MEDIA_REWIND

public static final int FLAG_KEY_MEDIA_REWIND
See Also:
Constant Field Values

FLAG_KEY_MEDIA_PLAY

public static final int FLAG_KEY_MEDIA_PLAY
See Also:
Constant Field Values

FLAG_KEY_MEDIA_PLAY_PAUSE

public static final int FLAG_KEY_MEDIA_PLAY_PAUSE
See Also:
Constant Field Values

FLAG_KEY_MEDIA_PAUSE

public static final int FLAG_KEY_MEDIA_PAUSE
See Also:
Constant Field Values

FLAG_KEY_MEDIA_STOP

public static final int FLAG_KEY_MEDIA_STOP
See Also:
Constant Field Values

FLAG_KEY_MEDIA_FAST_FORWARD

public static final int FLAG_KEY_MEDIA_FAST_FORWARD
See Also:
Constant Field Values

FLAG_KEY_MEDIA_NEXT

public static final int FLAG_KEY_MEDIA_NEXT
See Also:
Constant Field Values
Constructor Detail

RemoteControlClient

public RemoteControlClient(PendingIntent mediaButtonIntent)

RemoteControlClient

public RemoteControlClient(PendingIntent mediaButtonIntent,
                           Looper looper)
Method Detail

editMetadata

public RemoteControlClient.MetadataEditor editMetadata(boolean startEmpty)

setPlaybackState

public void setPlaybackState(int state)

setTransportControlFlags

public void setTransportControlFlags(int transportControlFlags)


Copyright © 2008-2012. All Rights Reserved.