-
@ApiStatus.Internal() public final class ContextUtils
-
-
Method Summary
Modifier and Type Method Description static boolean
isForegroundImportance()
Check if the Started process has IMPORTANCE_FOREGROUND importance which means that the processwill start an Activity. static boolean
appIsLibraryForComposePreview(@NotNull() Context context)
Determines if the app is a packaged android library for running Compose Preview Mode static Context
getApplicationContext(@NotNull() Context context)
Get the app context -
-
Method Detail
-
isForegroundImportance
@ApiStatus.Internal() static boolean isForegroundImportance()
Check if the Started process has IMPORTANCE_FOREGROUND importance which means that the processwill start an Activity.
-
appIsLibraryForComposePreview
@ApiStatus.Internal() static boolean appIsLibraryForComposePreview(@NotNull() Context context)
Determines if the app is a packaged android library for running Compose Preview Mode
- Parameters:
context
- the context
-
getApplicationContext
@NotNull() static Context getApplicationContext(@NotNull() Context context)
Get the app context
-
-
-
-