Object SDKCustomTabsLauncher.Companion
-
- All Implemented Interfaces:
public class SDKCustomTabsLauncher.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static SDKCustomTabsLauncher.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final BrowserDetailsgetFirstCCTBrowser(Context context, BrowserWhitelist allowList, BrowserDetails preferredBrowser)Returns the first CCT browser. final BooleanhasBrowserInstalled(Context context)Checks if any browsers are installed on this device, no matter supports CCT or not. final BooleanisBrowserInstalled(Context context, BrowserDetails preferredBrowser)Checks if the preferredBrowser is installed on the device or not. -
-
Method Detail
-
getFirstCCTBrowser
final BrowserDetails getFirstCCTBrowser(Context context, BrowserWhitelist allowList, BrowserDetails preferredBrowser)
Returns the first CCT browser. The the base browser list to check is the union set of the cct browsers supported on this device and the allowed browser list, then if preferredBrowser is in the list, it will be returned, then if the default browser supports cct, the default browser will be returned, otherwise, the first cct browser in the union set will be returned.
- Parameters:
context- The application context.allowList- The allowed list of the browsers to be used.preferredBrowser- The preferred browser.
-
hasBrowserInstalled
final Boolean hasBrowserInstalled(Context context)
Checks if any browsers are installed on this device, no matter supports CCT or not.
-
isBrowserInstalled
final Boolean isBrowserInstalled(Context context, BrowserDetails preferredBrowser)
Checks if the preferredBrowser is installed on the device or not.
-
-
-
-