-
- All Implemented Interfaces:
public final class AndroidHelperInternal use only.
-
-
Method Summary
Modifier and Type Method Description static booleanisMarshmallowOrLater()Internal use only. static booleanisTiramisuOrLater()Internal use only Checks whether the current android version is Tiramisu (Android 13, API Level 33) or later using reflection to enable forward compatibility. static booleanisPermissionAvailableOnCurrentAndroidVersion(String permissionName)Internal use only. static StringgetFullyQualifiedPermissionName(String permissionName)Internal use only. -
-
Method Detail
-
isMarshmallowOrLater
static boolean isMarshmallowOrLater()
Internal use only.
-
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.
-
-
-
-