@Emits(events="didSetVideoStill") @ListensFor(events={}) public class LoadImageTask extends android.os.AsyncTask<java.net.URI,java.lang.Void,android.graphics.Bitmap> implements Component
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
TAG  | 
| Constructor and Description | 
|---|
LoadImageTask(android.widget.ImageView view,
             EventEmitter eventEmitter)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected android.graphics.Bitmap | 
doInBackground(java.net.URI... params)
Loads a Bitmap over the network using the given URL. 
 | 
java.lang.String | 
getSuccessEventType()
Get the currently configured EventType string that is to be emitted on successful load of a
 Bitmap. 
 | 
protected void | 
onPostExecute(android.graphics.Bitmap image)
On successful load of a Bitmap from the background thread, put that Bitmap in the ImageView
 provided to this task. 
 | 
void | 
setSuccessEventType(java.lang.String type)
Set the EventType string to be emitted on successful load of a Bitmap. 
 | 
public LoadImageTask(android.widget.ImageView view,
                     EventEmitter eventEmitter)
public java.lang.String getSuccessEventType()
public void setSuccessEventType(java.lang.String type)
type - the EventType stringprotected android.graphics.Bitmap doInBackground(java.net.URI... params)
doInBackground in class android.os.AsyncTask<java.net.URI,java.lang.Void,android.graphics.Bitmap>params - should contain a single URL objectprotected void onPostExecute(android.graphics.Bitmap image)
onPostExecute in class android.os.AsyncTask<java.net.URI,java.lang.Void,android.graphics.Bitmap>image - the Bitmap that was loaded via background thread