-
public final class AndroidHelperInternal use only.
-
-
Method Summary
Modifier and Type Method Description static booleanisMarshmallowOrLater()Internal use only. static booleanisTiramisuOrLater()Internal use onlyChecks whether the current android version is Tiramisu (Android 13, API Level 33) or later using reflectionto enable forward compatibility. static booleanisPermissionAvailableOnCurrentAndroidVersion(String permissionName)Internal use only. static StringgetFullyQualifiedPermissionName(String permissionName)Internal use only. static intfindScreenSize(Context context)-
-
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 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.
-
findScreenSize
static int findScreenSize(Context context)
-
-
-
-