Package 

Class AndroidHelper

    • 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 reflectionto enable forward compatibility.

        This method helps you prepare for changes that need to be activated on Android 13 and later withouthaving 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 withouthaving to bump the compile sdk and target sdk versions in the build.gradle file. Once you are ready totarget 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 withouthaving to bump the compile sdk and target sdk versions in the build.gradle file. Once your app is ready totarget the newer android sdk no more code changes will be needed.

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