public final class LoadModelAsyncTask
extends android.os.AsyncTask<java.lang.Void,java.lang.Integer,Model>
implements android.content.DialogInterface.OnClickListener
Modifier and Type | Class and Description |
---|---|
static interface |
LoadModelAsyncTask.Listener
Interface for callback invocations
|
Constructor and Description |
---|
LoadModelAsyncTask(android.content.Context context,
LoadModelAsyncTask.Listener listener,
android.net.Uri uri)
Creates a new instance of this class
|
Modifier and Type | Method and Description |
---|---|
protected Model |
doInBackground(java.lang.Void... voids) |
void |
errorOccurred(java.lang.String msg,
java.lang.Throwable t) |
int |
getProbeLimit() |
boolean |
isCanceled() |
boolean |
isProbeOnly() |
void |
onClick(android.content.DialogInterface d,
int which) |
protected void |
onPostExecute(Model model) |
protected void |
onPreExecute() |
protected void |
onProgressUpdate(java.lang.Integer... values) |
void |
progress(int progress) |
void |
setProbeMatch(boolean match) |
public LoadModelAsyncTask(android.content.Context context, LoadModelAsyncTask.Listener listener, android.net.Uri uri)
context
- the context to display the progress dialog in; may not be null
listener
- listener whose methods will be invoked when events occur; may not be
null
java.lang.NullPointerException
- if context
, listener
, or uri
are
null
protected void onPreExecute()
onPreExecute
in class android.os.AsyncTask<java.lang.Void,java.lang.Integer,Model>
protected Model doInBackground(java.lang.Void... voids)
doInBackground
in class android.os.AsyncTask<java.lang.Void,java.lang.Integer,Model>
protected void onProgressUpdate(java.lang.Integer... values)
onProgressUpdate
in class android.os.AsyncTask<java.lang.Void,java.lang.Integer,Model>
protected void onPostExecute(Model model)
onPostExecute
in class android.os.AsyncTask<java.lang.Void,java.lang.Integer,Model>
public void onClick(android.content.DialogInterface d, int which)
onClick
in interface android.content.DialogInterface.OnClickListener
public boolean isCanceled()
public boolean isProbeOnly()
public int getProbeLimit()
public void setProbeMatch(boolean match)
public void errorOccurred(java.lang.String msg, java.lang.Throwable t)
public void progress(int progress)