java.lang.Object | ||
↳ | android.os.AsyncTask<Params, Progress, Result> | |
↳ | com.microsoft.intune.mam.client.identity.MAMAsyncTask<Params, Progress, Result> |
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.
[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
|
Constructor.
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. |
---|
MAM version of doInBackground. See AsyncTask.doInBackground for method description.
params | parameters |
---|
MAM version of onPreExecute. See AsyncTask.onPreExecute for method description.