CustomTabsIntent
class CustomTabsIntent
kotlin.Any | |
↳ | 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 | |
---|---|
Builder class for |
Constants | |
---|---|
static Int |
Applies a dark color scheme to the user interface in the custom tab. |
static Int |
Applies a light color scheme to the user interface in the custom tab. |
static Int |
Applies either a light or dark color scheme to the user interface in the custom tab depending on the user's system settings. |
static String |
Bundle used for adding a custom action button to the custom tab toolbar. |
static String |
Extra bitmap that specifies the icon of the back button on the toolbar. |
static String |
Extra (int) that specifies which color scheme should be applied to the custom tab. |
static String |
Extra that contains a SparseArray, mapping color schemes (except |
static String |
Boolean extra that specifies whether a default share button will be shown in the menu. |
static String |
Extra that specifies whether Instant Apps is enabled. |
static String |
Boolean extra that enables the url bar to hide as the user scrolls down the page |
static String |
Bundle constructed out of |
static String |
Use an |
static String |
Extra that contains the color of the navigation bar. |
static String |
Extra that contains the color of the navigation bar divider. |
static String |
Extra that specifies the |
static String |
Extra that specifies which |
static String |
Extra that specifies the |
static String |
Extra that specifies an array of |
static String |
Extra that changes the background color for the secondary toolbar. |
static String |
Extra used to match the session. |
static String |
Extra (int) that specifies which share state should be applied to the custom tab. |
static String |
Extra boolean that specifies whether the custom action button should be tinted. |
static String |
Extra (int) that specifies state for showing the page title. |
static String |
Extra that changes the background color for the toolbar. |
static String |
List used for adding items to the top and bottom toolbars. The client should provide an ID, a description, an icon |
static String |
Key that specifies the content description for the custom action button. |
static String |
Key that specifies the |
static String |
Key that specifies the unique ID for an action button. |
static String |
Key for specifying the title of a menu item. |
static String |
Key that specifies the PendingIntent to launch when the action button or menu item was clicked. |
static Int |
Don't show any title. |
static Int |
Applies the default share settings depending on the browser. |
static Int |
Explicitly does not show a share option in the tab. |
static Int |
Shows a share option in the tab. |
static Int |
Shows the page title and the domain. |
static Int |
The ID allocated to the custom action button that is shown on the toolbar. |
Public methods | |
---|---|
static CustomTabColorSchemeParams |
getColorSchemeParams(@NonNull intent: Intent, colorScheme: Int) Retrieves the instance of |
static Int | |
Unit |
Convenience method to launch a Custom Tabs Activity. |
static Intent |
setAlwaysUseBrowserUI(@Nullable |