-
public class ScrollEvent extends Event<ScrollEvent>
A event dispatched from a ScrollView scrolling.
-
-
Method Summary
Modifier and Type Method Description static ScrollEventobtain(int viewTag, ScrollEventType scrollEventType, float scrollX, float scrollY, float xVelocity, float yVelocity, int contentWidth, int contentHeight, int scrollViewWidth, int scrollViewHeight)static ScrollEventobtain(int surfaceId, int viewTag, ScrollEventType scrollEventType, float scrollX, float scrollY, float xVelocity, float yVelocity, int contentWidth, int contentHeight, int scrollViewWidth, int scrollViewHeight)voidonDispose()Called when the EventDispatcher is done with an event, either because it was dispatched orbecause it was coalesced with another Event. StringgetEventName()booleancanCoalesce()-
Methods inherited from class com.facebook.react.uimanager.events.Event
coalesce, dispatch, dispatchModern, getCoalescingKey, getSurfaceId, getTimestampMs, getUIManagerType, getUniqueID, getViewTag -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
obtain
@Deprecated() static ScrollEvent obtain(int viewTag, ScrollEventType scrollEventType, float scrollX, float scrollY, float xVelocity, float yVelocity, int contentWidth, int contentHeight, int scrollViewWidth, int scrollViewHeight)
-
obtain
static ScrollEvent obtain(int surfaceId, int viewTag, ScrollEventType scrollEventType, float scrollX, float scrollY, float xVelocity, float yVelocity, int contentWidth, int contentHeight, int scrollViewWidth, int scrollViewHeight)
-
onDispose
void onDispose()
Called when the EventDispatcher is done with an event, either because it was dispatched orbecause it was coalesced with another Event.
-
getEventName
String getEventName()
-
canCoalesce
boolean canCoalesce()
-
-
-
-