CustomTabsIntent

public final class CustomTabsIntent
extends Object

java.lang.Object
   ↳ androidx.browser.customtabs.CustomTabsIntent


Class holding the Intent and start bundle for a Custom Tabs Activity.

Note: The constants below are public for the browser implementation's benefit. You are strongly encouraged to use CustomTabsIntent.Builder.

Summary

Nested classes

class CustomTabsIntent.Builder

Builder class for CustomTabsIntent objects. 

Constants

int COLOR_SCHEME_DARK

Applies a dark color scheme to the user interface in the custom tab.

int COLOR_SCHEME_LIGHT

Applies a light color scheme to the user interface in the custom tab.

int COLOR_SCHEME_SYSTEM

Applies either a light or dark color scheme to the user interface in the custom tab depending on the user's system settings.

String EXTRA_ACTION_BUTTON_BUNDLE

Bundle used for adding a custom action button to the custom tab toolbar.

String EXTRA_CLOSE_BUTTON_ICON

Extra bitmap that specifies the icon of the back button on the toolbar.

String EXTRA_COLOR_SCHEME

Extra (int) that specifies which color scheme should be applied to the custom tab.

String EXTRA_COLOR_SCHEME_PARAMS

Extra that contains a SparseArray, mapping color schemes (except COLOR_SCHEME_SYSTEM) to Bundle representing CustomTabColorSchemeParams.

String EXTRA_DEFAULT_SHARE_MENU_ITEM

This constant is deprecated. Use EXTRA_SHARE_STATE instead.

String EXTRA_ENABLE_INSTANT_APPS

Extra that specifies whether Instant Apps is enabled.

String EXTRA_ENABLE_URLBAR_HIDING

Boolean extra that enables the url bar to hide as the user scrolls down the page

String EXTRA_EXIT_ANIMATION_BUNDLE

Bundle constructed out of ActivityOptionsCompat that will be running when the Activity that holds the custom tab gets finished.

String EXTRA_MENU_ITEMS

Use an ArrayList<Bundle> for specifying menu related params.

String EXTRA_NAVIGATION_BAR_COLOR

Extra that contains the color of the navigation bar.

String EXTRA_NAVIGATION_BAR_DIVIDER_COLOR

Extra that contains the color of the navigation bar divider.