FileDocCategorySizeDatePackage
MediaControllerCompatApi21.javaAPI DocAndroid 5.1 API10973Thu Mar 12 22:22:56 GMT 2015android.support.v4.media.session

MediaControllerCompatApi21

public class MediaControllerCompatApi21 extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidadjustVolume(java.lang.Object controllerObj, int direction, int flags)

        ((MediaController) controllerObj).adjustVolume(direction, flags);
    
public static java.lang.ObjectcreateCallback(android.support.v4.media.session.MediaControllerCompatApi21$Callback callback)

        return new CallbackProxy<Callback>(callback);
    
public static booleandispatchMediaButtonEvent(java.lang.Object controllerObj, android.view.KeyEvent event)

        return ((MediaController) controllerObj).dispatchMediaButtonEvent(event);
    
public static java.lang.ObjectfromToken(android.content.Context context, java.lang.Object sessionToken)

        return new MediaController(context, (MediaSession.Token) sessionToken);
    
public static android.os.BundlegetExtras(java.lang.Object controllerObj)

        return ((MediaController) controllerObj).getExtras();
    
public static longgetFlags(java.lang.Object controllerObj)

        return ((MediaController) controllerObj).getFlags();
    
public static java.lang.ObjectgetMetadata(java.lang.Object controllerObj)

        return ((MediaController)controllerObj).getMetadata();
    
public static java.lang.StringgetPackageName(java.lang.Object controllerObj)

        return ((MediaController) controllerObj).getPackageName();
    
public static java.lang.ObjectgetPlaybackInfo(java.lang.Object controllerObj)

        return ((MediaController) controllerObj).getPlaybackInfo();
    
public static java.lang.ObjectgetPlaybackState(java.lang.Object controllerObj)

        return ((MediaController)controllerObj).getPlaybackState();
    
public static java.util.ListgetQueue(java.lang.Object controllerObj)

        List<MediaSession.QueueItem> queue = ((MediaController) controllerObj).getQueue();
        if (queue == null) {
            return null;
        }
        List<Object> queueObjs = new ArrayList<Object>(queue);
        return queueObjs;
    
public static java.lang.CharSequencegetQueueTitle(java.lang.Object controllerObj)

        return ((MediaController) controllerObj).getQueueTitle();
    
public static intgetRatingType(java.lang.Object controllerObj)

        return ((MediaController) controllerObj).getRatingType();
    
public static android.app.PendingIntentgetSessionActivity(java.lang.Object controllerObj)

        return ((MediaController) controllerObj).getSessionActivity();
    
public static java.lang.ObjectgetTransportControls(java.lang.Object controllerObj)

        return ((MediaController)controllerObj).getTransportControls();
    
public static voidregisterCallback(java.lang.Object controllerObj, java.lang.Object callbackObj, android.os.Handler handler)

        ((MediaController) controllerObj).registerCallback(
                (MediaController.Callback)callbackObj, handler);
    
public static voidsendCommand(java.lang.Object controllerObj, java.lang.String command, android.os.Bundle params, android.os.ResultReceiver cb)

        ((MediaController) controllerObj).sendCommand(command, params, cb);
    
public static voidsetVolumeTo(java.lang.Object controllerObj, int value, int flags)

        ((MediaController) controllerObj).setVolumeTo(value, flags);
    
public static voidunregisterCallback(java.lang.Object controllerObj, java.lang.Object callbackObj)

        ((MediaController) controllerObj)
                .unregisterCallback((MediaController.Callback) callbackObj);