12345678910111213141516171819202122232425 |
- package com.reactnativecommunity.webview.events
-
- import com.facebook.react.bridge.WritableMap
- import com.facebook.react.uimanager.events.Event
- import com.facebook.react.uimanager.events.RCTEventEmitter
-
- /**
- * Event emitted when there is a loading progress event.
- */
- class TopLoadingProgressEvent(viewId: Int, private val mEventData: WritableMap) :
- Event<TopLoadingProgressEvent>(viewId) {
- companion object {
- const val EVENT_NAME = "topLoadingProgress"
- }
-
- override fun getEventName(): String = EVENT_NAME
-
- override fun canCoalesce(): Boolean = false
-
- override fun getCoalescingKey(): Short = 0
-
- override fun dispatch(rctEventEmitter: RCTEventEmitter) =
- rctEventEmitter.receiveEvent(viewTag, eventName, mEventData)
- }
|