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 
10 /**
11  * Media API allows clients to browse through hierarchy of a user’s media collection,
12  * playback a specific media entry and interact with the now playing queue.
13  * @hide
14  */
15 oneway interface IMediaBrowserService {
connect(String pkg, in Bundle rootHints, IMediaBrowserServiceCallbacks callbacks)16     void connect(String pkg, in Bundle rootHints, IMediaBrowserServiceCallbacks callbacks);
disconnect(IMediaBrowserServiceCallbacks callbacks)17     void disconnect(IMediaBrowserServiceCallbacks callbacks);
18 
addSubscription(String uri, IMediaBrowserServiceCallbacks callbacks)19     void addSubscription(String uri, IMediaBrowserServiceCallbacks callbacks);
removeSubscription(String uri, IMediaBrowserServiceCallbacks callbacks)20     void removeSubscription(String uri, IMediaBrowserServiceCallbacks callbacks);
21 }