FileDocCategorySizeDatePackage
RemoteControlClientCompat.javaAPI DocAndroid 5.1 API7198Thu Mar 12 22:22:56 GMT 2015android.support.v7.media

RemoteControlClientCompat

public abstract class RemoteControlClientCompat extends Object
Provides access to features of the remote control client. Hidden for now but we might want to make this available to applications in the future.

Fields Summary
protected final android.content.Context
mContext
protected final Object
mRcc
protected VolumeCallback
mVolumeCallback
Constructors Summary
protected RemoteControlClientCompat(android.content.Context context, Object rcc)

        mContext = context;
        mRcc = rcc;
    
Methods Summary
public java.lang.ObjectgetRemoteControlClient()

        return mRcc;
    
public static android.support.v7.media.RemoteControlClientCompatobtain(android.content.Context context, java.lang.Object rcc)

        if (Build.VERSION.SDK_INT >= 16) {
            return new JellybeanImpl(context, rcc);
        }
        return new LegacyImpl(context, rcc);
    
public voidsetPlaybackInfo(android.support.v7.media.RemoteControlClientCompat$PlaybackInfo info)
Sets the current playback information. Must be called at least once to attach to the remote control client.

param
info The playback information. Must not be null.

    
public voidsetVolumeCallback(android.support.v7.media.RemoteControlClientCompat$VolumeCallback callback)
Sets a callback to receive volume change requests from the remote control client.

param
callback The volume callback to use or null if none.

        mVolumeCallback = callback;