public final class

MAMStrictMode

extends Object
java.lang.Object
   ↳ com.microsoft.intune.mam.client.strict.MAMStrictMode

Class Overview

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.

Summary

Public Methods
static void enable()
Enable MAM strict mode.
static StrictGlobalSettings global()
static StrictThreadSettings thread()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void enable ()

Enable MAM strict mode. Alias for global().enable()

public static StrictGlobalSettings global ()

Returns
  • process-wide strict-mode settings

public static StrictThreadSettings thread ()

Returns
  • per-thread strict mode settings