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