openCustomTab

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

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

Parameters

activity

The host activity.

customTabsIntent

a CustomTabsIntent to be used if Custom Tabs is available.

uri

the Uri to be opened.

fallback

a CustomTabFallback to be used if Custom Tabs is not available.