Class MAMComponents

  • All Implemented Interfaces:

    
    public final class MAMComponents
    
                        

    Android MAM client core components.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void initialize(Context context) Initialize the object with a given context.
      static boolean isManagedApp(Context context) Determine if the app is managed (has MAM policy deployed).
      static <T> T get(Class<T> clazz) Get an implementation of a class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • initialize

         static void initialize(Context context)

        Initialize the object with a given context.

        Parameters:
        context - Context to use to initialize.
      • isManagedApp

         static boolean isManagedApp(Context context)

        Determine if the app is managed (has MAM policy deployed).

        Parameters:
        context - Context of the app.
        Returns:

        True if app is managed, false otherwise.

      • get

        @Nullable() static <T> T get(Class<T> clazz)

        Get an implementation of a class.

        Parameters:
        clazz - Class to get an instance of.
        Returns:

        The object or null if clazz is unknown.