added in version 24.1.0
belongs to Maven artifact com.android.support:customtabs:28.0.0-alpha1

CustomTabsIntent

public final class CustomTabsIntent
extends Object

java.lang.Object
   ↳ android.support.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

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_DEFAULT_SHARE_MENU_ITEM

Boolean extra that specifies whether a default share button will be shown in the menu.

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_REMOTEVIEWS

Extra that specifies the RemoteViews showing on the secondary toolbar.

String EXTRA_REMOTEVIEWS_CLICKED_ID

Extra that specifies which View has been clicked.

String EXTRA_REMOTEVIEWS_PENDINGINTENT

Extra that specifies the PendingIntent to be sent when the user clicks on the Views that is listed by EXTRA_REMOTEVIEWS_VIEW_IDS.

String EXTRA_REMOTEVIEWS_VIEW_IDS

Extra that specifies an array of View ids.

String EXTRA_SECONDARY_TOOLBAR_COLOR

Extra that changes the background color for the secondary toolbar.

String EXTRA_SESSION

Extra used to match the session.

String EXTRA_TINT_ACTION_BUTTON

Extra boolean that specifies whether the custom action button should be tinted.

String EXTRA_TITLE_VISIBILITY_STATE

Extra (int) that specifies state for showing the page title.

String EXTRA_TOOLBAR_COLOR

Extra that changes the background color for the toolbar.

String EXTRA_TOOLBAR_ITEMS

List used for adding items to the top and bottom toolbars.

String KEY_DESCRIPTION

Key that specifies the content description for the custom action button.

String KEY_ICON

Key that specifies the Bitmap to be used as the image source for the action button.

String KEY_ID

Key that specifies the unique ID for an action button.

String KEY_MENU_ITEM_TITLE

Key for specifying the title of a menu item.

String KEY_PENDING_INTENT

Key that specifies the PendingIntent to launch when the action button or menu item was clicked.

int NO_TITLE

Don't show any title.

int SHOW_PAGE_TITLE

Shows the page title and the domain.

int TOOLBAR_