CustomTabActivityHelper

object CustomTabActivityHelper

This is a helper class to manage the connection to the Custom Tabs Service.

Types

Link copied to clipboard
interface CustomTabFallback

To be used as a fallback to open the Uri when Custom Tabs is not available.

Functions

Link copied to clipboard
fun openCustomTab(    activity: Activity,     customTabsIntent: CustomTabsIntent,     uri: Uri?,     fallback: CustomTabActivityHelper.CustomTabFallback?)

Opens the URL on a Custom Tab if possible. Otherwise fallsback to opening it on a WebView.

Properties

Link copied to clipboard
const val CHROME_CUSTOM_TAB_REQUEST_CODE: Int = 100