public abstract class

MAMAsyncTask

extends AsyncTask<Params, Progress, Result>
java.lang.Object
   ↳ android.os.AsyncTask<Params, Progress, Result>
     ↳ com.microsoft.intune.mam.client.identity.MAMAsyncTask<Params, Progress, Result>

Class Overview

MAM wrapper around AsyncTask. Ensures that activity identity is preserved for the background operation. Specifically, the thread identity from the main thread and the UI identity from the Context provided to the constructor are transferred to the background thread at the time it begins executing. If no thread or UI identity is set, the process identity is retrieved normally as needed -- it is not locked at the time the task begins.

Summary

[Expand]
Inherited Fields
From class android.os.AsyncTask
Public Constructors
MAMAsyncTask(Context context)
Constructor.
Protected Methods
final Result doInBackground(Params... params)
abstract Result doInBackgroundMAM(Params... params)
MAM version of doInBackground.
final void onPreExecute()
void onPreExecuteMAM()
MAM version of onPreExecute.
[Expand]
Inherited Methods
From class android.os.AsyncTask
From class java.lang.Object

Public Constructors

public MAMAsyncTask (Context context)

Constructor.

Parameters
context UI context (usually activity) this operation is associated with (and will take its identity from). In the unlikely event that there is no associated context, this may be null.

Protected Methods

protected final Result doInBackground (Params... params)

protected abstract Result doInBackgroundMAM (Params... params)

MAM version of doInBackground. See AsyncTask.doInBackground for method description.

Parameters
params parameters
Returns
  • result

protected final void onPreExecute ()

protected void onPreExecuteMAM ()

MAM version of onPreExecute. See AsyncTask.onPreExecute for method description.