public class

MAMApplication

extends Application
implements HookedApplication
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.app.Application
         ↳ com.microsoft.intune.mam.client.app.MAMApplication

Class Overview

Managed version of android.app.Application.

Summary

[Expand]
Inherited Constants
From class android.content.Context
From interface android.content.ComponentCallbacks2
Public Constructors
MAMApplication()
Public Methods
Context getBaseContext()
static Application.ActivityLifecycleCallbacks offlineRegisterActivityLifecycleCallbacks(Application.ActivityLifecycleCallbacks callbacks, boolean isActivityCallback)
Wrap activity lifecycle callbacks in offline mode.
static Application.ActivityLifecycleCallbacks offlineUnregisterActivityLifecycleCallbacks(Application.ActivityLifecycleCallbacks callbacks)
Unregister activity lifecycle callbacks in offline mode.
final void onCreate()
void onMAMCreate()
MAM version of onCreate.
void registerActivityLifecycleCallbacks(Application.ActivityLifecycleCallbacks callbacks)
void unregisterActivityLifecycleCallbacks(Application.ActivityLifecycleCallbacks callbacks)
Protected Methods
void attachBaseContext(Context context)
[Expand]
Inherited Methods
From class android.app.Application
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface com.microsoft.intune.mam.client.app.HookedApplication

Public Constructors

public MAMApplication ()

Public Methods

public Context getBaseContext ()

public static Application.ActivityLifecycleCallbacks offlineRegisterActivityLifecycleCallbacks (Application.ActivityLifecycleCallbacks callbacks, boolean isActivityCallback)

Wrap activity lifecycle callbacks in offline mode.

Parameters
callbacks Callbacks to wrap.
isActivityCallback If true, callbacks are being registered on an Activity.
Returns
  • Wrapped callback

public static Application.ActivityLifecycleCallbacks offlineUnregisterActivityLifecycleCallbacks (Application.ActivityLifecycleCallbacks callbacks)

Unregister activity lifecycle callbacks in offline mode.

Parameters
callbacks Callbacks to unregister.
Returns
  • Wrapped callback

public final void onCreate ()

public void onMAMCreate ()

MAM version of onCreate.

public void registerActivityLifecycleCallbacks (Application.ActivityLifecycleCallbacks callbacks)

public void unregisterActivityLifecycleCallbacks (Application.ActivityLifecycleCallbacks callbacks)

Protected Methods

protected void attachBaseContext (Context context)