-
public class ImageLoadEvent extends Event<ImageLoadEvent>
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
ON_ERROR
public final static int
ON_LOAD
public final static int
ON_LOAD_END
public final static int
ON_LOAD_START
public final static int
ON_PROGRESS
-
Method Summary
Modifier and Type Method Description final static ImageLoadEvent
createLoadStartEvent(int viewId)
final static ImageLoadEvent
createProgressEvent(int viewId, @Nullable() String imageUri, int loaded, int total)
final static ImageLoadEvent
createLoadEvent(int viewId, @Nullable() String imageUri, int width, int height)
final static ImageLoadEvent
createErrorEvent(int viewId, Throwable throwable)
final static ImageLoadEvent
createLoadEndEvent(int viewId)
final static ImageLoadEvent
createLoadStartEvent(int surfaceId, int viewId)
final static ImageLoadEvent
createProgressEvent(int surfaceId, int viewId, @Nullable() String imageUri, int loaded, int total)
final static ImageLoadEvent
createLoadEvent(int surfaceId, int viewId, @Nullable() String imageUri, int width, int height)
final static ImageLoadEvent
createErrorEvent(int surfaceId, int viewId, Throwable throwable)
final static ImageLoadEvent
createLoadEndEvent(int surfaceId, int viewId)
static String
eventNameForType(int eventType)
String
getEventName()
short
getCoalescingKey()
-
Methods inherited from class com.facebook.react.uimanager.events.Event
canCoalesce, coalesce, dispatch, dispatchModern, getSurfaceId, getTimestampMs, getUIManagerType, getUniqueID, getViewTag, onDispose
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
createLoadStartEvent
@Deprecated() final static ImageLoadEvent createLoadStartEvent(int viewId)
-
createProgressEvent
@Deprecated() final static ImageLoadEvent createProgressEvent(int viewId, @Nullable() String imageUri, int loaded, int total)
-
createLoadEvent
@Deprecated() final static ImageLoadEvent createLoadEvent(int viewId, @Nullable() String imageUri, int width, int height)
-
createErrorEvent
@Deprecated() final static ImageLoadEvent createErrorEvent(int viewId, Throwable throwable)
-
createLoadEndEvent
@Deprecated() final static ImageLoadEvent createLoadEndEvent(int viewId)
-
createLoadStartEvent
final static ImageLoadEvent createLoadStartEvent(int surfaceId, int viewId)
-
createProgressEvent
final static ImageLoadEvent createProgressEvent(int surfaceId, int viewId, @Nullable() String imageUri, int loaded, int total)
- Parameters:
loaded
- Amount of the image that has been loaded.total
- Amount that `loaded` will be when the image is fully loaded.
-
createLoadEvent
final static ImageLoadEvent createLoadEvent(int surfaceId, int viewId, @Nullable() String imageUri, int width, int height)
-
createErrorEvent
final static ImageLoadEvent createErrorEvent(int surfaceId, int viewId, Throwable throwable)
-
createLoadEndEvent
final static ImageLoadEvent createLoadEndEvent(int surfaceId, int viewId)
-
eventNameForType
static String eventNameForType(int eventType)
-
getEventName
String getEventName()
-
getCoalescingKey
short getCoalescingKey()
-
-
-
-