This abstract class provides most of the implementation of an expanded controller, which
is an out-of-the-box remote player, used when casting media to a cast device. The expanded
controller contains a dark Toolbar,
a background album art image, a seek bar control, a play/pause toggle button, and up to 4
configurable control buttons. To fully implement an expanded controller, developers should do
the following:
castExpandedControllerToolbarStyle to
ThemeOverlay.AppCompat.Dark.ActionBar in your theme to use light text and icon
color in the Toolbar.
// cast_expanded_controller_menu.xml
<menu xmlns:android="//schemas.android.com/apk/res/android"
xmlns:app="//schemas.android.com/apk/res-auto" >
<item
android:id="@+id/media_route_menu_item"
app:actionProviderClass="androidx.mediarouter.app.MediaRouteActionProvider"
app:showAsAction="always" />
</menu>
ExpandedControllerActivity to set up the Cast button, and register the Activity in
the application's manifest file:
// MyExpandedControllerActivity.java
class MyExpandedControllerActivity extends ExpandedControllerActivity {
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
getMenuInflater().inflate(R.menu.cast_expanded_controller_menu, menu);
CastButtonFactory.setUpMediaRouteButton(this, menu, R.id.media_route_menu_item);
return true;
}
}
Toolbar,
developers need to set an overlay theme for the toolbar to use light text and a light icon
color:
// my_styles.xml
<style name="Theme.CastVideosTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="castExpandedControllerToolbarStyle">
@style/ThemeOverlay.AppCompat.Dark.ActionBar
</item>
</style>
castControlButtons to override which buttons to show in which slots. The list of
supported control buttons are defined as ID resources:
@id/cast_button_type_empty: Not placing a button in this slot.
@id/cast_button_type_custom: A custom button.
@id/cast_button_type_play_pause_toggle: A button that toggles playback.
@id/cast_button_type_skip_previous: A button that skips to the previous item in
the queue.
@id/cast_button_type_skip_next: A button that skips to the next item in the
queue.
@id/cast_button_type_rewind_30_seconds: A button that rewinds the playback by 30
seconds.
@id/cast_button_type_forward_30_seconds: A button that skips forward the
playback by 30 seconds.
@id/cast_button_type_mute_toggle: A button that mutes and unmutes the remote
receiver.
@id/cast_button_type_closed_caption: A button that opens a dialog to select text
and audio tracks.
Here is an example of showing a rewind button in the second slot, a forward button in the third slot, and leaving the first and last slot empty:
// arrays.xml
<array name="cast_expanded_controller_control_buttons">
<item>@id/cast_button_type_empty</item>
<item>@id/cast_button_type_rewind_30_seconds</item>
<item>@id/cast_button_type_forward_30_seconds</item>
<item>@id/cast_button_type_empty</item>
</array>
...
// styles.xml
<style name="Theme.MyTheme">
<item name="castExpandedControllerStyle">
@style/CustomCastExpandedController
</item>
</style>
...
<style name="CustomCastExpandedController" parent="CastExpandedController">
<item name="castControlButtons">
@array/cast_expanded_controller_control_buttons
</item>
</style>
The array must contain exactly four items, otherwise a runtime exception will be thrown. If
you don't want to show a button in a slot, use @id/cast_button_type_empty.
1. Specify a slot to contain a custom button using
@id/cast_button_type_custom in the castControlButtons attribute.
You can then use
getButtonImageViewAt(int) to obtain the ImageView for
that custom button.
2. Implement a subclass of
UIController. The
UIController contains methods that are called by the SDK when the state of the
cast session or media session changes. Your subclass of
UIController should take a ImageView as one
of the parameters, and update its state as needed.
3. Override
onCreate(Bundle), call
getButtonImageViewAt(int) to get the view object of the button, and then call
UIMediaController.bindViewToUIController(View, UIController) to associate the view
with your custom
UIController.
4. See MediaIntentReceiver
for how to handle the action from your custom button.
Here is an example of associating a button at slot 2 to a
UIController called MyCustomUIController:
// arrays.xml
<array name="cast_expanded_controller_control_buttons">
<item>@id/cast_button_type_empty</item>
<item>@id/cast_button_type_rewind_30_seconds</item>
<item>@id/cast_button_type_custom</item>
<item>@id/cast_button_type_empty</item>
</array>
// MyCustomUIController.java
class MyCustomUIController extends UIController {
private final View mButton;
public MyCustomUIController(View button) {
mButton = button;
// Set the drawable and onClickListener on the button.
...
}
@Override
public onMediaStatusUpdated() {
// Update the state of mButton based on the latest the media status.
...
mButton.setVisible(false);
...
}
}
// MyExpandedControllerActivity.java
class MyExpandedControllerActivity extends ExpandedControllerActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ImageView customButtonView = getButtonImageViewAt(2);
MyCustomUIController myCustomUiController = new MyCustomUIController(customButtonView);
getUIMediaController().bindViewToUIController(customButtonView, myCustomUiController);
...
}
}
CastContext
can manage the lifecycle and presentation of this activity.
| int | DEFAULT_KEYS_DIALER | |
| int | DEFAULT_KEYS_DISABLE | |
| int | DEFAULT_KEYS_SEARCH_GLOBAL | |
| int | DEFAULT_KEYS_SEARCH_LOCAL | |
| int | DEFAULT_KEYS_SHORTCUT | |
| int | RESULT_CANCELED | |
| int | RESULT_FIRST_USER | |
| int | RESULT_OK |
| String | ACCESSIBILITY_SERVICE | |
| String | ACCOUNT_SERVICE | |
| String | ACTIVITY_SERVICE | |
| String | ALARM_SERVICE | |
| String | AMBIENT_CONTEXT_SERVICE | |
| String | APPWIDGET_SERVICE | |
| String | APP_HIBERNATION_SERVICE | |
| String | APP_INTEGRITY_SERVICE | |
| String | APP_OPS_SERVICE | |
| String | APP_PREDICTION_SERVICE | |
| String | APP_SEARCH_SERVICE | |
| String | AUDIO_SERVICE | |
| String | BACKUP_SERVICE | |
| String | BATTERY_SERVICE | |
| String | BATTERY_STATS_SERVICE | |
| int | BIND_ABOVE_CLIENT | |
| int | BIND_ADJUST_WITH_ACTIVITY | |
| int | BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS | |
| int | BIND_ALLOW_FOREGROUND_SERVICE_STARTS_FROM_BACKGROUND | |
| int | BIND_ALLOW_OOM_MANAGEMENT | |
| int | BIND_AUTO_CREATE | |
| int | BIND_DEBUG_UNBIND | |
| int | BIND_EXTERNAL_SERVICE | |
| int | BIND_IMPORTANT | |
| int | BIND_INCLUDE_CAPABILITIES | |
| int | BIND_NOT_FOREGROUND | |
| int | BIND_NOT_PERCEPTIBLE | |
| int | BIND_WAIVE_PRIORITY | |
| String | BIOMETRIC_SERVICE | |
| String | BLOB_STORE_SERVICE | |
| String | BLUETOOTH_SERVICE | |
| String | BUGREPORT_SERVICE | |
| String | CAMERA_SERVICE | |
| String | CAPTIONING_SERVICE | |
| String | CARRIER_CONFIG_SERVICE | |
| String | CLIPBOARD_SERVICE | |
| String | CLOUDSEARCH_SERVICE | |
| String | COMPANION_DEVICE_SERVICE | |
| String | CONNECTIVITY_DIAGNOSTICS_SERVICE | |
| String | CONNECTIVITY_SERVICE | |
| String | CONSUMER_IR_SERVICE | |
| String | CONTENT_SUGGESTIONS_SERVICE | |
| String | CONTEXTHUB_SERVICE | |
| int | CONTEXT_IGNORE_SECURITY | |
| int | CONTEXT_INCLUDE_CODE | |
| int | CONTEXT_RESTRICTED | |
| String | CROSS_PROFILE_APPS_SERVICE | |
| String | DEVICE_POLICY_SERVICE | |
| String | DISPLAY_HASH_SERVICE | |
| String | DISPLAY_SERVICE | |
| String | DOMAIN_VERIFICATION_SERVICE | |
| String | DOWNLOAD_SERVICE | |
| String | DROPBOX_SERVICE | |
| String | ETHERNET_SERVICE | |
| String | EUICC_CARD_SERVICE | |
| String | EUICC_SERVICE | |
| String | FILE_INTEGRITY_SERVICE | |
| String | FINGERPRINT_SERVICE | |
| String | FONT_SERVICE | |
| String | GAME_SERVICE | |
| String | HARDWARE_PROPERTIES_SERVICE | |
| String | HDMI_CONTROL_SERVICE | |
| String | INPUT_METHOD_SERVICE | |
| String | INPUT_SERVICE | |
| String | IPSEC_SERVICE | |
| String | JOB_SCHEDULER_SERVICE | |
| String | KEYGUARD_SERVICE | |
| String | LAUNCHER_APPS_SERVICE | |
| String | LAYOUT_INFLATER_SERVICE | |
| String | LOCALE_SERVICE | |
| String | LOCATION_SERVICE | |
| String | MEDIA_COMMUNICATION_SERVICE | |
| String | MEDIA_METRICS_SERVICE | |
| String | MEDIA_PROJECTION_SERVICE | |
| String | MEDIA_ROUTER_SERVICE | |
| String | MEDIA_SESSION_SERVICE | |
| String | MEDIA_TRANSCODING_SERVICE | |
| String | MIDI_SERVICE | |
| int | MODE_APPEND | |
| int | MODE_ENABLE_WRITE_AHEAD_LOGGING | |
| int | MODE_MULTI_PROCESS | |
| int | MODE_NO_LOCALIZED_COLLATORS | |
| int | MODE_PRIVATE | |
| int | MODE_WORLD_READABLE | |
| int | MODE_WORLD_WRITEABLE | |
| String | MUSIC_RECOGNITION_SERVICE | |
| String | NEARBY_SERVICE | |
| String | NETD_SERVICE | |
| String | NETWORK_SCORE_SERVICE | |
| String | NETWORK_STATS_SERVICE | |
| String | NFC_SERVICE | |
| String | NOTIFICATION_SERVICE | |
| String | NSD_SERVICE | |
| String | OEM_LOCK_SERVICE | |
| String | PEOPLE_SERVICE | |
| String | PERFORMANCE_HINT_SERVICE | |
| String | PERMISSION_CONTROLLER_SERVICE | |
| String | PERMISSION_SERVICE | |
| String | PERSISTENT_DATA_BLOCK_SERVICE | |
| String | POWER_SERVICE | |
| String | PRINT_SERVICE | |
| String | REBOOT_READINESS_SERVICE | |
| int | RECEIVER_EXPORTED | |
| int | RECEIVER_NOT_EXPORTED | |
| int | RECEIVER_VISIBLE_TO_INSTANT_APPS | |
| String | RESTRICTIONS_SERVICE | |
| String | ROLE_SERVICE | |
| String | ROLLBACK_SERVICE | |
| String | SAFETY_CENTER_SERVICE | |
| String | SEARCH_SERVICE | |
| String | SEARCH_UI_SERVICE | |
| String | SECURE_ELEMENT_SERVICE | |
| String | SENSOR_SERVICE | |
| String | SHORTCUT_SERVICE | |
| String | SMARTSPACE_SERVICE | |
| String | STATS_MANAGER | |
| String | STATUS_BAR_SERVICE | |
| String | STORAGE_SERVICE | |
| String | STORAGE_STATS_SERVICE | |
| String | SYSTEM_CONFIG_SERVICE | |
| String | SYSTEM_HEALTH_SERVICE | |
| String | SYSTEM_UPDATE_SERVICE | |
| String | TELECOM_SERVICE | |
| String | TELEPHONY_IMS_SERVICE | |
| String | TELEPHONY_SERVICE | |
| String | TELEPHONY_SUBSCRIPTION_SERVICE | |
| String | TETHERING_SERVICE | |
| String | TEXT_CLASSIFICATION_SERVICE | |
| String | TEXT_SERVICES_MANAGER_SERVICE | |
| String | TRANSLATION_MANAGER_SERVICE | |
| String | TV_INPUT_SERVICE | |
| String | TV_INTERACTIVE_APP_SERVICE | |
| String | UI_MODE_SERVICE | |
| String | UI_TRANSLATION_SERVICE | |
| String | USAGE_STATS_SERVICE | |
| String | USB_SERVICE | |
| String | USER_SERVICE | |
| String | UWB_SERVICE | |
| String | VIBRATOR_MANAGER_SERVICE | |
| String | VIBRATOR_SERVICE | |
| String | VPN_MANAGEMENT_SERVICE | |
| String | VR_SERVICE | |
| String | WALLPAPER_EFFECTS_GENERATION_SERVICE | |
| String | WALLPAPER_SERVICE | |
| String | WIFI_AWARE_SERVICE | |
| String | WIFI_NL80211_SERVICE | |
| String | WIFI_P2P_SERVICE | |
| String | WIFI_RTT_RANGING_SERVICE | |
| String | WIFI_RTT_SERVICE | |
| String | WIFI_SCANNING_SERVICE | |
| String | WIFI_SERVICE | |
| String | WINDOW_SERVICE |
| int | TRIM_MEMORY_BACKGROUND | |
| int | TRIM_MEMORY_COMPLETE | |
| int | TRIM_MEMORY_MODERATE | |
| int | TRIM_MEMORY_RUNNING_CRITICAL | |
| int | TRIM_MEMORY_RUNNING_LOW | |
| int | TRIM_MEMORY_RUNNING_MODERATE | |
| int | TRIM_MEMORY_UI_HIDDEN |
| protected static final int[] | FOCUSED_STATE_SET |
| final ImageView |
getButtonImageViewAt(int slotIndex)
Returns the
ImageView
of the button at slotIndex in this container.
|
| final int |
getButtonSlotCount()
Returns the number of slots to hold control buttons in this container.
|
| final int |
getButtonTypeAt(int slotIndex)
Returns the type of the button at
slotIndex in this container.
|
| SeekBar | |
| TextView |
getStatusTextView()
Returns the
TextView
that displays the status text.
|
| UIMediaController |
getUIMediaController()
Returns the
UIMediaController used to bind views in this container.
|
| boolean | |
| void |
onWindowFocusChanged(boolean hasFocus)
|
| void | |
| void | |
| void |
onPause()
|
| void |
onResume()
|
| void | |
| void |
attachBaseContext(Context
arg0)
|
| void |
closeOptionsMenu()
|
| boolean |
dispatchKeyEvent(KeyEvent
arg0)
|
| <T extends View> T |
findViewById(int arg0)
|
| AppCompatDelegate |
getDelegate()
|
| ActionBarDrawerToggle.Delegate |
getDrawerToggleDelegate()
|
| MenuInflater |
getMenuInflater()
|
| Resources |
getResources()
|
| ActionBar |
getSupportActionBar()
|
| Intent |
getSupportParentActivityIntent()
|
| void |
invalidateOptionsMenu()
|
| void |
onConfigurationChanged(Configuration
arg0)
|
| void |
onContentChanged()
|
| void |
onCreateSupportNavigateUpTaskStack(TaskStackBuilder arg0)
|
| void |
onDestroy()
|
| boolean |
onKeyDown(int arg0, KeyEvent
arg1)
|
| void |
onLocalesChanged(LocaleListCompat arg0)
|
| final boolean |
onMenuItemSelected(int arg0, MenuItem
arg1)
|
| boolean |
onMenuOpened(int arg0, Menu arg1)
|
| void |
onNightModeChanged(int arg0)
|
| void |
onPanelClosed(int arg0, Menu arg1)
|
| void |
onPostCreate(Bundle
arg0)
|
| void |
onPostResume()
|
| void |
onPrepareSupportNavigateUpTaskStack(TaskStackBuilder
arg0)
|
| void |
onStart()
|
| void |
onStop()
|
| void |
onSupportActionModeFinished(ActionMode
arg0)
|
| void |
onSupportActionModeStarted(ActionMode
arg0)
|
| void |
onSupportContentChanged()
|
| boolean |
onSupportNavigateUp()
|
| void |
onTitleChanged(CharSequence
arg0, int arg1)
|
| ActionMode |
onWindowStartingSupportActionMode(ActionMode.Callback
arg0)
|
| void |
openOptionsMenu()
|
| void |
setContentView(View arg0)
|
| void |
setContentView(int arg0)
|
| void | |
| void |
setSupportActionBar(Toolbar
arg0)
|
| void |
setSupportProgress(int arg0)
|
| void |
setSupportProgressBarIndeterminate(boolean
arg0)
|
| void |
setSupportProgressBarIndeterminateVisibility(boolean
arg0)
|
| void |
setSupportProgressBarVisibility(boolean arg0)
|
| void |
setTheme(int arg0)
|
| ActionMode |
startSupportActionMode(ActionMode.Callback
arg0)
|
| void |
supportInvalidateOptionsMenu()
|
| void |
supportNavigateUpTo(Intent
arg0)
|
| boolean |
supportRequestWindowFeature(int arg0)
|
| boolean |
supportShouldUpRecreateTask(Intent
arg0)
|
| void | |
| FragmentManager |
getSupportFragmentManager()
|
| LoaderManager |
getSupportLoaderManager()
|
| void |
onActivityResult(int arg0, int arg1, Intent
arg2)
|
| void |
onAttachFragment(Fragment
arg0)
|
| void |
onCreate(Bundle
arg0)
|
| View | |
| View | |
| void |
onDestroy()
|
| boolean |
onMenuItemSelected(int arg0, MenuItem
arg1)
|
| void |
onPause()
|
| void |
onPostResume()
|
| void |
onRequestPermissionsResult(int arg0, String[]
arg1, int[] arg2)
|
| void |
onResume()
|
| void |
onResumeFragments()
|
| void |
onStart()
|
| void |
onStateNotSaved()
|
| void |
onStop()
|
| void |
setEnterSharedElementCallback(SharedElementCallback arg0)
|
| void |
setExitSharedElementCallback(SharedElementCallback arg0)
|
| void | |
| void | |
| void |
startIntentSenderFromFragment(Fragment
arg0, IntentSender
arg1, int arg2, Intent
arg3, int arg4, int arg5, int arg6, Bundle
arg7)
|
| void |
supportFinishAfterTransition()
|
| void |
supportInvalidateOptionsMenu()
|
| void |
supportPostponeEnterTransition()
|
| void |
supportStartPostponedEnterTransition()
|
| final void |
validateRequestPermissionsRequestCode(int
arg0)
|
| void | |
| void |
addMenuProvider(MenuProvider arg0,
LifecycleOwner arg1, Lifecycle.State arg2)
|
| void |
addMenuProvider(MenuProvider arg0,
LifecycleOwner arg1)
|
| void |
addMenuProvider(MenuProvider arg0)
|
| final void |
addOnConfigurationChangedListener(Consumer<Configuration>
arg0)
|
| final void |
addOnContextAvailableListener(OnContextAvailableListener
arg0)
|
| final void |
addOnMultiWindowModeChangedListener(Consumer<MultiWindowModeChangedInfo>
arg0)
|
| final void |
addOnNewIntentListener(Consumer<Intent>
arg0)
|
| final void |
addOnPictureInPictureModeChangedListener(Consumer<PictureInPictureModeChangedInfo>
arg0)
|
| final void |
addOnTrimMemoryListener(Consumer<Integer>
arg0)
|
| final ActivityResultRegistry |
getActivityResultRegistry()
|
| CreationExtras |
getDefaultViewModelCreationExtras()
|
| ViewModelProvider.Factory |
getDefaultViewModelProviderFactory()
|
| FullyDrawnReporter |
getFullyDrawnReporter()
|
| Object |
getLastCustomNonConfigurationInstance()
|
| Lifecycle |
getLifecycle()
|
| final OnBackPressedDispatcher |
getOnBackPressedDispatcher()
|
| final SavedStateRegistry |
getSavedStateRegistry()
|
| ViewModelStore |
getViewModelStore()
|
| void |
invalidateMenu()
|
| void |
onActivityResult(int arg0, int arg1, Intent
arg2)
|
| void |
onBackPressed()
|
| void |
onConfigurationChanged(Configuration
arg0)
|
| void |
onCreate(Bundle
arg0)
|
| boolean |
onCreatePanelMenu(int arg0, Menu arg1)
|
| boolean |
onMenuItemSelected(int arg0, MenuItem
arg1)
|
| void |
onMultiWindowModeChanged(boolean arg0)
|
| void |
onMultiWindowModeChanged(boolean arg0,
Configuration arg1)
|
| void |
onNewIntent(Intent
arg0)
|
| void |
onPanelClosed(int arg0, Menu arg1)
|
| void |
onPictureInPictureModeChanged(boolean arg0,
Configuration arg1)
|
| void |
onPictureInPictureModeChanged(boolean arg0)
|
| boolean | |
| void |
onRequestPermissionsResult(int arg0, String[]
arg1, int[] arg2)
|
| Object |
onRetainCustomNonConfigurationInstance()
|
| final Object |
onRetainNonConfigurationInstance()
|
| void |
onSaveInstanceState(Bundle
arg0)
|
| void |
onTrimMemory(int arg0)
|
| Context |
peekAvailableContext()
|
| final <I, O> ActivityResultLauncher<I> |
registerForActivityResult(ActivityResultContract<I, O>
arg0, ActivityResultCallback<O> arg1)
|
| final <I, O> ActivityResultLauncher<I> |
registerForActivityResult(ActivityResultContract<I, O>
arg0, ActivityResultRegistry arg1, ActivityResultCallback<O> arg2)
|
| void |
removeMenuProvider(MenuProvider arg0)
|
| final void |
removeOnConfigurationChangedListener(Consumer<Configuration>
arg0)
|
| final void |
removeOnContextAvailableListener(OnContextAvailableListener
arg0)
|
| final void |
removeOnMultiWindowModeChangedListener(Consumer<MultiWindowModeChangedInfo>
arg0)
|
| final void |
removeOnNewIntentListener(Consumer<Intent>
arg0)
|
| final void |
removeOnPictureInPictureModeChangedListener(Consumer<PictureInPictureModeChangedInfo>
arg0)
|
| final void |
removeOnTrimMemoryListener(Consumer<Integer>
arg0)
|
| void |
reportFullyDrawn()
|
| void |
setContentView(int arg0)
|
| void | |
| void |
setContentView(View arg0)
|
| void |
startActivityForResult(Intent
arg0, int arg1)
|
| void | |
| void | |
| void |
startIntentSenderForResult(IntentSender
arg0, int arg1, Intent
arg2, int arg3, int arg4, int arg5, Bundle
arg6)
|
| boolean |
dispatchKeyEvent(KeyEvent
arg0)
|
| boolean |
dispatchKeyShortcutEvent(KeyEvent
arg0)
|
| <T extends SupportActivity.ExtraData> T |
getExtraData(Class<T>
arg0)
|
| Lifecycle |
getLifecycle()
|
| void |
onCreate(Bundle
arg0)
|
| void |
onSaveInstanceState(Bundle
arg0)
|
| void |
putExtraData(SupportActivity.ExtraData arg0)
|
| final boolean |
shouldDumpInternalState(String[]
arg0)
|
| boolean |
superDispatchKeyEvent(KeyEvent
arg0)
|
| void | |
| void |
attachBaseContext(Context
arg0)
|
| void |
closeContextMenu()
|
| void |
closeOptionsMenu()
|
| void |
convertFromTranslucent()
|
| boolean |
convertToTranslucent(Activity.TranslucentConversionListener
arg0, ActivityOptions
arg1)
|
| PendingIntent |
createPendingResult(int arg0, Intent
arg1, int arg2)
|
| final void |
dismissDialog(int arg0)
|
| final void |
dismissKeyboardShortcutsHelper()
|
| boolean |
dispatchGenericMotionEvent(MotionEvent
arg0)
|
| boolean |
dispatchKeyEvent(KeyEvent
arg0)
|
| boolean |
dispatchKeyShortcutEvent(KeyEvent
arg0)
|
| boolean |
dispatchPopulateAccessibilityEvent(AccessibilityEvent
arg0)
|
| boolean |
dispatchTouchEvent(MotionEvent
arg0)
|
| boolean |
dispatchTrackballEvent(MotionEvent
arg0)
|
| void | |
| boolean |
enterPictureInPictureMode(PictureInPictureParams
arg0)
|
| void |
enterPictureInPictureMode()
|
| <T extends View> T |
findViewById(int arg0)
|
| void |
finish()
|
| void |
finishActivity(int arg0)
|
| void |
finishActivityFromChild(Activity
arg0, int arg1)
|
| void |
finishAffinity()
|
| void |
finishAfterTransition()
|
| void |
finishAndRemoveTask()
|
| void |
finishFromChild(Activity
arg0)
|
| ActionBar |
getActionBar()
|
| final Application |
getApplication()
|
| ComponentName |
getCallingActivity()
|
| String |
getCallingPackage()
|
| int |
getChangingConfigurations()
|
| ComponentName |
getComponentName()
|
| Scene |
getContentScene()
|
| TransitionManager |
getContentTransitionManager()
|
| View |
getCurrentFocus()
|
| FragmentManager |
getFragmentManager()
|
| Intent |
getIntent()
|
| Object |
getLastNonConfigurationInstance()
|
| LayoutInflater |
getLayoutInflater()
|
| LoaderManager |
getLoaderManager()
|
| String |
getLocalClassName()
|
| int |
getMaxNumPictureInPictureActions()
|
| final MediaController |
getMediaController()
|
| MenuInflater |
getMenuInflater()
|
| OnBackInvokedDispatcher |
getOnBackInvokedDispatcher()
|
| final Activity |
getParent()
|
| Intent |
getParentActivityIntent()
|
| SharedPreferences |
getPreferences(int arg0)
|
| Uri |
getReferrer()
|
| int |
getRequestedOrientation()
|
| final SearchEvent |
getSearchEvent()
|
| final SplashScreen |
getSplashScreen()
|
| Object |
getSystemService(String
arg0)
|
| int |
getTaskId()
|
| final CharSequence |
getTitle()
|
| final int |
getTitleColor()
|
| VoiceInteractor |
getVoiceInteractor()
|
| final int |
getVolumeControlStream()
|
| Window |
getWindow()
|
| WindowManager |
getWindowManager()
|
| boolean |
hasWindowFocus()
|
| void |
invalidateOptionsMenu()
|
| boolean |
isActivityTransitionRunning()
|
| boolean |
isBackgroundVisibleBehind()
|
| boolean |
isChangingConfigurations()
|
| final boolean |
isChild()
|
| boolean |
isDestroyed()
|
| boolean |
isFinishing()
|
| boolean |
isImmersive()
|
| boolean |
isInMultiWindowMode()
|
| boolean |
isInPictureInPictureMode()
|
| boolean |
isLaunchedFromBubble()
|
| boolean |
isLocalVoiceInteractionSupported()
|
| boolean |
isTaskRoot()
|
| boolean |
isVoiceInteraction()
|
| boolean |
isVoiceInteractionRoot()
|
| final Cursor | |
| boolean |
moveTaskToBack(boolean arg0)
|
| boolean |
navigateUpTo(Intent
arg0)
|
| boolean | |
| void |
onActionModeFinished(ActionMode
arg0)
|
| void |
onActionModeStarted(ActionMode
arg0)
|
| void |
onActivityReenter(int arg0, Intent
arg1)
|
| void |
onActivityResult(int arg0, int arg1, Intent
arg2)
|
| void |
onApplyThemeResource(Resources.Theme
arg0, int arg1, boolean arg2)
|
| void |
onAttachFragment(Fragment
arg0)
|
| void |
onAttachedToWindow()
|
| void |
onBackPressed()
|
| void |
onBackgroundVisibleBehindChanged(boolean
arg0)
|
| void | |
| void |
onConfigurationChanged(Configuration
arg0)
|
| void |
onContentChanged()
|
| boolean |
onContextItemSelected(MenuItem
arg0)
|
| void |
onContextMenuClosed(Menu arg0)
|
| void | |
| void |
onCreate(Bundle
arg0)
|
| void | |
| CharSequence |
onCreateDescription()
|
| Dialog |
onCreateDialog(int arg0)
|
| Dialog |
onCreateDialog(int arg0, Bundle
arg1)
|
| void |
onCreateNavigateUpTaskStack(TaskStackBuilder
arg0)
|
| boolean |
onCreateOptionsMenu(Menu arg0)
|
| boolean |
onCreatePanelMenu(int arg0, Menu arg1)
|
| View |
onCreatePanelView(int arg0)
|
| boolean | |
| View | |
| View | |
| void |
onDestroy()
|
| void |
onDetachedFromWindow()
|
| void |
onEnterAnimationComplete()
|
| boolean |
onGenericMotionEvent(MotionEvent
arg0)
|
| void | |
| boolean |
onKeyDown(int arg0, KeyEvent
arg1)
|
| boolean |
onKeyLongPress(int arg0, KeyEvent
arg1)
|
| boolean |
onKeyMultiple(int arg0, int arg1, KeyEvent
arg2)
|
| boolean |
onKeyShortcut(int arg0, KeyEvent
arg1)
|
| boolean |
onKeyUp(int arg0, KeyEvent
arg1)
|
| void |
onLocalVoiceInteractionStarted()
|
| void |
onLocalVoiceInteractionStopped()
|
| void |
onLowMemory()
|
| boolean |
onMenuItemSelected(int arg0, MenuItem
arg1)
|
| boolean |
onMenuOpened(int arg0, Menu arg1)
|
| void |
onMultiWindowModeChanged(boolean arg0)
|
| void |
onMultiWindowModeChanged(boolean arg0,
Configuration arg1)
|
| boolean |
onNavigateUp()
|
| boolean |
onNavigateUpFromChild(Activity
arg0)
|
| void |
onNewIntent(Intent
arg0)
|
| boolean |
onOptionsItemSelected(MenuItem
arg0)
|
| void |
onOptionsMenuClosed(Menu arg0)
|
| void |
onPanelClosed(int arg0, Menu arg1)
|
| void |
onPause()
|
| void | |
| void |
onPictureInPictureModeChanged(boolean arg0,
Configuration arg1)
|
| void |
onPictureInPictureModeChanged(boolean arg0)
|
| boolean |
onPictureInPictureRequested()
|
| void |
onPictureInPictureUiStateChanged(PictureInPictureUiState
arg0)
|
| void |
onPostCreate(Bundle
arg0)
|
| void | |
| void |
onPostResume()
|
| void | |
| void |
onPrepareDialog(int arg0, Dialog
arg1)
|
| void |
onPrepareNavigateUpTaskStack(TaskStackBuilder
arg0)
|
| boolean |
onPrepareOptionsMenu(Menu arg0)
|
| boolean | |
| void |
onProvideAssistContent(AssistContent
arg0)
|
| void |
onProvideAssistData(Bundle
arg0)
|
| void | |
| Uri |
onProvideReferrer()
|
| void |
onRequestPermissionsResult(int arg0, String[]
arg1, int[] arg2)
|
| void |
onRestart()
|
| void |
onRestoreInstanceState(Bundle
arg0)
|
| void | |
| void |
onResume()
|
| Object |
onRetainNonConfigurationInstance()
|
| void | |
| void |
onSaveInstanceState(Bundle
arg0)
|
| boolean |
onSearchRequested(SearchEvent
arg0)
|
| boolean |
onSearchRequested()
|
| void |
onStart()
|
| void |
onStateNotSaved()
|
| void |
onStop()
|
| void |
onTitleChanged(CharSequence
arg0, int arg1)
|
| void |
onTopResumedActivityChanged(boolean arg0)
|
| boolean |
onTouchEvent(MotionEvent
arg0)
|
| boolean |
onTrackballEvent(MotionEvent
arg0)
|
| void |
onTrimMemory(int arg0)
|
| void |
onUserInteraction()
|
| void |
onUserLeaveHint()
|
| void |
onVisibleBehindCanceled()
|
| void |
onWindowAttributesChanged(WindowManager.LayoutParams
arg0)
|
| void |
onWindowFocusChanged(boolean arg0)
|
| ActionMode |
onWindowStartingActionMode(ActionMode.Callback
arg0, int arg1)
|
| ActionMode |
onWindowStartingActionMode(ActionMode.Callback
arg0)
|
| void |
openContextMenu(View arg0)
|
| void |
openOptionsMenu()
|
| void |
overridePendingTransition(int arg0, int arg1)
|
| void |
overridePendingTransition(int arg0, int arg1,
int arg2)
|
| void |
postponeEnterTransition()
|
| void |
recreate()
|
| void |
registerActivityLifecycleCallbacks(Application.ActivityLifecycleCallbacks
arg0)
|
| void |
registerComponentCallbacks(ComponentCallbacks
arg0)
|
| void |
registerForContextMenu(View arg0)
|
| boolean |
releaseInstance()
|
| final void |
removeDialog(int arg0)
|
| void |
reportFullyDrawn()
|
| DragAndDropPermissions |
requestDragAndDropPermissions(DragEvent
arg0)
|
| final void |
requestPermissions(String[]
arg0, int arg1)
|
| final void |
requestShowKeyboardShortcuts()
|
| boolean |
requestVisibleBehind(boolean arg0)
|
| final boolean |
requestWindowFeature(int arg0)
|
| final <T extends View> T |
requireViewById(int arg0)
|
| final void |
runOnUiThread(Runnable
arg0)
|
| void |
setActionBar(Toolbar
arg0)
|
| void |
setContentTransitionManager(TransitionManager
arg0)
|
| void | |
| void |
setContentView(View arg0)
|
| void |
setContentView(int arg0)
|
| final void |
setDefaultKeyMode(int arg0)
|
| void |
setEnterSharedElementCallback(SharedElementCallback
arg0)
|
| void |
setExitSharedElementCallback(SharedElementCallback
arg0)
|
| final void |
setFeatureDrawable(int arg0,
Drawable arg1)
|
| final void |
setFeatureDrawableAlpha(int arg0, int arg1)
|
| final void |
setFeatureDrawableResource(int arg0, int
arg1)
|
| final void |
setFeatureDrawableUri(int arg0, Uri arg1)
|
| void |
setFinishOnTouchOutside(boolean arg0)
|
| void |
setImmersive(boolean arg0)
|
| void |
setInheritShowWhenLocked(boolean arg0)
|
| void |
setIntent(Intent
arg0)
|
| void |
setLocusContext(LocusId arg0, Bundle
arg1)
|
| final void |
setMediaController(MediaController
arg0)
|
| void |
setPictureInPictureParams(PictureInPictureParams
arg0)
|
| final void |
setProgress(int arg0)
|
| final void |
setProgressBarIndeterminate(boolean arg0)
|
| final void |
setProgressBarIndeterminateVisibility(boolean
arg0)
|
| final void |
setProgressBarVisibility(boolean arg0)
|
| void |
setRecentsScreenshotEnabled(boolean arg0)
|
| void |
setRequestedOrientation(int arg0)
|
| final void |
setResult(int arg0, Intent
arg1)
|
| final void |
setResult(int arg0)
|
| final void |
setSecondaryProgress(int arg0)
|
| void |
setShouldDockBigOverlays(boolean arg0)
|
| void |
setShowWhenLocked(boolean arg0)
|
| void |
setTaskDescription(ActivityManager.TaskDescription
arg0)
|
| void |
setTheme(int arg0)
|
| void |
setTitle(CharSequence
arg0)
|
| void |
setTitle(int arg0)
|
| void |
setTitleColor(int arg0)
|
| boolean |
setTranslucent(boolean arg0)
|
| void |
setTurnScreenOn(boolean arg0)
|
| void |
setVisible(boolean arg0)
|
| final void |
setVolumeControlStream(int arg0)
|
| void |
setVrModeEnabled(boolean arg0, ComponentName
arg1)
|
| boolean |
shouldDockBigOverlays()
|
| boolean |
shouldShowRequestPermissionRationale(String
arg0)
|
| boolean |
shouldUpRecreateTask(Intent
arg0)
|
| boolean |
showAssist(Bundle
arg0)
|
| final boolean |
showDialog(int arg0, Bundle
arg1)
|
| final void |
showDialog(int arg0)
|
| void |
showLockTaskEscapeMessage()
|
| ActionMode |
startActionMode(ActionMode.Callback
arg0, int arg1)
|
| ActionMode |
startActionMode(ActionMode.Callback
arg0)
|
| void | |
| void |
startActivities(Intent[]
arg0)
|
| void |
startActivity(Intent
arg0)
|
| void | |
| void | |
| void | |
| void |
startActivityForResult(Intent
arg0, int arg1)
|
| void | |
| void | |
| void | |
| void | |
| void | |
| void | |
| void | |
| void | |
| boolean | |
| boolean |
startActivityIfNeeded(Intent
arg0, int arg1)
|
| void | |
| void | |
| void | |
| void |
startIntentSenderForResult(IntentSender
arg0, int arg1, Intent
arg2, int arg3, int arg4, int arg5, Bundle
arg6)
|
| void |
startIntentSenderFromChild(Activity
arg0, IntentSender
arg1, int arg2, Intent
arg3, int arg4, int arg5, int arg6, Bundle
arg7)
|
| void |
startIntentSenderFromChild(Activity
arg0, IntentSender
arg1, int arg2, Intent
arg3, int arg4, int arg5, int arg6)
|
| void |
startLocalVoiceInteraction(Bundle
arg0)
|
| void |
startLockTask()
|
| void |
startManagingCursor(Cursor
arg0)
|
| boolean | |
| boolean |
startNextMatchingActivity(Intent
arg0)
|
| void |
startPostponedEnterTransition()
|
| void | |
| void |
stopLocalVoiceInteraction()
|
| void |
stopLockTask()
|
| void |
stopManagingCursor(Cursor
arg0)
|
| void |
takeKeyEvents(boolean arg0)
|
| void | |
| void |
unregisterActivityLifecycleCallbacks(Application.ActivityLifecycleCallbacks
arg0)
|
| void |
unregisterComponentCallbacks(ComponentCallbacks
arg0)
|
| void |
unregisterForContextMenu(View arg0)
|
| void |
applyOverrideConfiguration(Configuration
arg0)
|
| void |
attachBaseContext(Context
arg0)
|
| AssetManager |
getAssets()
|
| Resources |
getResources()
|
| Object |
getSystemService(String
arg0)
|
| Resources.Theme |
getTheme()
|
| void |
onApplyThemeResource(Resources.Theme
arg0, int arg1, boolean arg2)
|
| void |
setTheme(Resources.Theme
arg0)
|
| void |
setTheme(int arg0)
|
| void |
attachBaseContext(Context
arg0)
|
| boolean | |
| boolean | |
| boolean | |
| boolean | |
| int |
checkCallingOrSelfPermission(String
arg0)
|
| int |
checkCallingOrSelfUriPermission(Uri arg0,
int arg1)
|
| int[] | |
| int |
checkCallingPermission(String
arg0)
|
| int |
checkCallingUriPermission(Uri arg0,
int arg1)
|
| int[] | |
| int |
checkPermission(String
arg0, int arg1, int arg2)
|
| int |
checkSelfPermission(String
arg0)
|
| int | |
| int |
checkUriPermission(Uri arg0,
int arg1, int arg2, int arg3)
|
| int[] | |
| void |
clearWallpaper()
|
| Context |
createAttributionContext(String
arg0)
|
| Context |
createConfigurationContext(Configuration
arg0)
|
| Context |
createContext(ContextParams arg0)
|
| Context |
createContextAsUser(UserHandle
arg0, int arg1)
|
| Context |
createContextForSplit(String
arg0)
|
| Context |
createCredentialProtectedStorageContext()
|
| Context |
createDeviceProtectedStorageContext()
|
| Context |
createDisplayContext(Display
arg0)
|
| Context |
createPackageContext(String
arg0, int arg1)
|
| Context | |
| Context |
createWindowContext(int arg0, Bundle
arg1)
|
| Context | |
| String[] |
databaseList()
|
| boolean |
deleteDatabase(String
arg0)
|
| boolean |
deleteFile(String
arg0)
|
| boolean |
deleteSharedPreferences(String
arg0)
|
| void | |
| void | |
| void | |
| void | |
| void | |
| void | |
| void | |
| String[] |
fileList()
|
| Context |
getApplicationContext()
|
| ApplicationInfo |
getApplicationInfo()
|
| AssetManager |
getAssets()
|
| AttributionSource |
getAttributionSource()
|
| String |
getAttributionTag()
|
| Context |
getBaseContext()
|
| File |
getCacheDir()
|
| ClassLoader |
getClassLoader()
|
| File |
getCodeCacheDir()
|
| ContentResolver |
getContentResolver()
|
| File |
getDataDir()
|
| File |
getDatabasePath(String
arg0)
|
| File |
getDir(String
arg0, int arg1)
|
| Display |
getDisplay()
|
| File |
getExternalCacheDir()
|
| File[] |
getExternalCacheDirs()
|
| File |
getExternalFilesDir(String
arg0)
|
| File[] |
getExternalFilesDirs(String
arg0)
|
| File[] |
getExternalMediaDirs()
|
| File |
getFileStreamPath(String
arg0)
|
| File |
getFilesDir()
|
| Executor |
getMainExecutor()
|
| Looper |
getMainLooper()
|
| File |
getNoBackupFilesDir()
|
| File |
getObbDir()
|
| File[] |
getObbDirs()
|
| String |
getOpPackageName()
|
| String |
getPackageCodePath()
|
| PackageManager |
getPackageManager()
|
| String |
getPackageName()
|
| String |
getPackageResourcePath()
|
| ContextParams |
getParams()
|
| File |
getPreloadsFileCache()
|
| Resources |
getResources()
|
| SharedPreferences |
getSharedPreferences(String
arg0, int arg1)
|
| Object |
getSystemService(String
arg0)
|
| String |
getSystemServiceName(Class<?>
arg0)
|
| Resources.Theme |
getTheme()
|
| Drawable |
getWallpaper()
|
| int |
getWallpaperDesiredMinimumHeight()
|
| int |
getWallpaperDesiredMinimumWidth()
|
| void | |
| boolean |
isCredentialProtectedStorage()
|
| boolean |
isDeviceProtectedStorage()
|
| boolean |
isRestricted()
|
| boolean |
isUiContext()
|
| boolean | |
| boolean | |
| FileInputStream |
openFileInput(String
arg0)
|
| FileOutputStream |
openFileOutput(String
arg0, int arg1)
|
| SQLiteDatabase |
openOrCreateDatabase(String
arg0, int arg1,
SQLiteDatabase.CursorFactory arg2,
DatabaseErrorHandler arg3)
|
| SQLiteDatabase | |
| Drawable |
peekWallpaper()
|
| void |
registerComponentCallbacks(ComponentCallbacks
arg0)
|
| Intent | |
| Intent | |
| Intent | |
| Intent | |
| Intent |
registerReceiverForAllUsers(BroadcastReceiver
arg0, IntentFilter
arg1, String
arg2, Handler
arg3, int arg4)
|
| Intent | |
| void |
removeStickyBroadcast(Intent
arg0)
|
| void | |
| void | |
| void |
revokeUriPermission(Uri arg0,
int arg1)
|
| void | |
| void | |
| void | |
| void |
sendBroadcast(Intent
arg0)
|
| void | |
| void | |
| void | |
| void | |
| void | |
| void | |
| void | |
| void | |
| void |
sendOrderedBroadcastAsUser(Intent
arg0, UserHandle
arg1, String
arg2,
BroadcastReceiver arg3, Handler
arg4, int arg5, String
arg6, Bundle
arg7)
|
| void |
sendStickyBroadcast(Intent
arg0)
|
| void | |
| void | |
| void |
sendStickyOrderedBroadcast(Intent
arg0,
BroadcastReceiver arg1, Handler
arg2, int arg3, String
arg4, Bundle
arg5)
|
| void |
sendStickyOrderedBroadcastAsUser(Intent
arg0, UserHandle
arg1,
BroadcastReceiver arg2, Handler
arg3, int arg4, String
arg5, Bundle
arg6)
|
| void |
setTheme(int arg0)
|
| void |
setWallpaper(Bitmap
arg0)
|
| void |
setWallpaper(InputStream
arg0)
|
| void | |
| void |
startActivities(Intent[]
arg0)
|
| void |
startActivity(Intent
arg0)
|
| void | |
| void | |
| void | |
| ComponentName |
startForegroundService(Intent
arg0)
|
| boolean | |
| void | |
| void | |
| ComponentName |
startService(Intent
arg0)
|
| boolean |
stopService(Intent
arg0)
|
| void |
unbindService(ServiceConnection
arg0)
|
| void |
unregisterComponentCallbacks(ComponentCallbacks
arg0)
|
| void |
unregisterReceiver(BroadcastReceiver
arg0)
|
| void |
updateServiceGroup(ServiceConnection
arg0, int arg1, int arg2)
|
| boolean | |
| boolean | |
| abstract boolean | |
| boolean | |
| abstract int |
checkCallingOrSelfPermission(String
arg0)
|
| abstract int |
checkCallingOrSelfUriPermission(Uri arg0,
int arg1)
|
| int[] | |
| abstract int |
checkCallingPermission(String
arg0)
|
| abstract int |
checkCallingUriPermission(Uri arg0,
int arg1)
|
| int[] | |
| abstract int |
checkPermission(String
arg0, int arg1, int arg2)
|
| abstract int |
checkSelfPermission(String
arg0)
|
| abstract int | |
| abstract int |
checkUriPermission(Uri arg0,
int arg1, int arg2, int arg3)
|
| int[] | |
| abstract void |
clearWallpaper()
|
| Context |
createAttributionContext(String
arg0)
|
| abstract Context |
createConfigurationContext(Configuration
arg0)
|
| Context |
createContext(ContextParams arg0)
|
| Context |
createContextAsUser(UserHandle
arg0, int arg1)
|
| abstract Context |
createContextForSplit(String
arg0)
|
| abstract Context |
createCredentialProtectedStorageContext()
|
| abstract Context |
createDeviceProtectedStorageContext()
|
| abstract Context |
createDisplayContext(Display
arg0)
|
| abstract Context |
createPackageContext(String
arg0, int arg1)
|
| Context | |
| Context |
createWindowContext(int arg0, Bundle
arg1)
|
| Context | |
| abstract String[] |
databaseList()
|
| abstract boolean |
deleteDatabase(String
arg0)
|
| abstract boolean |
deleteFile(String
arg0)
|
| abstract boolean |
deleteSharedPreferences(String
arg0)
|
| abstract void | |
| abstract void | |
| abstract void | |
| abstract void | |
| abstract void | |
| abstract void | |
| abstract void | |
| abstract String[] |
fileList()
|
| abstract Context |
getApplicationContext()
|
| abstract ApplicationInfo |
getApplicationInfo()
|
| abstract AssetManager |
getAssets()
|
| AttributionSource |
getAttributionSource()
|
| String |
getAttributionTag()
|
| abstract File |
getCacheDir()
|
| abstract ClassLoader |
getClassLoader()
|
| abstract File |
getCodeCacheDir()
|
| final int |
getColor(int arg0)
|
| final ColorStateList |
getColorStateList(int arg0)
|
| abstract ContentResolver |
getContentResolver()
|
| abstract File |
getDataDir()
|
| abstract File |
getDatabasePath(String
arg0)
|
| abstract File |
getDir(String
arg0, int arg1)
|
| Display |
getDisplay()
|
| final Drawable |
getDrawable(int arg0)
|
| abstract File |
getExternalCacheDir()
|
| abstract File[] |
getExternalCacheDirs()
|
| abstract File |
getExternalFilesDir(String
arg0)
|
| abstract File[] |
getExternalFilesDirs(String
arg0)
|
| abstract File[] |
getExternalMediaDirs()
|
| abstract File |
getFileStreamPath(String
arg0)
|
| abstract File |
getFilesDir()
|
| Executor |
getMainExecutor()
|
| abstract Looper |
getMainLooper()
|
| abstract File |
getNoBackupFilesDir()
|
| abstract File |
getObbDir()
|
| abstract File[] |
getObbDirs()
|
| String |
getOpPackageName()
|
| abstract String |
getPackageCodePath()
|
| abstract PackageManager |
getPackageManager()
|
| abstract String |
getPackageName()
|
| abstract String |
getPackageResourcePath()
|
| ContextParams |
getParams()
|
| abstract File |
getPreloadsFileCache()
|
| abstract Resources |
getResources()
|
| abstract SharedPreferences |
getSharedPreferences(String
arg0, int arg1)
|
| final String |
getString(int arg0, Object...
arg1)
|
| final String |
getString(int arg0)
|
| final <T> T |
getSystemService(Class<T>
arg0)
|
| abstract Object |
getSystemService(String
arg0)
|
| abstract String |
getSystemServiceName(Class<?>
arg0)
|
| final CharSequence |
getText(int arg0)
|
| abstract Resources.Theme |
getTheme()
|
| abstract Drawable |
getWallpaper()
|
| abstract int |
getWallpaperDesiredMinimumHeight()
|
| abstract int |
getWallpaperDesiredMinimumWidth()
|
| abstract void | |
| abstract boolean |
isCredentialProtectedStorage()
|
| abstract boolean |
isDeviceProtectedStorage()
|
| boolean |
isRestricted()
|
| boolean |
isUiContext()
|
| abstract boolean | |
| abstract boolean | |
| final TypedArray |
obtainStyledAttributes(AttributeSet
arg0, int[] arg1)
|
| final TypedArray |
obtainStyledAttributes(AttributeSet
arg0, int[] arg1, int arg2, int arg3)
|
| final TypedArray |
obtainStyledAttributes(int arg0, int[] arg1)
|
| final TypedArray |
obtainStyledAttributes(int[] arg0)
|
| abstract FileInputStream |
openFileInput(String
arg0)
|
| abstract FileOutputStream |
openFileOutput(String
arg0, int arg1)
|
| abstract SQLiteDatabase |
openOrCreateDatabase(String
arg0, int arg1,
SQLiteDatabase.CursorFactory arg2,
DatabaseErrorHandler arg3)
|
| abstract SQLiteDatabase | |
| abstract Drawable |
peekWallpaper()
|
| void |
registerComponentCallbacks(ComponentCallbacks
arg0)
|
| abstract Intent | |
| abstract Intent | |
| abstract Intent | |
| abstract Intent | |
| Intent |
registerReceiverForAllUsers(BroadcastReceiver
arg0, IntentFilter
arg1, String
arg2, Handler
arg3, int arg4)
|
| Intent | |
| abstract void |
removeStickyBroadcast(Intent
arg0)
|
| abstract void | |
| void |
revokeSelfPermissionOnKill(String
arg0)
|
| void | |
| abstract void |
revokeUriPermission(Uri arg0,
int arg1)
|
| abstract void | |
| abstract void | |
| abstract void | |
| abstract void |
sendBroadcast(Intent
arg0)
|
| abstract void | |
| abstract void | |
| abstract void | |
| void | |
| void | |
| void | |
| abstract void | |
| abstract void | |
| abstract void | |
| abstract void |
sendOrderedBroadcastAsUser(Intent
arg0, UserHandle
arg1, String
arg2,
BroadcastReceiver arg3, Handler
arg4, int arg5, String
arg6, Bundle
arg7)
|
| abstract void |
sendStickyBroadcast(Intent
arg0)
|
| void | |
| abstract void | |
| abstract void |
sendStickyOrderedBroadcast(Intent
arg0,
BroadcastReceiver arg1, Handler
arg2, int arg3, String
arg4, Bundle
arg5)
|
| abstract void |
sendStickyOrderedBroadcastAsUser(Intent
arg0, UserHandle
arg1,
BroadcastReceiver arg2, Handler
arg3, int arg4, String
arg5, Bundle
arg6)
|
| abstract void |
setTheme(int arg0)
|
| abstract void |
setWallpaper(Bitmap
arg0)
|
| abstract void |
setWallpaper(InputStream
arg0)
|
| abstract void | |
| abstract void |
startActivities(Intent[]
arg0)
|
| abstract void |
startActivity(Intent
arg0)
|
| abstract void | |
| void | |
| void | |
| abstract ComponentName |
startForegroundService(Intent
arg0)
|
| abstract boolean | |
| abstract void | |
| abstract void | |
| abstract ComponentName |
startService(Intent
arg0)
|
| abstract boolean |
stopService(Intent
arg0)
|
| abstract void |
unbindService(ServiceConnection
arg0)
|
| void |
unregisterComponentCallbacks(ComponentCallbacks
arg0)
|
| abstract void |
unregisterReceiver(BroadcastReceiver
arg0)
|
| void |
updateServiceGroup(ServiceConnection
arg0, int arg1, int arg2)
|
| abstract void |
onSupportActionModeFinished(ActionMode
arg0)
|
| abstract void |
onSupportActionModeStarted(ActionMode
arg0)
|
| abstract ActionMode |
onWindowStartingSupportActionMode(ActionMode.Callback
arg0)
|
| abstract Intent |
getSupportParentActivityIntent()
|
| abstract ActionBarDrawerToggle.Delegate |
getDrawerToggleDelegate()
|
| abstract void |
onRequestPermissionsResult(int arg0, String[]
arg1, int[] arg2)
|
| abstract void |
validateRequestPermissionsRequestCode(int
arg0)
|
| abstract void |
addOnContextAvailableListener(OnContextAvailableListener
arg0)
|
| abstract Context |
peekAvailableContext()
|
| abstract void |
removeOnContextAvailableListener(OnContextAvailableListener
arg0)
|
| abstract Lifecycle |
getLifecycle()
|
| abstract ViewModelStore |
getViewModelStore()
|
| CreationExtras |
getDefaultViewModelCreationExtras()
|
| abstract ViewModelProvider.Factory |
getDefaultViewModelProviderFactory()
|
| abstract SavedStateRegistry |
getSavedStateRegistry()
|
| abstract OnBackPressedDispatcher |
getOnBackPressedDispatcher()
|
| abstract ActivityResultRegistry |
getActivityResultRegistry()
|
| abstract <I, O> ActivityResultLauncher<I> |
registerForActivityResult(ActivityResultContract<I, O>
arg0, ActivityResultCallback<O> arg1)
|
| abstract <I, O> ActivityResultLauncher<I> |
registerForActivityResult(ActivityResultContract<I, O>
arg0, ActivityResultRegistry arg1, ActivityResultCallback<O> arg2)
|
| abstract void |
addOnConfigurationChangedListener(Consumer<Configuration>
arg0)
|
| abstract void |
removeOnConfigurationChangedListener(Consumer<Configuration>
arg0)
|
| abstract void |
addOnMultiWindowModeChangedListener(Consumer<MultiWindowModeChangedInfo>
arg0)
|
| abstract void |
removeOnMultiWindowModeChangedListener(Consumer<MultiWindowModeChangedInfo>
arg0)
|
| abstract void |
addOnPictureInPictureModeChangedListener(Consumer<PictureInPictureModeChangedInfo>
arg0)
|
| abstract void |
removeOnPictureInPictureModeChangedListener(Consumer<PictureInPictureModeChangedInfo>
arg0)
|
| abstract void |
addMenuProvider(MenuProvider arg0)
|
| abstract void |
addMenuProvider(MenuProvider arg0,
LifecycleOwner arg1, Lifecycle.State arg2)
|
| abstract void |
addMenuProvider(MenuProvider arg0,
LifecycleOwner arg1)
|
| abstract void |
invalidateMenu()
|
| abstract void |
removeMenuProvider(MenuProvider arg0)
|
| abstract FullyDrawnReporter |
getFullyDrawnReporter()
|
| abstract boolean |
superDispatchKeyEvent(KeyEvent
arg0)
|
| abstract View |
| abstract boolean |
dispatchGenericMotionEvent(MotionEvent
arg0)
|
| abstract boolean |
dispatchKeyEvent(KeyEvent
arg0)
|
| abstract boolean |
dispatchKeyShortcutEvent(KeyEvent
arg0)
|
| abstract boolean |
dispatchPopulateAccessibilityEvent(AccessibilityEvent
arg0)
|
| abstract boolean |
dispatchTouchEvent(MotionEvent
arg0)
|
| abstract boolean |
dispatchTrackballEvent(MotionEvent
arg0)
|
| abstract void |
onActionModeFinished(ActionMode
arg0)
|
| abstract void |
onActionModeStarted(ActionMode
arg0)
|
| abstract void |
onAttachedToWindow()
|
| abstract void |
onContentChanged()
|
| abstract boolean |
onCreatePanelMenu(int arg0, Menu arg1)
|
| abstract View |
onCreatePanelView(int arg0)
|
| abstract void |
onDetachedFromWindow()
|
| abstract boolean |
onMenuItemSelected(int arg0, MenuItem
arg1)
|
| abstract boolean |
onMenuOpened(int arg0, Menu arg1)
|
| abstract void |
onPanelClosed(int arg0, Menu arg1)
|
| void |
onPointerCaptureChanged(boolean arg0)
|
| abstract boolean | |
| void | |
| abstract boolean |
onSearchRequested()
|
| abstract boolean |
onSearchRequested(SearchEvent
arg0)
|
| abstract void |
onWindowAttributesChanged(WindowManager.LayoutParams
arg0)
|
| abstract void |
onWindowFocusChanged(boolean arg0)
|
| abstract ActionMode |
onWindowStartingActionMode(ActionMode.Callback
arg0)
|
| abstract ActionMode |
onWindowStartingActionMode(ActionMode.Callback
arg0, int arg1)
|
| abstract void |
| abstract void |
onTrimMemory(int arg0)
|
| abstract ImageView |
getButtonImageViewAt(int slotIndex)
Returns the
ImageView
of the button at slotIndex in this container.
|
| abstract int |
getButtonSlotCount()
Returns the number of slots to hold control buttons in this container.
|
| abstract int |
getButtonTypeAt(int slotIndex)
Returns the type of the button at
slotIndex in this
container.
|
| abstract UIMediaController |
getUIMediaController()
Returns the
UIMediaController used to bind views in this container.
|
| abstract View |
| abstract void |
onConfigurationChanged(Configuration
arg0)
|
| abstract void |
onLowMemory()
|
Returns the ImageView
of the button at slotIndex in this container. The ImageView
is defined in the layout of the Activity
which implements this interface.
| slotIndex | the index of the slot in this container. |
|---|
| IndexOutOfBoundsException |
|---|
Returns the number of slots to hold control buttons in this container.
Returns the type of the button at slotIndex in this
container.
Button types are defined as one of the ID resources:
@id/cast_button_type_empty: Not placing a button in this
slot.@id/cast_button_type_custom: A custom button.@id/cast_button_type_play_pause_toggle: A button that toggles
playback.@id/cast_button_type_skip_previous: A button that skips to the
previous item in the queue.@id/cast_button_type_skip_next: A button that skips to the
next item in the queue.@id/cast_button_type_rewind_30_seconds: A button that rewinds
the playback by 30 seconds.@id/cast_button_type_forward_30_seconds: A button that skips
forward the playback by 30 seconds.@id/cast_button_type_mute_toggle: A button that mutes and
unmutes the remote receiver.@id/cast_button_type_closed_caption: A button that opens a
dialog to select text and audio tracks.| slotIndex | the index of the slot in this container. |
|---|
| IndexOutOfBoundsException |
|---|
Returns the
UIMediaController used to bind views in this container.