1package android.support.v7.app {
2
3  public class MediaRouteActionProvider extends android.support.v4.view.ActionProvider {
4    ctor public MediaRouteActionProvider(android.content.Context);
5    method public android.support.v7.app.MediaRouteDialogFactory getDialogFactory();
6    method public android.support.v7.app.MediaRouteButton getMediaRouteButton();
7    method public android.support.v7.media.MediaRouteSelector getRouteSelector();
8    method public android.view.View onCreateActionView();
9    method public android.support.v7.app.MediaRouteButton onCreateMediaRouteButton();
10    method public void setDialogFactory(android.support.v7.app.MediaRouteDialogFactory);
11    method public void setRouteSelector(android.support.v7.media.MediaRouteSelector);
12  }
13
14  public class MediaRouteButton extends android.view.View {
15    ctor public MediaRouteButton(android.content.Context);
16    ctor public MediaRouteButton(android.content.Context, android.util.AttributeSet);
17    ctor public MediaRouteButton(android.content.Context, android.util.AttributeSet, int);
18    method public android.support.v7.app.MediaRouteDialogFactory getDialogFactory();
19    method public android.support.v7.media.MediaRouteSelector getRouteSelector();
20    method public void onAttachedToWindow();
21    method public void onDetachedFromWindow();
22    method public void setDialogFactory(android.support.v7.app.MediaRouteDialogFactory);
23    method public void setRouteSelector(android.support.v7.media.MediaRouteSelector);
24    method public boolean showDialog();
25  }
26
27  public class MediaRouteChooserDialog extends android.app.Dialog {
28    ctor public MediaRouteChooserDialog(android.content.Context);
29    ctor public MediaRouteChooserDialog(android.content.Context, int);
30    method public android.support.v7.media.MediaRouteSelector getRouteSelector();
31    method public boolean onFilterRoute(android.support.v7.media.MediaRouter.RouteInfo);
32    method public void onFilterRoutes(java.util.List<android.support.v7.media.MediaRouter.RouteInfo>);
33    method public void refreshRoutes();
34    method public void setRouteSelector(android.support.v7.media.MediaRouteSelector);
35  }
36
37  public class MediaRouteChooserDialogFragment extends android.support.v4.app.DialogFragment {
38    ctor public MediaRouteChooserDialogFragment();
39    method public android.support.v7.media.MediaRouteSelector getRouteSelector();
40    method public android.support.v7.app.MediaRouteChooserDialog onCreateChooserDialog(android.content.Context, android.os.Bundle);
41    method public void setRouteSelector(android.support.v7.media.MediaRouteSelector);
42  }
43
44  public class MediaRouteControllerDialog extends android.app.Dialog {
45    ctor public MediaRouteControllerDialog(android.content.Context);
46    ctor public MediaRouteControllerDialog(android.content.Context, int);
47    method public android.view.View getMediaControlView();
48    method public android.support.v4.media.session.MediaSessionCompat.Token getMediaSession();
49    method public android.support.v7.media.MediaRouter.RouteInfo getRoute();
50    method public boolean isVolumeControlEnabled();
51    method public android.view.View onCreateMediaControlView(android.os.Bundle);
52    method public void setVolumeControlEnabled(boolean);
53  }
54
55  public class MediaRouteControllerDialogFragment extends android.support.v4.app.DialogFragment {
56    ctor public MediaRouteControllerDialogFragment();
57    method public android.support.v7.app.MediaRouteControllerDialog onCreateControllerDialog(android.content.Context, android.os.Bundle);
58  }
59
60  public class MediaRouteDialogFactory {
61    ctor public MediaRouteDialogFactory();
62    method public static android.support.v7.app.MediaRouteDialogFactory getDefault();
63    method public android.support.v7.app.MediaRouteChooserDialogFragment onCreateChooserDialogFragment();
64    method public android.support.v7.app.MediaRouteControllerDialogFragment onCreateControllerDialogFragment();
65  }
66
67  public class MediaRouteDiscoveryFragment extends android.support.v4.app.Fragment {
68    ctor public MediaRouteDiscoveryFragment();
69    method public android.support.v7.media.MediaRouter getMediaRouter();
70    method public android.support.v7.media.MediaRouteSelector getRouteSelector();
71    method public android.support.v7.media.MediaRouter.Callback onCreateCallback();
72    method public int onPrepareCallbackFlags();
73    method public void setRouteSelector(android.support.v7.media.MediaRouteSelector);
74  }
75
76}
77
78package android.support.v7.media {
79
80  public final class MediaControlIntent {
81    field public static final java.lang.String ACTION_END_SESSION = "android.media.intent.action.END_SESSION";
82    field public static final java.lang.String ACTION_ENQUEUE = "android.media.intent.action.ENQUEUE";
83    field public static final java.lang.String ACTION_GET_SESSION_STATUS = "android.media.intent.action.GET_SESSION_STATUS";
84    field public static final java.lang.String ACTION_GET_STATUS = "android.media.intent.action.GET_STATUS";
85    field public static final java.lang.String ACTION_PAUSE = "android.media.intent.action.PAUSE";
86    field public static final java.lang.String ACTION_PLAY = "android.media.intent.action.PLAY";
87    field public static final java.lang.String ACTION_REMOVE = "android.media.intent.action.REMOVE";
88    field public static final java.lang.String ACTION_RESUME = "android.media.intent.action.RESUME";
89    field public static final java.lang.String ACTION_SEEK = "android.media.intent.action.SEEK";
90    field public static final java.lang.String ACTION_START_SESSION = "android.media.intent.action.START_SESSION";
91    field public static final java.lang.String ACTION_STOP = "android.media.intent.action.STOP";
92    field public static final java.lang.String CATEGORY_LIVE_AUDIO = "android.media.intent.category.LIVE_AUDIO";
93    field public static final java.lang.String CATEGORY_LIVE_VIDEO = "android.media.intent.category.LIVE_VIDEO";
94    field public static final java.lang.String CATEGORY_REMOTE_PLAYBACK = "android.media.intent.category.REMOTE_PLAYBACK";
95    field public static final int ERROR_INVALID_ITEM_ID = 3; // 0x3
96    field public static final int ERROR_INVALID_SESSION_ID = 2; // 0x2
97    field public static final int ERROR_UNKNOWN = 0; // 0x0
98    field public static final int ERROR_UNSUPPORTED_OPERATION = 1; // 0x1
99    field public static final java.lang.String EXTRA_ERROR_CODE = "android.media.intent.extra.ERROR_CODE";
100    field public static final java.lang.String EXTRA_ITEM_CONTENT_POSITION = "android.media.intent.extra.ITEM_POSITION";
101    field public static final java.lang.String EXTRA_ITEM_HTTP_HEADERS = "android.media.intent.extra.HTTP_HEADERS";
102    field public static final java.lang.String EXTRA_ITEM_ID = "android.media.intent.extra.ITEM_ID";
103    field public static final java.lang.String EXTRA_ITEM_METADATA = "android.media.intent.extra.ITEM_METADATA";
104    field public static final java.lang.String EXTRA_ITEM_STATUS = "android.media.intent.extra.ITEM_STATUS";
105    field public static final java.lang.String EXTRA_ITEM_STATUS_UPDATE_RECEIVER = "android.media.intent.extra.ITEM_STATUS_UPDATE_RECEIVER";
106    field public static final java.lang.String EXTRA_SESSION_ID = "android.media.intent.extra.SESSION_ID";
107    field public static final java.lang.String EXTRA_SESSION_STATUS = "android.media.intent.extra.SESSION_STATUS";
108    field public static final java.lang.String EXTRA_SESSION_STATUS_UPDATE_RECEIVER = "android.media.intent.extra.SESSION_STATUS_UPDATE_RECEIVER";
109  }
110
111  public final class MediaItemMetadata {
112    field public static final java.lang.String KEY_ALBUM_ARTIST = "android.media.metadata.ALBUM_ARTIST";
113    field public static final java.lang.String KEY_ALBUM_TITLE = "android.media.metadata.ALBUM_TITLE";
114    field public static final java.lang.String KEY_ARTIST = "android.media.metadata.ARTIST";
115    field public static final java.lang.String KEY_ARTWORK_URI = "android.media.metadata.ARTWORK_URI";
116    field public static final java.lang.String KEY_AUTHOR = "android.media.metadata.AUTHOR";
117    field public static final java.lang.String KEY_COMPOSER = "android.media.metadata.COMPOSER";
118    field public static final java.lang.String KEY_DISC_NUMBER = "android.media.metadata.DISC_NUMBER";
119    field public static final java.lang.String KEY_DURATION = "android.media.metadata.DURATION";
120    field public static final java.lang.String KEY_TITLE = "android.media.metadata.TITLE";
121    field public static final java.lang.String KEY_TRACK_NUMBER = "android.media.metadata.TRACK_NUMBER";
122    field public static final java.lang.String KEY_YEAR = "android.media.metadata.YEAR";
123  }
124
125  public final class MediaItemStatus {
126    method public android.os.Bundle asBundle();
127    method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
128    method public long getContentDuration();
129    method public long getContentPosition();
130    method public android.os.Bundle getExtras();
131    method public int getPlaybackState();
132    method public long getTimestamp();
133    field public static final java.lang.String EXTRA_HTTP_RESPONSE_HEADERS = "android.media.status.extra.HTTP_RESPONSE_HEADERS";
134    field public static final java.lang.String EXTRA_HTTP_STATUS_CODE = "android.media.status.extra.HTTP_STATUS_CODE";
135    field public static final int PLAYBACK_STATE_BUFFERING = 3; // 0x3
136    field public static final int PLAYBACK_STATE_CANCELED = 5; // 0x5
137    field public static final int PLAYBACK_STATE_ERROR = 7; // 0x7
138    field public static final int PLAYBACK_STATE_FINISHED = 4; // 0x4
139    field public static final int PLAYBACK_STATE_INVALIDATED = 6; // 0x6
140    field public static final int PLAYBACK_STATE_PAUSED = 2; // 0x2
141    field public static final int PLAYBACK_STATE_PENDING = 0; // 0x0
142    field public static final int PLAYBACK_STATE_PLAYING = 1; // 0x1
143  }
144
145  public static final class MediaItemStatus.Builder {
146    ctor public MediaItemStatus.Builder(int);
147    ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
148    method public android.support.v7.media.MediaItemStatus build();
149    method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
150    method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
151    method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
152    method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
153    method public android.support.v7.media.MediaItemStatus.Builder setTimestamp(long);
154  }
155
156  public final class MediaRouteDescriptor {
157    method public android.os.Bundle asBundle();
158    method public boolean canDisconnectAndKeepPlaying();
159    method public static android.support.v7.media.MediaRouteDescriptor fromBundle(android.os.Bundle);
160    method public java.util.List<android.content.IntentFilter> getControlFilters();
161    method public java.lang.String getDescription();
162    method public android.os.Bundle getExtras();
163    method public java.lang.String getId();
164    method public java.lang.String getName();
165    method public int getPlaybackStream();
166    method public int getPlaybackType();
167    method public int getPresentationDisplayId();
168    method public android.content.IntentSender getSettingsActivity();
169    method public int getVolume();
170    method public int getVolumeHandling();
171    method public int getVolumeMax();
172    method public boolean isConnecting();
173    method public boolean isEnabled();
174    method public boolean isValid();
175  }
176
177  public static final class MediaRouteDescriptor.Builder {
178    ctor public MediaRouteDescriptor.Builder(java.lang.String, java.lang.String);
179    ctor public MediaRouteDescriptor.Builder(android.support.v7.media.MediaRouteDescriptor);
180    method public android.support.v7.media.MediaRouteDescriptor.Builder addControlFilter(android.content.IntentFilter);
181    method public android.support.v7.media.MediaRouteDescriptor.Builder addControlFilters(java.util.Collection<android.content.IntentFilter>);
182    method public android.support.v7.media.MediaRouteDescriptor build();
183    method public android.support.v7.media.MediaRouteDescriptor.Builder setCanDisconnect(boolean);
184    method public android.support.v7.media.MediaRouteDescriptor.Builder setConnecting(boolean);
185    method public android.support.v7.media.MediaRouteDescriptor.Builder setDescription(java.lang.String);
186    method public android.support.v7.media.MediaRouteDescriptor.Builder setEnabled(boolean);
187    method public android.support.v7.media.MediaRouteDescriptor.Builder setExtras(android.os.Bundle);
188    method public android.support.v7.media.MediaRouteDescriptor.Builder setId(java.lang.String);
189    method public android.support.v7.media.MediaRouteDescriptor.Builder setName(java.lang.String);
190    method public android.support.v7.media.MediaRouteDescriptor.Builder setPlaybackStream(int);
191    method public android.support.v7.media.MediaRouteDescriptor.Builder setPlaybackType(int);
192    method public android.support.v7.media.MediaRouteDescriptor.Builder setPresentationDisplayId(int);
193    method public android.support.v7.media.MediaRouteDescriptor.Builder setSettingsActivity(android.content.IntentSender);
194    method public android.support.v7.media.MediaRouteDescriptor.Builder setVolume(int);
195    method public android.support.v7.media.MediaRouteDescriptor.Builder setVolumeHandling(int);
196    method public android.support.v7.media.MediaRouteDescriptor.Builder setVolumeMax(int);
197  }
198
199  public final class MediaRouteDiscoveryRequest {
200    ctor public MediaRouteDiscoveryRequest(android.support.v7.media.MediaRouteSelector, boolean);
201    method public android.os.Bundle asBundle();
202    method public static android.support.v7.media.MediaRouteDiscoveryRequest fromBundle(android.os.Bundle);
203    method public android.support.v7.media.MediaRouteSelector getSelector();
204    method public boolean isActiveScan();
205    method public boolean isValid();
206  }
207
208  public abstract class MediaRouteProvider {
209    ctor public MediaRouteProvider(android.content.Context);
210    method public final android.content.Context getContext();
211    method public final android.support.v7.media.MediaRouteProviderDescriptor getDescriptor();
212    method public final android.support.v7.media.MediaRouteDiscoveryRequest getDiscoveryRequest();
213    method public final android.os.Handler getHandler();
214    method public final android.support.v7.media.MediaRouteProvider.ProviderMetadata getMetadata();
215    method public android.support.v7.media.MediaRouteProvider.RouteController onCreateRouteController(java.lang.String);
216    method public void onDiscoveryRequestChanged(android.support.v7.media.MediaRouteDiscoveryRequest);
217    method public final void setCallback(android.support.v7.media.MediaRouteProvider.Callback);
218    method public final void setDescriptor(android.support.v7.media.MediaRouteProviderDescriptor);
219    method public final void setDiscoveryRequest(android.support.v7.media.MediaRouteDiscoveryRequest);
220  }
221
222  public static abstract class MediaRouteProvider.Callback {
223    ctor public MediaRouteProvider.Callback();
224    method public void onDescriptorChanged(android.support.v7.media.MediaRouteProvider, android.support.v7.media.MediaRouteProviderDescriptor);
225  }
226
227  public static final class MediaRouteProvider.ProviderMetadata {
228    method public android.content.ComponentName getComponentName();
229    method public java.lang.String getPackageName();
230  }
231
232  public static abstract class MediaRouteProvider.RouteController {
233    ctor public MediaRouteProvider.RouteController();
234    method public boolean onControlRequest(android.content.Intent, android.support.v7.media.MediaRouter.ControlRequestCallback);
235    method public void onRelease();
236    method public void onSelect();
237    method public void onSetVolume(int);
238    method public void onUnselect();
239    method public void onUnselect(int);
240    method public void onUpdateVolume(int);
241  }
242
243  public final class MediaRouteProviderDescriptor {
244    method public android.os.Bundle asBundle();
245    method public static android.support.v7.media.MediaRouteProviderDescriptor fromBundle(android.os.Bundle);
246    method public java.util.List<android.support.v7.media.MediaRouteDescriptor> getRoutes();
247    method public boolean isValid();
248  }
249
250  public static final class MediaRouteProviderDescriptor.Builder {
251    ctor public MediaRouteProviderDescriptor.Builder();
252    ctor public MediaRouteProviderDescriptor.Builder(android.support.v7.media.MediaRouteProviderDescriptor);
253    method public android.support.v7.media.MediaRouteProviderDescriptor.Builder addRoute(android.support.v7.media.MediaRouteDescriptor);
254    method public android.support.v7.media.MediaRouteProviderDescriptor.Builder addRoutes(java.util.Collection<android.support.v7.media.MediaRouteDescriptor>);
255    method public android.support.v7.media.MediaRouteProviderDescriptor build();
256  }
257
258  public abstract class MediaRouteProviderService extends android.app.Service {
259    ctor public MediaRouteProviderService();
260    method public android.support.v7.media.MediaRouteProvider getMediaRouteProvider();
261    method public android.os.IBinder onBind(android.content.Intent);
262    method public abstract android.support.v7.media.MediaRouteProvider onCreateMediaRouteProvider();
263    field public static final java.lang.String SERVICE_INTERFACE = "android.media.MediaRouteProviderService";
264  }
265
266  public final class MediaRouteSelector {
267    method public android.os.Bundle asBundle();
268    method public boolean contains(android.support.v7.media.MediaRouteSelector);
269    method public static android.support.v7.media.MediaRouteSelector fromBundle(android.os.Bundle);
270    method public java.util.List<java.lang.String> getControlCategories();
271    method public boolean hasControlCategory(java.lang.String);
272    method public boolean isEmpty();
273    method public boolean isValid();
274    method public boolean matchesControlFilters(java.util.List<android.content.IntentFilter>);
275    field public static final android.support.v7.media.MediaRouteSelector EMPTY;
276  }
277
278  public static final class MediaRouteSelector.Builder {
279    ctor public MediaRouteSelector.Builder();
280    ctor public MediaRouteSelector.Builder(android.support.v7.media.MediaRouteSelector);
281    method public android.support.v7.media.MediaRouteSelector.Builder addControlCategories(java.util.Collection<java.lang.String>);
282    method public android.support.v7.media.MediaRouteSelector.Builder addControlCategory(java.lang.String);
283    method public android.support.v7.media.MediaRouteSelector.Builder addSelector(android.support.v7.media.MediaRouteSelector);
284    method public android.support.v7.media.MediaRouteSelector build();
285  }
286
287  public final class MediaRouter {
288    method public void addCallback(android.support.v7.media.MediaRouteSelector, android.support.v7.media.MediaRouter.Callback);
289    method public void addCallback(android.support.v7.media.MediaRouteSelector, android.support.v7.media.MediaRouter.Callback, int);
290    method public void addProvider(android.support.v7.media.MediaRouteProvider);
291    method public void addRemoteControlClient(java.lang.Object);
292    method public android.support.v7.media.MediaRouter.RouteInfo getDefaultRoute();
293    method public static android.support.v7.media.MediaRouter getInstance(android.content.Context);
294    method public android.support.v4.media.session.MediaSessionCompat.Token getMediaSessionToken();
295    method public java.util.List<android.support.v7.media.MediaRouter.ProviderInfo> getProviders();
296    method public java.util.List<android.support.v7.media.MediaRouter.RouteInfo> getRoutes();
297    method public android.support.v7.media.MediaRouter.RouteInfo getSelectedRoute();
298    method public boolean isRouteAvailable(android.support.v7.media.MediaRouteSelector, int);
299    method public void removeCallback(android.support.v7.media.MediaRouter.Callback);
300    method public void removeProvider(android.support.v7.media.MediaRouteProvider);
301    method public void removeRemoteControlClient(java.lang.Object);
302    method public void selectRoute(android.support.v7.media.MediaRouter.RouteInfo);
303    method public void setMediaSession(java.lang.Object);
304    method public void setMediaSessionCompat(android.support.v4.media.session.MediaSessionCompat);
305    method public void unselect(int);
306    method public android.support.v7.media.MediaRouter.RouteInfo updateSelectedRoute(android.support.v7.media.MediaRouteSelector);
307    field public static final int AVAILABILITY_FLAG_IGNORE_DEFAULT_ROUTE = 1; // 0x1
308    field public static final int AVAILABILITY_FLAG_REQUIRE_MATCH = 2; // 0x2
309    field public static final int CALLBACK_FLAG_FORCE_DISCOVERY = 8; // 0x8
310    field public static final int CALLBACK_FLAG_PERFORM_ACTIVE_SCAN = 1; // 0x1
311    field public static final int CALLBACK_FLAG_REQUEST_DISCOVERY = 4; // 0x4
312    field public static final int CALLBACK_FLAG_UNFILTERED_EVENTS = 2; // 0x2
313    field public static final int UNSELECT_REASON_DISCONNECTED = 1; // 0x1
314    field public static final int UNSELECT_REASON_ROUTE_CHANGED = 3; // 0x3
315    field public static final int UNSELECT_REASON_STOPPED = 2; // 0x2
316    field public static final int UNSELECT_REASON_UNKNOWN = 0; // 0x0
317  }
318
319  public static abstract class MediaRouter.Callback {
320    ctor public MediaRouter.Callback();
321    method public void onProviderAdded(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.ProviderInfo);
322    method public void onProviderChanged(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.ProviderInfo);
323    method public void onProviderRemoved(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.ProviderInfo);
324    method public void onRouteAdded(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
325    method public void onRouteChanged(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
326    method public void onRoutePresentationDisplayChanged(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
327    method public void onRouteRemoved(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
328    method public void onRouteSelected(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
329    method public void onRouteUnselected(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
330    method public void onRouteVolumeChanged(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
331  }
332
333  public static abstract class MediaRouter.ControlRequestCallback {
334    ctor public MediaRouter.ControlRequestCallback();
335    method public void onError(java.lang.String, android.os.Bundle);
336    method public void onResult(android.os.Bundle);
337  }
338
339  public static final class MediaRouter.ProviderInfo {
340    method public android.content.ComponentName getComponentName();
341    method public java.lang.String getPackageName();
342    method public android.support.v7.media.MediaRouteProvider getProviderInstance();
343    method public java.util.List<android.support.v7.media.MediaRouter.RouteInfo> getRoutes();
344  }
345
346  public static final class MediaRouter.RouteInfo {
347    method public boolean canDisconnect();
348    method public java.util.List<android.content.IntentFilter> getControlFilters();
349    method public java.lang.String getDescription();
350    method public android.os.Bundle getExtras();
351    method public java.lang.String getId();
352    method public java.lang.String getName();
353    method public int getPlaybackStream();
354    method public int getPlaybackType();
355    method public android.view.Display getPresentationDisplay();
356    method public android.support.v7.media.MediaRouter.ProviderInfo getProvider();
357    method public android.content.IntentSender getSettingsIntent();
358    method public int getVolume();
359    method public int getVolumeHandling();
360    method public int getVolumeMax();
361    method public boolean isConnecting();
362    method public boolean isDefault();
363    method public boolean isEnabled();
364    method public boolean isSelected();
365    method public boolean matchesSelector(android.support.v7.media.MediaRouteSelector);
366    method public void requestSetVolume(int);
367    method public void requestUpdateVolume(int);
368    method public void select();
369    method public void sendControlRequest(android.content.Intent, android.support.v7.media.MediaRouter.ControlRequestCallback);
370    method public boolean supportsControlAction(java.lang.String, java.lang.String);
371    method public boolean supportsControlCategory(java.lang.String);
372    method public boolean supportsControlRequest(android.content.Intent);
373    field public static final int PLAYBACK_TYPE_LOCAL = 0; // 0x0
374    field public static final int PLAYBACK_TYPE_REMOTE = 1; // 0x1
375    field public static final int PLAYBACK_VOLUME_FIXED = 0; // 0x0
376    field public static final int PLAYBACK_VOLUME_VARIABLE = 1; // 0x1
377  }
378
379  public final class MediaSessionStatus {
380    method public android.os.Bundle asBundle();
381    method public static android.support.v7.media.MediaSessionStatus fromBundle(android.os.Bundle);
382    method public android.os.Bundle getExtras();
383    method public int getSessionState();
384    method public long getTimestamp();
385    method public boolean isQueuePaused();
386    field public static final int SESSION_STATE_ACTIVE = 0; // 0x0
387    field public static final int SESSION_STATE_ENDED = 1; // 0x1
388    field public static final int SESSION_STATE_INVALIDATED = 2; // 0x2
389  }
390
391  public static final class MediaSessionStatus.Builder {
392    ctor public MediaSessionStatus.Builder(int);
393    ctor public MediaSessionStatus.Builder(android.support.v7.media.MediaSessionStatus);
394    method public android.support.v7.media.MediaSessionStatus build();
395    method public android.support.v7.media.MediaSessionStatus.Builder setExtras(android.os.Bundle);
396    method public android.support.v7.media.MediaSessionStatus.Builder setQueuePaused(boolean);
397    method public android.support.v7.media.MediaSessionStatus.Builder setSessionState(int);
398    method public android.support.v7.media.MediaSessionStatus.Builder setTimestamp(long);
399  }
400
401  public class RemotePlaybackClient {
402    ctor public RemotePlaybackClient(android.content.Context, android.support.v7.media.MediaRouter.RouteInfo);
403    method public void endSession(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
404    method public void enqueue(android.net.Uri, java.lang.String, android.os.Bundle, long, android.os.Bundle, android.support.v7.media.RemotePlaybackClient.ItemActionCallback);
405    method public java.lang.String getSessionId();
406    method public void getSessionStatus(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
407    method public void getStatus(java.lang.String, android.os.Bundle, android.support.v7.media.RemotePlaybackClient.ItemActionCallback);
408    method public boolean hasSession();
409    method public boolean isQueuingSupported();
410    method public boolean isRemotePlaybackSupported();
411    method public boolean isSessionManagementSupported();
412    method public void pause(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
413    method public void play(android.net.Uri, java.lang.String, android.os.Bundle, long, android.os.Bundle, android.support.v7.media.RemotePlaybackClient.ItemActionCallback);
414    method public void release();
415    method public void remove(java.lang.String, android.os.Bundle, android.support.v7.media.RemotePlaybackClient.ItemActionCallback);
416    method public void resume(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
417    method public void seek(java.lang.String, long, android.os.Bundle, android.support.v7.media.RemotePlaybackClient.ItemActionCallback);
418    method public void setSessionId(java.lang.String);
419    method public void setStatusCallback(android.support.v7.media.RemotePlaybackClient.StatusCallback);
420    method public void startSession(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
421    method public void stop(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
422  }
423
424  public static abstract class RemotePlaybackClient.ActionCallback {
425    ctor public RemotePlaybackClient.ActionCallback();
426    method public void onError(java.lang.String, int, android.os.Bundle);
427  }
428
429  public static abstract class RemotePlaybackClient.ItemActionCallback extends android.support.v7.media.RemotePlaybackClient.ActionCallback {
430    ctor public RemotePlaybackClient.ItemActionCallback();
431    method public void onResult(android.os.Bundle, java.lang.String, android.support.v7.media.MediaSessionStatus, java.lang.String, android.support.v7.media.MediaItemStatus);
432  }
433
434  public static abstract class RemotePlaybackClient.SessionActionCallback extends android.support.v7.media.RemotePlaybackClient.ActionCallback {
435    ctor public RemotePlaybackClient.SessionActionCallback();
436    method public void onResult(android.os.Bundle, java.lang.String, android.support.v7.media.MediaSessionStatus);
437  }
438
439  public static abstract class RemotePlaybackClient.StatusCallback {
440    ctor public RemotePlaybackClient.StatusCallback();
441    method public void onItemStatusChanged(android.os.Bundle, java.lang.String, android.support.v7.media.MediaSessionStatus, java.lang.String, android.support.v7.media.MediaItemStatus);
442    method public void onSessionChanged(java.lang.String);
443    method public void onSessionStatusChanged(android.os.Bundle, java.lang.String, android.support.v7.media.MediaSessionStatus);
444  }
445
446}
447
448