-
public class ImageLoadEvent extends Event<ImageLoadEvent>
-
-
Field Summary
Fields Modifier and Type Field Description public final static intON_ERRORpublic final static intON_LOADpublic final static intON_LOAD_ENDpublic final static intON_LOAD_STARTpublic final static intON_PROGRESS
-
Method Summary
Modifier and Type Method Description final static ImageLoadEventcreateLoadStartEvent(int viewId)final static ImageLoadEventcreateProgressEvent(int viewId, @Nullable() String imageUri, int loaded, int total)final static ImageLoadEventcreateLoadEvent(int viewId, @Nullable() String imageUri, int width, int height)final static ImageLoadEventcreateErrorEvent(int viewId, Throwable throwable)final static ImageLoadEventcreateLoadEndEvent(int viewId)final static ImageLoadEventcreateLoadStartEvent(int surfaceId, int viewId)final static ImageLoadEventcreateProgressEvent(int surfaceId, int viewId, @Nullable() String imageUri, int loaded, int total)final static ImageLoadEventcreateLoadEvent(int surfaceId, int viewId, @Nullable() String imageUri, int width, int height)final static ImageLoadEventcreateErrorEvent(int surfaceId, int viewId, Throwable throwable)final static ImageLoadEventcreateLoadEndEvent(int surfaceId, int viewId)static StringeventNameForType(int eventType)StringgetEventName()shortgetCoalescingKey()-
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()
-
-
-
-