Package 

Class AndroidHelper

  • All Implemented Interfaces:

    
    public final class AndroidHelper
    
                        

    Internal use only.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • isTiramisuOrLater

         static boolean isTiramisuOrLater()

        Internal use only Checks whether the current android version is Tiramisu (Android 13, API Level 33) or later using reflection to enable forward compatibility. This method helps you prepare for changes that need to be activated on Android 13 and later without having to set the compile sdk to android api level 33.

      • isPermissionAvailableOnCurrentAndroidVersion

         static boolean isPermissionAvailableOnCurrentAndroidVersion(String permissionName)

        Internal use only. Checks whether a permission is available using reflection to enable forward compatibility. This methods helps you handle permissions that will be available in a later android sdk version without having to bump the compile sdk and target sdk versions in the build.gradle file. Once you are ready to target the newer android sdk no more code changes will be needed.

        Parameters:
        permissionName - name of the permission as found in the Manifest.
      • getFullyQualifiedPermissionName

         static String getFullyQualifiedPermissionName(String permissionName)

        Internal use only. Gets the fully qualified permission name using reflection to enable forward compatibility. This methods helps you handle permissions that will be available in a later android sdk version without having to bump the compile sdk and target sdk versions in the build.gradle file. Once your app is ready to target the newer android sdk no more code changes will be needed.

        Parameters:
        permissionName - name of the permission as found in the Manifest.