Package-level declarations
Top-level Kotlin extensions for AndroidX Browser.
Properties
The Custom Tab Activity's resize behavior.
Extra that, if set, allows you to set a custom breakpoint for the Custom Tab - a value, x, for which if the screen's width is higher than x, the Custom Tab will behave as a side sheet (if CustomTabsIntent.EXTRA_INITIAL_ACTIVITY_WIDTH_PX is set), otherwise it will behave as a bottom sheet (if CustomTabsIntent.EXTRA_INITIAL_ACTIVITY_HEIGHT_PX is set).
Extra that, if set, allows you to set how you want to distinguish the Partial Custom Tab side sheet from the rest of the display.
Extra that enables the maximization button on the side sheet Custom Tab toolbar.
Extra that specifies the position of the side sheet. By default it is set to ActivitySideSheetPosition.End, which is on the right side in left-to-right layout.
Extra that, if set, allows you to choose which side sheet corners should be rounded, if any at all. Options include top or none.
Specifies the icon bitmap of the back button on the toolbar.
The position of the close button as a CloseButtonPosition, or the default position if the extra is not set.
Specifies which color scheme should be applied to the custom tab.
The Custom Tab Activity's initial height, or 0
if it is not set.
Extra that, if set, makes the Custom Tab Activity's width to be x pixels, the Custom Tab will behave as a side sheet. A minimum width will be enforced, thus the width will be clamped as such (based on the window size classes as defined by the Android documentation):
Whether Instant Apps is enabled for this intent.
Whether the background interaction is enabled.
Whether the bookmarks button is enabled. This value is set to true
by default.
Whether the download button is enabled. This value is set to true
by default.
Whether initial URLs are to be sent to external handler apps.
The PendingIntent that will be sent when the user swipes up from the secondary toolbar.
The ShareState of this intent, or the default share state if the extra is not set.
Whether a browser receiving the given intent should always use browser UI and avoid using any custom tabs UI.
Whether the title should be shown in the custom tab.
The toolbar's top corner radii in dp.
Gets the target locale for the Translate UI.
Specifies whether the URL bar should be hidden as the user scrolls down the page.
Functions
Creates a CustomTabColorSchemeParams using DSL syntax.
Creates a CustomTabColorSchemeParams using the given colour integers.
Creates a Custom Tab Intent using DSL syntax. Optionally, an existing session may be specified.
Creates a CustomTabsIntent.Builder. Optionally, an existing session may be specified.
Retrieves the instance of androidx.browser.customtabs.CustomTabColorSchemeParams from an Intent for a given colour scheme. Uses values passed directly into CustomTabsIntent.Builder (e.g. via CustomTabsIntent.Builder.setToolbarColor) as defaults.
Sets the Custom Tab Activity's decoration type that will be displayed when it is acting as a side sheet.
Sets the Custom Tab Activity's position when acting as a side sheet.
Sets the Custom Tab Activity's rounded corners position when it is acting as a side sheet.
Adds the necessary flags and extras to signal any browser supporting custom tabs to use the browser UI at all times and avoid showing custom tab like UI.
Sets the position of the close button. This method allows for an enum CloseButtonPosition to be used.
Sets the colour scheme that should be applied to the user interface in the custom tab. This method allows for an enum ColorScheme to be used.
Sets CustomTabColorSchemeParams for the given colour scheme.
Sets the default colour scheme to use using DSL syntax.
Sets the default colour scheme to use.
Sets the Custom Tab Activity's initial height in pixels and the desired resize behavior. The Custom Tab will behave as a bottom sheet.
Sets the Custom Tab Activity's initial width/height in pixels. The Custom Tab will behave as a side sheet if the screen's width is bigger than the breakpoint value set by CustomTabsIntent.Builder.setActivitySideSheetBreakpointDp and the screen is big enough, see doc for CustomTabsIntent.EXTRA_INITIAL_ACTIVITY_WIDTH_PX.
Sets the share state that should be applied to the custom tab. This method allows for an enum ShareState to be used.