blob: 6e469680230ea4c7fab5622a1e0ee2fe7ada3696 [file] [log] [blame]
// Copyright 2015 Google Inc. All Rights Reserved.
import android.os.Bundle;
import java.util.List;
* Media API allows clients to browse through hierarchy of a user’s media collection,
* playback a specific media entry and interact with the now playing queue.
* @hide
oneway interface IMediaBrowserServiceCallbacks {
* Invoked when the connected has been established.
* @param root The root media id for browsing.
* @param session The {@link MediaSession.Token media session token} that can be used to control
* the playback of the media app.
* @param extra Extras returned by the media service.
void onConnect(String root, in MediaSessionCompat.Token session, in Bundle extras);
void onConnectFailed();
void onLoadChildren(String mediaId, in List list);