Package com.inmobi.ads.chrome
Object CustomTabsPackageHelper
-
- All Implemented Interfaces:
public class CustomTabsPackageHelperHelper class for Custom Tabs.
-
-
Field Summary
Fields Modifier and Type Field Description public final static CustomTabsPackageHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final static StringgetPackageNameToUse(Context context)Goes through all apps that handle VIEW intents and have a warmup service. final List<String>getPackages()final BooleansupportsPartialTabs()-
-
Method Detail
-
getPackageNameToUse
final static String getPackageNameToUse(Context context)
Goes through all apps that handle VIEW intents and have a warmup service. Picks the one chosen by the user if there is one, otherwise makes a best effort to return a valid package name.
This is not threadsafe.
- Parameters:
context- Context to use for accessing PackageManager.- Returns:
The package name recommended to use for connecting to custom tabs related components.
-
getPackages
final List<String> getPackages()
- Returns:
All possible chrome package names that provide custom tabs feature.
-
supportsPartialTabs
final Boolean supportsPartialTabs()
-
-
-
-