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