Class MAMStrictMode

  • All Implemented Interfaces:

    
    public final class MAMStrictMode
    
                        

    MAM Strict Mode is intended to catch "smells" in usage of MAM APIs or MAM-restricted platform APIs. It is loosely patterned after Android's StrictMode. It is not intended to be left enabled in production builds, but you are strongly encouraged to use it in internal debug/develop/dogfood builds. To enable, call MAMStrictMode.global().enable() early in application initialization (e.g. Application.onCreate). When a MAMStrictMode check fails, try to determine whether it is a real issue you can fix, or a false positive. If you believe it's a false positive or you aren't sure, please let the Intune MAM team know. This will allow us to make sure we agree with the false positive determination and to attempt to improve detection for future releases. To suppress false positives, disable the failing check. This can be done globally, but temporarily disabling per-thread at the specific call site is preferred.

    • 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 enable() Enable MAM strict mode.
      static StrictGlobalSettings global()
      static StrictThreadSettings thread()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait