CustomTabsHelper

object CustomTabsHelper

Helper class for Custom Tabs.

Functions

Link copied to clipboard
fun getCustomTabsIntent(context: Context, session: CustomTabsSession?): CustomTabsIntent

Create a custom tabs intent configured

Link copied to clipboard
fun getPackageNameToUse(context: Context): String?

Goes through all apps that handle VIEW intents and have a warm up service. Picks the one chosen by the user if there is one, otherwise makes a best effort to return a valid package name.

Properties

Link copied to clipboard
val packages: List<String>

All possible chrome package names that provide custom tabs feature.