Package 

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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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