Object CustomTabsPackageHelper

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • 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.