• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package android.support.v7.app {
2
3  public abstract class ActionBar {
4    ctor public ActionBar();
5    method public abstract void addOnMenuVisibilityListener(android.support.v7.app.ActionBar.OnMenuVisibilityListener);
6    method public abstract void addTab(android.support.v7.app.ActionBar.Tab);
7    method public abstract void addTab(android.support.v7.app.ActionBar.Tab, boolean);
8    method public abstract void addTab(android.support.v7.app.ActionBar.Tab, int);
9    method public abstract void addTab(android.support.v7.app.ActionBar.Tab, int, boolean);
10    method public boolean collapseActionView();
11    method public void dispatchMenuVisibilityChanged(boolean);
12    method public abstract android.view.View getCustomView();
13    method public abstract int getDisplayOptions();
14    method public float getElevation();
15    method public abstract int getHeight();
16    method public int getHideOffset();
17    method public abstract int getNavigationItemCount();
18    method public abstract int getNavigationMode();
19    method public abstract int getSelectedNavigationIndex();
20    method public abstract android.support.v7.app.ActionBar.Tab getSelectedTab();
21    method public abstract java.lang.CharSequence getSubtitle();
22    method public abstract android.support.v7.app.ActionBar.Tab getTabAt(int);
23    method public abstract int getTabCount();
24    method public android.content.Context getThemedContext();
25    method public abstract java.lang.CharSequence getTitle();
26    method public abstract void hide();
27    method public boolean invalidateOptionsMenu();
28    method public boolean isHideOnContentScrollEnabled();
29    method public abstract boolean isShowing();
30    method public boolean isTitleTruncated();
31    method public abstract android.support.v7.app.ActionBar.Tab newTab();
32    method public void onConfigurationChanged(android.content.res.Configuration);
33    method public boolean onKeyShortcut(int, android.view.KeyEvent);
34    method public boolean onMenuKeyEvent(android.view.KeyEvent);
35    method public boolean openOptionsMenu();
36    method public abstract void removeAllTabs();
37    method public abstract void removeOnMenuVisibilityListener(android.support.v7.app.ActionBar.OnMenuVisibilityListener);
38    method public abstract void removeTab(android.support.v7.app.ActionBar.Tab);
39    method public abstract void removeTabAt(int);
40    method public abstract void selectTab(android.support.v7.app.ActionBar.Tab);
41    method public abstract void setBackgroundDrawable(android.graphics.drawable.Drawable);
42    method public abstract void setCustomView(android.view.View);
43    method public abstract void setCustomView(android.view.View, android.support.v7.app.ActionBar.LayoutParams);
44    method public abstract void setCustomView(int);
45    method public void setDefaultDisplayHomeAsUpEnabled(boolean);
46    method public abstract void setDisplayHomeAsUpEnabled(boolean);
47    method public abstract void setDisplayOptions(int);
48    method public abstract void setDisplayOptions(int, int);
49    method public abstract void setDisplayShowCustomEnabled(boolean);
50    method public abstract void setDisplayShowHomeEnabled(boolean);
51    method public abstract void setDisplayShowTitleEnabled(boolean);
52    method public abstract void setDisplayUseLogoEnabled(boolean);
53    method public void setElevation(float);
54    method public void setHideOffset(int);
55    method public void setHideOnContentScrollEnabled(boolean);
56    method public void setHomeActionContentDescription(java.lang.CharSequence);
57    method public void setHomeActionContentDescription(int);
58    method public void setHomeAsUpIndicator(android.graphics.drawable.Drawable);
59    method public void setHomeAsUpIndicator(int);
60    method public void setHomeButtonEnabled(boolean);
61    method public abstract void setIcon(int);
62    method public abstract void setIcon(android.graphics.drawable.Drawable);
63    method public abstract void setListNavigationCallbacks(android.widget.SpinnerAdapter, android.support.v7.app.ActionBar.OnNavigationListener);
64    method public abstract void setLogo(int);
65    method public abstract void setLogo(android.graphics.drawable.Drawable);
66    method public abstract void setNavigationMode(int);
67    method public abstract void setSelectedNavigationItem(int);
68    method public void setShowHideAnimationEnabled(boolean);
69    method public void setSplitBackgroundDrawable(android.graphics.drawable.Drawable);
70    method public void setStackedBackgroundDrawable(android.graphics.drawable.Drawable);
71    method public abstract void setSubtitle(java.lang.CharSequence);
72    method public abstract void setSubtitle(int);
73    method public abstract void setTitle(java.lang.CharSequence);
74    method public abstract void setTitle(int);
75    method public void setWindowTitle(java.lang.CharSequence);
76    method public abstract void show();
77    method public android.support.v7.view.ActionMode startActionMode(android.support.v7.view.ActionMode.Callback);
78    field public static final int DISPLAY_HOME_AS_UP = 4; // 0x4
79    field public static final int DISPLAY_SHOW_CUSTOM = 16; // 0x10
80    field public static final int DISPLAY_SHOW_HOME = 2; // 0x2
81    field public static final int DISPLAY_SHOW_TITLE = 8; // 0x8
82    field public static final int DISPLAY_USE_LOGO = 1; // 0x1
83    field public static final int NAVIGATION_MODE_LIST = 1; // 0x1
84    field public static final int NAVIGATION_MODE_STANDARD = 0; // 0x0
85    field public static final int NAVIGATION_MODE_TABS = 2; // 0x2
86  }
87
88  public static class ActionBar.LayoutParams extends android.view.ViewGroup.MarginLayoutParams {
89    ctor public ActionBar.LayoutParams(android.content.Context, android.util.AttributeSet);
90    ctor public ActionBar.LayoutParams(int, int);
91    ctor public ActionBar.LayoutParams(int, int, int);
92    ctor public ActionBar.LayoutParams(int);
93    ctor public ActionBar.LayoutParams(android.support.v7.app.ActionBar.LayoutParams);
94    ctor public ActionBar.LayoutParams(android.view.ViewGroup.LayoutParams);
95    field public int gravity;
96  }
97
98  public static abstract interface ActionBar.OnMenuVisibilityListener {
99    method public abstract void onMenuVisibilityChanged(boolean);
100  }
101
102  public static abstract interface ActionBar.OnNavigationListener {
103    method public abstract boolean onNavigationItemSelected(int, long);
104  }
105
106  public static abstract class ActionBar.Tab {
107    ctor public ActionBar.Tab();
108    method public abstract java.lang.CharSequence getContentDescription();
109    method public abstract android.view.View getCustomView();
110    method public abstract android.graphics.drawable.Drawable getIcon();
111    method public abstract int getPosition();
112    method public abstract java.lang.Object getTag();
113    method public abstract java.lang.CharSequence getText();
114    method public abstract void select();
115    method public abstract android.support.v7.app.ActionBar.Tab setContentDescription(int);
116    method public abstract android.support.v7.app.ActionBar.Tab setContentDescription(java.lang.CharSequence);
117    method public abstract android.support.v7.app.ActionBar.Tab setCustomView(android.view.View);
118    method public abstract android.support.v7.app.ActionBar.Tab setCustomView(int);
119    method public abstract android.support.v7.app.ActionBar.Tab setIcon(android.graphics.drawable.Drawable);
120    method public abstract android.support.v7.app.ActionBar.Tab setIcon(int);
121    method public abstract android.support.v7.app.ActionBar.Tab setTabListener(android.support.v7.app.ActionBar.TabListener);
122    method public abstract android.support.v7.app.ActionBar.Tab setTag(java.lang.Object);
123    method public abstract android.support.v7.app.ActionBar.Tab setText(java.lang.CharSequence);
124    method public abstract android.support.v7.app.ActionBar.Tab setText(int);
125    field public static final int INVALID_POSITION = -1; // 0xffffffff
126  }
127
128  public static abstract interface ActionBar.TabListener {
129    method public abstract void onTabReselected(android.support.v7.app.ActionBar.Tab, android.support.v4.app.FragmentTransaction);
130    method public abstract void onTabSelected(android.support.v7.app.ActionBar.Tab, android.support.v4.app.FragmentTransaction);
131    method public abstract void onTabUnselected(android.support.v7.app.ActionBar.Tab, android.support.v4.app.FragmentTransaction);
132  }
133
134  public class ActionBarDrawerToggle implements android.support.v4.widget.DrawerLayout.DrawerListener {
135    ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, int, int);
136    ctor public ActionBarDrawerToggle(android.app.Activity, android.support.v4.widget.DrawerLayout, android.support.v7.widget.Toolbar, int, int);
137    method public android.view.View.OnClickListener getToolbarNavigationClickListener();
138    method public boolean isDrawerIndicatorEnabled();
139    method public void onConfigurationChanged(android.content.res.Configuration);
140    method public void onDrawerClosed(android.view.View);
141    method public void onDrawerOpened(android.view.View);
142    method public void onDrawerSlide(android.view.View, float);
143    method public void onDrawerStateChanged(int);
144    method public boolean onOptionsItemSelected(android.view.MenuItem);
145    method public void setDrawerIndicatorEnabled(boolean);
146    method public void setHomeAsUpIndicator(android.graphics.drawable.Drawable);
147    method public void setHomeAsUpIndicator(int);
148    method public void setToolbarNavigationClickListener(android.view.View.OnClickListener);
149    method public void syncState();
150  }
151
152  public static abstract interface ActionBarDrawerToggle.Delegate {
153    method public abstract android.content.Context getActionBarThemedContext();
154    method public abstract android.graphics.drawable.Drawable getThemeUpIndicator();
155    method public abstract boolean isNavigationVisible();
156    method public abstract void setActionBarDescription(int);
157    method public abstract void setActionBarUpIndicator(android.graphics.drawable.Drawable, int);
158  }
159
160  public class AlertDialog extends android.support.v7.app.AppCompatDialog implements android.content.DialogInterface {
161    ctor protected AlertDialog(android.content.Context);
162    ctor protected AlertDialog(android.content.Context, int);
163    ctor protected AlertDialog(android.content.Context, boolean, android.content.DialogInterface.OnCancelListener);
164    method public android.widget.Button getButton(int);
165    method public android.widget.ListView getListView();
166    method public void setButton(int, java.lang.CharSequence, android.os.Message);
167    method public void setButton(int, java.lang.CharSequence, android.content.DialogInterface.OnClickListener);
168    method public void setCustomTitle(android.view.View);
169    method public void setIcon(int);
170    method public void setIcon(android.graphics.drawable.Drawable);
171    method public void setIconAttribute(int);
172    method public void setMessage(java.lang.CharSequence);
173    method public void setView(android.view.View);
174    method public void setView(android.view.View, int, int, int, int);
175  }
176
177  public abstract interface AppCompatCallback {
178    method public abstract void onSupportActionModeFinished(android.support.v7.view.ActionMode);
179    method public abstract void onSupportActionModeStarted(android.support.v7.view.ActionMode);
180    method public abstract android.support.v7.view.ActionMode onWindowStartingSupportActionMode(android.support.v7.view.ActionMode.Callback);
181  }
182
183  public abstract class AppCompatDelegate {
184    method public abstract void addContentView(android.view.View, android.view.ViewGroup.LayoutParams);
185    method public static android.support.v7.app.AppCompatDelegate create(android.app.Activity, android.support.v7.app.AppCompatCallback);
186    method public static android.support.v7.app.AppCompatDelegate create(android.app.Dialog, android.support.v7.app.AppCompatCallback);
187    method public abstract android.view.View createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet);
188    method public abstract android.support.v7.app.ActionBarDrawerToggle.Delegate getDrawerToggleDelegate();
189    method public abstract android.view.MenuInflater getMenuInflater();
190    method public abstract android.support.v7.app.ActionBar getSupportActionBar();
191    method public abstract boolean hasWindowFeature(int);
192    method public abstract void installViewFactory();
193    method public abstract void invalidateOptionsMenu();
194    method public abstract boolean isHandleNativeActionModesEnabled();
195    method public abstract void onConfigurationChanged(android.content.res.Configuration);
196    method public abstract void onCreate(android.os.Bundle);
197    method public abstract void onDestroy();
198    method public abstract void onPostCreate(android.os.Bundle);
199    method public abstract void onPostResume();
200    method public abstract void onStop();
201    method public abstract boolean requestWindowFeature(int);
202    method public abstract void setContentView(android.view.View);
203    method public abstract void setContentView(int);
204    method public abstract void setContentView(android.view.View, android.view.ViewGroup.LayoutParams);
205    method public abstract void setHandleNativeActionModesEnabled(boolean);
206    method public abstract void setSupportActionBar(android.support.v7.widget.Toolbar);
207    method public abstract void setTitle(java.lang.CharSequence);
208    method public abstract android.support.v7.view.ActionMode startSupportActionMode(android.support.v7.view.ActionMode.Callback);
209    field public static final int FEATURE_ACTION_MODE_OVERLAY = 10; // 0xa
210    field public static final int FEATURE_SUPPORT_ACTION_BAR = 108; // 0x6c
211    field public static final int FEATURE_SUPPORT_ACTION_BAR_OVERLAY = 109; // 0x6d
212  }
213
214  public class AppCompatDialog extends android.app.Dialog implements android.support.v7.app.AppCompatCallback {
215    ctor public AppCompatDialog(android.content.Context);
216    ctor public AppCompatDialog(android.content.Context, int);
217    ctor protected AppCompatDialog(android.content.Context, boolean, android.content.DialogInterface.OnCancelListener);
218    method public android.support.v7.app.AppCompatDelegate getDelegate();
219    method public android.support.v7.app.ActionBar getSupportActionBar();
220    method public void onSupportActionModeFinished(android.support.v7.view.ActionMode);
221    method public void onSupportActionModeStarted(android.support.v7.view.ActionMode);
222    method public android.support.v7.view.ActionMode onWindowStartingSupportActionMode(android.support.v7.view.ActionMode.Callback);
223    method public boolean supportRequestWindowFeature(int);
224  }
225
226  public class MediaRouteActionProvider extends android.support.v4.view.ActionProvider {
227    ctor public MediaRouteActionProvider(android.content.Context);
228    method public android.support.v7.app.MediaRouteDialogFactory getDialogFactory();
229    method public android.support.v7.app.MediaRouteButton getMediaRouteButton();
230    method public android.support.v7.media.MediaRouteSelector getRouteSelector();
231    method public android.view.View onCreateActionView();
232    method public android.support.v7.app.MediaRouteButton onCreateMediaRouteButton();
233    method public void setDialogFactory(android.support.v7.app.MediaRouteDialogFactory);
234    method public void setRouteSelector(android.support.v7.media.MediaRouteSelector);
235  }
236
237  public class MediaRouteButton extends android.view.View {
238    ctor public MediaRouteButton(android.content.Context);
239    ctor public MediaRouteButton(android.content.Context, android.util.AttributeSet);
240    ctor public MediaRouteButton(android.content.Context, android.util.AttributeSet, int);
241    method public android.support.v7.app.MediaRouteDialogFactory getDialogFactory();
242    method public android.support.v7.media.MediaRouteSelector getRouteSelector();
243    method public void onAttachedToWindow();
244    method public void onDetachedFromWindow();
245    method public void setDialogFactory(android.support.v7.app.MediaRouteDialogFactory);
246    method public void setRemoteIndicatorDrawable(android.graphics.drawable.Drawable);
247    method public void setRouteSelector(android.support.v7.media.MediaRouteSelector);
248    method public boolean showDialog();
249  }
250
251  public class MediaRouteChooserDialog extends android.app.Dialog {
252    ctor public MediaRouteChooserDialog(android.content.Context);
253    ctor public MediaRouteChooserDialog(android.content.Context, int);
254    method public android.support.v7.media.MediaRouteSelector getRouteSelector();
255    method public boolean onFilterRoute(android.support.v7.media.MediaRouter.RouteInfo);
256    method public void onFilterRoutes(java.util.List<android.support.v7.media.MediaRouter.RouteInfo>);
257    method public void refreshRoutes();
258    method public void setRouteSelector(android.support.v7.media.MediaRouteSelector);
259  }
260
261  public class MediaRouteChooserDialogFragment extends android.support.v4.app.DialogFragment {
262    ctor public MediaRouteChooserDialogFragment();
263    method public android.support.v7.media.MediaRouteSelector getRouteSelector();
264    method public android.support.v7.app.MediaRouteChooserDialog onCreateChooserDialog(android.content.Context, android.os.Bundle);
265    method public void setRouteSelector(android.support.v7.media.MediaRouteSelector);
266  }
267
268  public class MediaRouteControllerDialog extends android.support.v7.app.AlertDialog {
269    ctor public MediaRouteControllerDialog(android.content.Context);
270    ctor public MediaRouteControllerDialog(android.content.Context, int);
271    method public android.view.View getMediaControlView();
272    method public android.support.v4.media.session.MediaSessionCompat.Token getMediaSession();
273    method public android.support.v7.media.MediaRouter.RouteInfo getRoute();
274    method public boolean isVolumeControlEnabled();
275    method public android.view.View onCreateMediaControlView(android.os.Bundle);
276    method public void setVolumeControlEnabled(boolean);
277  }
278
279  public class MediaRouteControllerDialogFragment extends android.support.v4.app.DialogFragment {
280    ctor public MediaRouteControllerDialogFragment();
281    method public android.support.v7.app.MediaRouteControllerDialog onCreateControllerDialog(android.content.Context, android.os.Bundle);
282  }
283
284  public class MediaRouteDialogFactory {
285    ctor public MediaRouteDialogFactory();
286    method public static android.support.v7.app.MediaRouteDialogFactory getDefault();
287    method public android.support.v7.app.MediaRouteChooserDialogFragment onCreateChooserDialogFragment();
288    method public android.support.v7.app.MediaRouteControllerDialogFragment onCreateControllerDialogFragment();
289  }
290
291  public class MediaRouteDiscoveryFragment extends android.support.v4.app.Fragment {
292    ctor public MediaRouteDiscoveryFragment();
293    method public android.support.v7.media.MediaRouter getMediaRouter();
294    method public android.support.v7.media.MediaRouteSelector getRouteSelector();
295    method public android.support.v7.media.MediaRouter.Callback onCreateCallback();
296    method public int onPrepareCallbackFlags();
297    method public void setRouteSelector(android.support.v7.media.MediaRouteSelector);
298  }
299
300}
301
302package android.support.v7.media {
303
304  public final class MediaControlIntent {
305    field public static final java.lang.String ACTION_END_SESSION = "android.media.intent.action.END_SESSION";
306    field public static final java.lang.String ACTION_ENQUEUE = "android.media.intent.action.ENQUEUE";
307    field public static final java.lang.String ACTION_GET_SESSION_STATUS = "android.media.intent.action.GET_SESSION_STATUS";
308    field public static final java.lang.String ACTION_GET_STATUS = "android.media.intent.action.GET_STATUS";
309    field public static final java.lang.String ACTION_PAUSE = "android.media.intent.action.PAUSE";
310    field public static final java.lang.String ACTION_PLAY = "android.media.intent.action.PLAY";
311    field public static final java.lang.String ACTION_REMOVE = "android.media.intent.action.REMOVE";
312    field public static final java.lang.String ACTION_RESUME = "android.media.intent.action.RESUME";
313    field public static final java.lang.String ACTION_SEEK = "android.media.intent.action.SEEK";
314    field public static final java.lang.String ACTION_START_SESSION = "android.media.intent.action.START_SESSION";
315    field public static final java.lang.String ACTION_STOP = "android.media.intent.action.STOP";
316    field public static final java.lang.String CATEGORY_LIVE_AUDIO = "android.media.intent.category.LIVE_AUDIO";
317    field public static final java.lang.String CATEGORY_LIVE_VIDEO = "android.media.intent.category.LIVE_VIDEO";
318    field public static final java.lang.String CATEGORY_REMOTE_PLAYBACK = "android.media.intent.category.REMOTE_PLAYBACK";
319    field public static final int ERROR_INVALID_ITEM_ID = 3; // 0x3
320    field public static final int ERROR_INVALID_SESSION_ID = 2; // 0x2
321    field public static final int ERROR_UNKNOWN = 0; // 0x0
322    field public static final int ERROR_UNSUPPORTED_OPERATION = 1; // 0x1
323    field public static final java.lang.String EXTRA_ERROR_CODE = "android.media.intent.extra.ERROR_CODE";
324    field public static final java.lang.String EXTRA_ITEM_CONTENT_POSITION = "android.media.intent.extra.ITEM_POSITION";
325    field public static final java.lang.String EXTRA_ITEM_HTTP_HEADERS = "android.media.intent.extra.HTTP_HEADERS";
326    field public static final java.lang.String EXTRA_ITEM_ID = "android.media.intent.extra.ITEM_ID";
327    field public static final java.lang.String EXTRA_ITEM_METADATA = "android.media.intent.extra.ITEM_METADATA";
328    field public static final java.lang.String EXTRA_ITEM_STATUS = "android.media.intent.extra.ITEM_STATUS";
329    field public static final java.lang.String EXTRA_ITEM_STATUS_UPDATE_RECEIVER = "android.media.intent.extra.ITEM_STATUS_UPDATE_RECEIVER";
330    field public static final java.lang.String EXTRA_SESSION_ID = "android.media.intent.extra.SESSION_ID";
331    field public static final java.lang.String EXTRA_SESSION_STATUS = "android.media.intent.extra.SESSION_STATUS";
332    field public static final java.lang.String EXTRA_SESSION_STATUS_UPDATE_RECEIVER = "android.media.intent.extra.SESSION_STATUS_UPDATE_RECEIVER";
333  }
334
335  public final class MediaItemMetadata {
336    field public static final java.lang.String KEY_ALBUM_ARTIST = "android.media.metadata.ALBUM_ARTIST";
337    field public static final java.lang.String KEY_ALBUM_TITLE = "android.media.metadata.ALBUM_TITLE";
338    field public static final java.lang.String KEY_ARTIST = "android.media.metadata.ARTIST";
339    field public static final java.lang.String KEY_ARTWORK_URI = "android.media.metadata.ARTWORK_URI";
340    field public static final java.lang.String KEY_AUTHOR = "android.media.metadata.AUTHOR";
341    field public static final java.lang.String KEY_COMPOSER = "android.media.metadata.COMPOSER";
342    field public static final java.lang.String KEY_DISC_NUMBER = "android.media.metadata.DISC_NUMBER";
343    field public static final java.lang.String KEY_DURATION = "android.media.metadata.DURATION";
344    field public static final java.lang.String KEY_TITLE = "android.media.metadata.TITLE";
345    field public static final java.lang.String KEY_TRACK_NUMBER = "android.media.metadata.TRACK_NUMBER";
346    field public static final java.lang.String KEY_YEAR = "android.media.metadata.YEAR";
347  }
348
349  public final class MediaItemStatus {
350    method public android.os.Bundle asBundle();
351    method public static android.support.v7.media.MediaItemStatus fromBundle(android.os.Bundle);
352    method public long getContentDuration();
353    method public long getContentPosition();
354    method public android.os.Bundle getExtras();
355    method public int getPlaybackState();
356    method public long getTimestamp();
357    field public static final java.lang.String EXTRA_HTTP_RESPONSE_HEADERS = "android.media.status.extra.HTTP_RESPONSE_HEADERS";
358    field public static final java.lang.String EXTRA_HTTP_STATUS_CODE = "android.media.status.extra.HTTP_STATUS_CODE";
359    field public static final int PLAYBACK_STATE_BUFFERING = 3; // 0x3
360    field public static final int PLAYBACK_STATE_CANCELED = 5; // 0x5
361    field public static final int PLAYBACK_STATE_ERROR = 7; // 0x7
362    field public static final int PLAYBACK_STATE_FINISHED = 4; // 0x4
363    field public static final int PLAYBACK_STATE_INVALIDATED = 6; // 0x6
364    field public static final int PLAYBACK_STATE_PAUSED = 2; // 0x2
365    field public static final int PLAYBACK_STATE_PENDING = 0; // 0x0
366    field public static final int PLAYBACK_STATE_PLAYING = 1; // 0x1
367  }
368
369  public static final class MediaItemStatus.Builder {
370    ctor public MediaItemStatus.Builder(int);
371    ctor public MediaItemStatus.Builder(android.support.v7.media.MediaItemStatus);
372    method public android.support.v7.media.MediaItemStatus build();
373    method public android.support.v7.media.MediaItemStatus.Builder setContentDuration(long);
374    method public android.support.v7.media.MediaItemStatus.Builder setContentPosition(long);
375    method public android.support.v7.media.MediaItemStatus.Builder setExtras(android.os.Bundle);
376    method public android.support.v7.media.MediaItemStatus.Builder setPlaybackState(int);
377    method public android.support.v7.media.MediaItemStatus.Builder setTimestamp(long);
378  }
379
380  public final class MediaRouteDescriptor {
381    method public android.os.Bundle asBundle();
382    method public boolean canDisconnectAndKeepPlaying();
383    method public static android.support.v7.media.MediaRouteDescriptor fromBundle(android.os.Bundle);
384    method public int getConnectionState();
385    method public java.util.List<android.content.IntentFilter> getControlFilters();
386    method public java.lang.String getDescription();
387    method public int getDeviceType();
388    method public android.os.Bundle getExtras();
389    method public java.util.List<java.lang.String> getGroupMemberIds();
390    method public android.net.Uri getIconUri();
391    method public java.lang.String getId();
392    method public java.lang.String getName();
393    method public int getPlaybackStream();
394    method public int getPlaybackType();
395    method public int getPresentationDisplayId();
396    method public android.content.IntentSender getSettingsActivity();
397    method public int getVolume();
398    method public int getVolumeHandling();
399    method public int getVolumeMax();
400    method public deprecated boolean isConnecting();
401    method public boolean isEnabled();
402    method public boolean isValid();
403  }
404
405  public static final class MediaRouteDescriptor.Builder {
406    ctor public MediaRouteDescriptor.Builder(java.lang.String, java.lang.String);
407    ctor public MediaRouteDescriptor.Builder(android.support.v7.media.MediaRouteDescriptor);
408    method public android.support.v7.media.MediaRouteDescriptor.Builder addControlFilter(android.content.IntentFilter);
409    method public android.support.v7.media.MediaRouteDescriptor.Builder addControlFilters(java.util.Collection<android.content.IntentFilter>);
410    method public android.support.v7.media.MediaRouteDescriptor.Builder addGroupMemberId(java.lang.String);
411    method public android.support.v7.media.MediaRouteDescriptor.Builder addGroupMemberIds(java.util.Collection<java.lang.String>);
412    method public android.support.v7.media.MediaRouteDescriptor build();
413    method public android.support.v7.media.MediaRouteDescriptor.Builder setCanDisconnect(boolean);
414    method public deprecated android.support.v7.media.MediaRouteDescriptor.Builder setConnecting(boolean);
415    method public android.support.v7.media.MediaRouteDescriptor.Builder setConnectionState(int);
416    method public android.support.v7.media.MediaRouteDescriptor.Builder setDescription(java.lang.String);
417    method public android.support.v7.media.MediaRouteDescriptor.Builder setDeviceType(int);
418    method public android.support.v7.media.MediaRouteDescriptor.Builder setEnabled(boolean);
419    method public android.support.v7.media.MediaRouteDescriptor.Builder setExtras(android.os.Bundle);
420    method public android.support.v7.media.MediaRouteDescriptor.Builder setIconUri(android.net.Uri);
421    method public android.support.v7.media.MediaRouteDescriptor.Builder setId(java.lang.String);
422    method public android.support.v7.media.MediaRouteDescriptor.Builder setName(java.lang.String);
423    method public android.support.v7.media.MediaRouteDescriptor.Builder setPlaybackStream(int);
424    method public android.support.v7.media.MediaRouteDescriptor.Builder setPlaybackType(int);
425    method public android.support.v7.media.MediaRouteDescriptor.Builder setPresentationDisplayId(int);
426    method public android.support.v7.media.MediaRouteDescriptor.Builder setSettingsActivity(android.content.IntentSender);
427    method public android.support.v7.media.MediaRouteDescriptor.Builder setVolume(int);
428    method public android.support.v7.media.MediaRouteDescriptor.Builder setVolumeHandling(int);
429    method public android.support.v7.media.MediaRouteDescriptor.Builder setVolumeMax(int);
430  }
431
432  public final class MediaRouteDiscoveryRequest {
433    ctor public MediaRouteDiscoveryRequest(android.support.v7.media.MediaRouteSelector, boolean);
434    method public android.os.Bundle asBundle();
435    method public static android.support.v7.media.MediaRouteDiscoveryRequest fromBundle(android.os.Bundle);
436    method public android.support.v7.media.MediaRouteSelector getSelector();
437    method public boolean isActiveScan();
438    method public boolean isValid();
439  }
440
441  public abstract class MediaRouteProvider {
442    ctor public MediaRouteProvider(android.content.Context);
443    method public final android.content.Context getContext();
444    method public final android.support.v7.media.MediaRouteProviderDescriptor getDescriptor();
445    method public final android.support.v7.media.MediaRouteDiscoveryRequest getDiscoveryRequest();
446    method public final android.os.Handler getHandler();
447    method public final android.support.v7.media.MediaRouteProvider.ProviderMetadata getMetadata();
448    method public android.support.v7.media.MediaRouteProvider.RouteController onCreateRouteController(java.lang.String);
449    method public void onDiscoveryRequestChanged(android.support.v7.media.MediaRouteDiscoveryRequest);
450    method public final void setCallback(android.support.v7.media.MediaRouteProvider.Callback);
451    method public final void setDescriptor(android.support.v7.media.MediaRouteProviderDescriptor);
452    method public final void setDiscoveryRequest(android.support.v7.media.MediaRouteDiscoveryRequest);
453  }
454
455  public static abstract class MediaRouteProvider.Callback {
456    ctor public MediaRouteProvider.Callback();
457    method public void onDescriptorChanged(android.support.v7.media.MediaRouteProvider, android.support.v7.media.MediaRouteProviderDescriptor);
458  }
459
460  public static final class MediaRouteProvider.ProviderMetadata {
461    method public android.content.ComponentName getComponentName();
462    method public java.lang.String getPackageName();
463  }
464
465  public static abstract class MediaRouteProvider.RouteController {
466    ctor public MediaRouteProvider.RouteController();
467    method public boolean onControlRequest(android.content.Intent, android.support.v7.media.MediaRouter.ControlRequestCallback);
468    method public void onRelease();
469    method public void onSelect();
470    method public void onSetVolume(int);
471    method public void onUnselect();
472    method public void onUnselect(int);
473    method public void onUpdateVolume(int);
474  }
475
476  public final class MediaRouteProviderDescriptor {
477    method public android.os.Bundle asBundle();
478    method public static android.support.v7.media.MediaRouteProviderDescriptor fromBundle(android.os.Bundle);
479    method public java.util.List<android.support.v7.media.MediaRouteDescriptor> getRoutes();
480    method public boolean isValid();
481  }
482
483  public static final class MediaRouteProviderDescriptor.Builder {
484    ctor public MediaRouteProviderDescriptor.Builder();
485    ctor public MediaRouteProviderDescriptor.Builder(android.support.v7.media.MediaRouteProviderDescriptor);
486    method public android.support.v7.media.MediaRouteProviderDescriptor.Builder addRoute(android.support.v7.media.MediaRouteDescriptor);
487    method public android.support.v7.media.MediaRouteProviderDescriptor.Builder addRoutes(java.util.Collection<android.support.v7.media.MediaRouteDescriptor>);
488    method public android.support.v7.media.MediaRouteProviderDescriptor build();
489  }
490
491  public abstract class MediaRouteProviderService extends android.app.Service {
492    ctor public MediaRouteProviderService();
493    method public android.support.v7.media.MediaRouteProvider getMediaRouteProvider();
494    method public android.os.IBinder onBind(android.content.Intent);
495    method public abstract android.support.v7.media.MediaRouteProvider onCreateMediaRouteProvider();
496    field public static final java.lang.String SERVICE_INTERFACE = "android.media.MediaRouteProviderService";
497  }
498
499  public final class MediaRouteSelector {
500    method public android.os.Bundle asBundle();
501    method public boolean contains(android.support.v7.media.MediaRouteSelector);
502    method public static android.support.v7.media.MediaRouteSelector fromBundle(android.os.Bundle);
503    method public java.util.List<java.lang.String> getControlCategories();
504    method public boolean hasControlCategory(java.lang.String);
505    method public boolean isEmpty();
506    method public boolean isValid();
507    method public boolean matchesControlFilters(java.util.List<android.content.IntentFilter>);
508    field public static final android.support.v7.media.MediaRouteSelector EMPTY;
509  }
510
511  public static final class MediaRouteSelector.Builder {
512    ctor public MediaRouteSelector.Builder();
513    ctor public MediaRouteSelector.Builder(android.support.v7.media.MediaRouteSelector);
514    method public android.support.v7.media.MediaRouteSelector.Builder addControlCategories(java.util.Collection<java.lang.String>);
515    method public android.support.v7.media.MediaRouteSelector.Builder addControlCategory(java.lang.String);
516    method public android.support.v7.media.MediaRouteSelector.Builder addSelector(android.support.v7.media.MediaRouteSelector);
517    method public android.support.v7.media.MediaRouteSelector build();
518  }
519
520  public final class MediaRouter {
521    method public void addCallback(android.support.v7.media.MediaRouteSelector, android.support.v7.media.MediaRouter.Callback);
522    method public void addCallback(android.support.v7.media.MediaRouteSelector, android.support.v7.media.MediaRouter.Callback, int);
523    method public void addProvider(android.support.v7.media.MediaRouteProvider);
524    method public void addRemoteControlClient(java.lang.Object);
525    method public android.support.v7.media.MediaRouter.RouteInfo getDefaultRoute();
526    method public static android.support.v7.media.MediaRouter getInstance(android.content.Context);
527    method public android.support.v4.media.session.MediaSessionCompat.Token getMediaSessionToken();
528    method public java.util.List<android.support.v7.media.MediaRouter.ProviderInfo> getProviders();
529    method public java.util.List<android.support.v7.media.MediaRouter.RouteInfo> getRoutes();
530    method public android.support.v7.media.MediaRouter.RouteInfo getSelectedRoute();
531    method public boolean isRouteAvailable(android.support.v7.media.MediaRouteSelector, int);
532    method public void removeCallback(android.support.v7.media.MediaRouter.Callback);
533    method public void removeProvider(android.support.v7.media.MediaRouteProvider);
534    method public void removeRemoteControlClient(java.lang.Object);
535    method public void selectRoute(android.support.v7.media.MediaRouter.RouteInfo);
536    method public void setMediaSession(java.lang.Object);
537    method public void setMediaSessionCompat(android.support.v4.media.session.MediaSessionCompat);
538    method public void unselect(int);
539    method public android.support.v7.media.MediaRouter.RouteInfo updateSelectedRoute(android.support.v7.media.MediaRouteSelector);
540    field public static final int AVAILABILITY_FLAG_IGNORE_DEFAULT_ROUTE = 1; // 0x1
541    field public static final int AVAILABILITY_FLAG_REQUIRE_MATCH = 2; // 0x2
542    field public static final int CALLBACK_FLAG_FORCE_DISCOVERY = 8; // 0x8
543    field public static final int CALLBACK_FLAG_PERFORM_ACTIVE_SCAN = 1; // 0x1
544    field public static final int CALLBACK_FLAG_REQUEST_DISCOVERY = 4; // 0x4
545    field public static final int CALLBACK_FLAG_UNFILTERED_EVENTS = 2; // 0x2
546    field public static final int UNSELECT_REASON_DISCONNECTED = 1; // 0x1
547    field public static final int UNSELECT_REASON_ROUTE_CHANGED = 3; // 0x3
548    field public static final int UNSELECT_REASON_STOPPED = 2; // 0x2
549    field public static final int UNSELECT_REASON_UNKNOWN = 0; // 0x0
550  }
551
552  public static abstract class MediaRouter.Callback {
553    ctor public MediaRouter.Callback();
554    method public void onProviderAdded(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.ProviderInfo);
555    method public void onProviderChanged(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.ProviderInfo);
556    method public void onProviderRemoved(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.ProviderInfo);
557    method public void onRouteAdded(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
558    method public void onRouteChanged(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
559    method public void onRoutePresentationDisplayChanged(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
560    method public void onRouteRemoved(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
561    method public void onRouteSelected(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
562    method public void onRouteUnselected(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
563    method public void onRouteVolumeChanged(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo);
564  }
565
566  public static abstract class MediaRouter.ControlRequestCallback {
567    ctor public MediaRouter.ControlRequestCallback();
568    method public void onError(java.lang.String, android.os.Bundle);
569    method public void onResult(android.os.Bundle);
570  }
571
572  public static final class MediaRouter.ProviderInfo {
573    method public android.content.ComponentName getComponentName();
574    method public java.lang.String getPackageName();
575    method public android.support.v7.media.MediaRouteProvider getProviderInstance();
576    method public java.util.List<android.support.v7.media.MediaRouter.RouteInfo> getRoutes();
577  }
578
579  public static class MediaRouter.RouteGroup extends android.support.v7.media.MediaRouter.RouteInfo {
580    method public android.support.v7.media.MediaRouter.RouteInfo getRouteAt(int);
581    method public int getRouteCount();
582    method public java.util.List<android.support.v7.media.MediaRouter.RouteInfo> getRoutes();
583  }
584
585  public static class MediaRouter.RouteInfo {
586    method public boolean canDisconnect();
587    method public int getConnectionState();
588    method public java.util.List<android.content.IntentFilter> getControlFilters();
589    method public java.lang.String getDescription();
590    method public int getDeviceType();
591    method public android.os.Bundle getExtras();
592    method public android.net.Uri getIconUri();
593    method public java.lang.String getId();
594    method public java.lang.String getName();
595    method public int getPlaybackStream();
596    method public int getPlaybackType();
597    method public android.view.Display getPresentationDisplay();
598    method public android.support.v7.media.MediaRouter.ProviderInfo getProvider();
599    method public android.content.IntentSender getSettingsIntent();
600    method public int getVolume();
601    method public int getVolumeHandling();
602    method public int getVolumeMax();
603    method public boolean isConnecting();
604    method public boolean isDefault();
605    method public boolean isEnabled();
606    method public boolean isSelected();
607    method public boolean matchesSelector(android.support.v7.media.MediaRouteSelector);
608    method public void requestSetVolume(int);
609    method public void requestUpdateVolume(int);
610    method public void select();
611    method public void sendControlRequest(android.content.Intent, android.support.v7.media.MediaRouter.ControlRequestCallback);
612    method public boolean supportsControlAction(java.lang.String, java.lang.String);
613    method public boolean supportsControlCategory(java.lang.String);
614    method public boolean supportsControlRequest(android.content.Intent);
615    field public static final int CONNECTION_STATE_CONNECTED = 2; // 0x2
616    field public static final int CONNECTION_STATE_CONNECTING = 1; // 0x1
617    field public static final int CONNECTION_STATE_DISCONNECTED = 0; // 0x0
618    field public static final int DEVICE_TYPE_SPEAKER = 2; // 0x2
619    field public static final int DEVICE_TYPE_TV = 1; // 0x1
620    field public static final int PLAYBACK_TYPE_LOCAL = 0; // 0x0
621    field public static final int PLAYBACK_TYPE_REMOTE = 1; // 0x1
622    field public static final int PLAYBACK_VOLUME_FIXED = 0; // 0x0
623    field public static final int PLAYBACK_VOLUME_VARIABLE = 1; // 0x1
624  }
625
626  public final class MediaSessionStatus {
627    method public android.os.Bundle asBundle();
628    method public static android.support.v7.media.MediaSessionStatus fromBundle(android.os.Bundle);
629    method public android.os.Bundle getExtras();
630    method public int getSessionState();
631    method public long getTimestamp();
632    method public boolean isQueuePaused();
633    field public static final int SESSION_STATE_ACTIVE = 0; // 0x0
634    field public static final int SESSION_STATE_ENDED = 1; // 0x1
635    field public static final int SESSION_STATE_INVALIDATED = 2; // 0x2
636  }
637
638  public static final class MediaSessionStatus.Builder {
639    ctor public MediaSessionStatus.Builder(int);
640    ctor public MediaSessionStatus.Builder(android.support.v7.media.MediaSessionStatus);
641    method public android.support.v7.media.MediaSessionStatus build();
642    method public android.support.v7.media.MediaSessionStatus.Builder setExtras(android.os.Bundle);
643    method public android.support.v7.media.MediaSessionStatus.Builder setQueuePaused(boolean);
644    method public android.support.v7.media.MediaSessionStatus.Builder setSessionState(int);
645    method public android.support.v7.media.MediaSessionStatus.Builder setTimestamp(long);
646  }
647
648  public class RemotePlaybackClient {
649    ctor public RemotePlaybackClient(android.content.Context, android.support.v7.media.MediaRouter.RouteInfo);
650    method public void endSession(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
651    method public void enqueue(android.net.Uri, java.lang.String, android.os.Bundle, long, android.os.Bundle, android.support.v7.media.RemotePlaybackClient.ItemActionCallback);
652    method public java.lang.String getSessionId();
653    method public void getSessionStatus(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
654    method public void getStatus(java.lang.String, android.os.Bundle, android.support.v7.media.RemotePlaybackClient.ItemActionCallback);
655    method public boolean hasSession();
656    method public boolean isQueuingSupported();
657    method public boolean isRemotePlaybackSupported();
658    method public boolean isSessionManagementSupported();
659    method public void pause(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
660    method public void play(android.net.Uri, java.lang.String, android.os.Bundle, long, android.os.Bundle, android.support.v7.media.RemotePlaybackClient.ItemActionCallback);
661    method public void release();
662    method public void remove(java.lang.String, android.os.Bundle, android.support.v7.media.RemotePlaybackClient.ItemActionCallback);
663    method public void resume(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
664    method public void seek(java.lang.String, long, android.os.Bundle, android.support.v7.media.RemotePlaybackClient.ItemActionCallback);
665    method public void setSessionId(java.lang.String);
666    method public void setStatusCallback(android.support.v7.media.RemotePlaybackClient.StatusCallback);
667    method public void startSession(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
668    method public void stop(android.os.Bundle, android.support.v7.media.RemotePlaybackClient.SessionActionCallback);
669  }
670
671  public static abstract class RemotePlaybackClient.ActionCallback {
672    ctor public RemotePlaybackClient.ActionCallback();
673    method public void onError(java.lang.String, int, android.os.Bundle);
674  }
675
676  public static abstract class RemotePlaybackClient.ItemActionCallback extends android.support.v7.media.RemotePlaybackClient.ActionCallback {
677    ctor public RemotePlaybackClient.ItemActionCallback();
678    method public void onResult(android.os.Bundle, java.lang.String, android.support.v7.media.MediaSessionStatus, java.lang.String, android.support.v7.media.MediaItemStatus);
679  }
680
681  public static abstract class RemotePlaybackClient.SessionActionCallback extends android.support.v7.media.RemotePlaybackClient.ActionCallback {
682    ctor public RemotePlaybackClient.SessionActionCallback();
683    method public void onResult(android.os.Bundle, java.lang.String, android.support.v7.media.MediaSessionStatus);
684  }
685
686  public static abstract class RemotePlaybackClient.StatusCallback {
687    ctor public RemotePlaybackClient.StatusCallback();
688    method public void onItemStatusChanged(android.os.Bundle, java.lang.String, android.support.v7.media.MediaSessionStatus, java.lang.String, android.support.v7.media.MediaItemStatus);
689    method public void onSessionChanged(java.lang.String);
690    method public void onSessionStatusChanged(android.os.Bundle, java.lang.String, android.support.v7.media.MediaSessionStatus);
691  }
692
693}
694
695