-
public class AndroidUtils
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAndroidUtils.SchemaType
-
Field Summary
Fields Modifier and Type Field Description public final static AndroidUtilsINSTANCE
-
Method Summary
-
-
Method Detail
-
getRandomDelay
final Integer getRandomDelay(Integer minDelay, Integer maxDelay)
-
isStringNotEmpty
final Boolean isStringNotEmpty(String body)
-
isActivityFullyReady
final Boolean isActivityFullyReady(Activity activity)
-
hasConfigChangeFlag
final Boolean hasConfigChangeFlag(Activity activity, Integer configChangeFlag)
-
getAppVersion
final String getAppVersion(Context context)
-
getManifestMeta
final String getManifestMeta(Context context, String metaName)
-
getManifestMetaBoolean
final Boolean getManifestMetaBoolean(Context context, String metaName)
-
getManifestMetaBundle
final Bundle getManifestMetaBundle(Context context)
-
getResourceString
final String getResourceString(Context context, String key, String defaultStr)
-
isValidResourceName
final Boolean isValidResourceName(String name)
-
getRootCauseThrowable
final Throwable getRootCauseThrowable(Throwable subjectThrowable)
-
getRootCauseMessage
final String getRootCauseMessage(Throwable throwable)
-
isRunningOnMainThread
final Boolean isRunningOnMainThread()
-
getTargetSdkVersion
final Integer getTargetSdkVersion(Context context)
-
hasNotificationManagerCompat
final Boolean hasNotificationManagerCompat()
-
openURLInBrowser
final Unit openURLInBrowser(Context appContext, String url)
-
openURLInBrowser
final Unit openURLInBrowser(Context appContext, Uri uri)
-
openURLInBrowserIntent
final Intent openURLInBrowserIntent(Uri uri)
-
hasPermission
final Boolean hasPermission(String permission, Boolean isUserGranted, IApplicationService applicationService)
Determine whether the provided permission is currently granted.
- Parameters:
permission- The permission to test for.isUserGranted- Whether the permission should be checked for user grant (true), or in the manifest (false).applicationService- The application service.
-
filterManifestPermissions
final List<String> filterManifestPermissions(List<String> permissions, IApplicationService applicationService)
Filter the provided permissions to only include permissions that have been granted.
- Parameters:
permissions- The list of permissions to filter.applicationService- The application service.
-
opaqueHasClass
final Boolean opaqueHasClass(Class<?> _class)
-
-
-
-