-
- All Implemented Interfaces:
-
com.brightcove.player.event.Component
@Emits(events = {EventType.DID_SET_VIDEO_STILL, EventType.DID_SET_VIDEO_STILL_ERROR})@ListensFor(events = {}) public class LoadImageTask extends AsyncTask<URI, Void, Bitmap> implements Component
General purpose AsyncTask to load an image over the network into an ImageView. The Event type specified in the constructor will be emitted on successful load of an image.
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
TAG
private String
successEventType
-
Constructor Summary
Constructors Constructor Description LoadImageTask(ImageView view, EventEmitter eventEmitter)
-
Method Summary
Modifier and Type Method Description String
getSuccessEventType()
Get the currently configured EventType string that is to be emitted on successful load of aBitmap. void
setSuccessEventType(String type)
Set the EventType string to be emitted on successful load of a Bitmap. -
-
Constructor Detail
-
LoadImageTask
LoadImageTask(ImageView view, EventEmitter eventEmitter)
-
-
Method Detail
-
getSuccessEventType
String getSuccessEventType()
Get the currently configured EventType string that is to be emitted on successful load of aBitmap.
-
setSuccessEventType
void setSuccessEventType(String type)
Set the EventType string to be emitted on successful load of a Bitmap.
- Parameters:
type
- the EventType string
-
-
-
-