1 // Copyright 2014 Google Inc. All Rights Reserved. 2 3 package android.service.media; 4 5 import android.content.res.Configuration; 6 import android.service.media.IMediaBrowserServiceCallbacks; 7 import android.net.Uri; 8 import android.os.Bundle; 9 import android.os.ResultReceiver; 10 11 /** 12 * Media API allows clients to browse through hierarchy of a users media collection, 13 * playback a specific media entry and interact with the now playing queue. 14 * @hide 15 */ 16 oneway interface IMediaBrowserService { 17 void connect(String pkg, in Bundle rootHints, IMediaBrowserServiceCallbacks callbacks); 18 void disconnect(IMediaBrowserServiceCallbacks callbacks); 19 20 void addSubscriptionDeprecated(String uri, IMediaBrowserServiceCallbacks callbacks); 21 void removeSubscriptionDeprecated(String uri, IMediaBrowserServiceCallbacks callbacks); 22 23 void getMediaItem(String uri, in ResultReceiver cb, IMediaBrowserServiceCallbacks callbacks); 24 void addSubscription(String uri, in IBinder token, in Bundle options, 25 IMediaBrowserServiceCallbacks callbacks); 26 void removeSubscription(String uri, in IBinder token, IMediaBrowserServiceCallbacks callbacks); 27 } 28