package com.mjstudio.reactnativenavermap.event import com.facebook.react.bridge.Arguments import com.facebook.react.bridge.WritableMap import com.facebook.react.uimanager.events.Event class NaverMapClusterLeafTapEvent( surfaceId: Int, viewId: Int, private val markerIdentifier: String, ) : Event(surfaceId, viewId) { override fun getEventName(): String = EVENT_NAME override fun canCoalesce(): Boolean = false override fun getCoalescingKey(): Short = 0 override fun getEventData(): WritableMap = Arguments.createMap().apply { putString("markerIdentifier", markerIdentifier) } companion object { const val EVENT_NAME = "topTapClusterLeaf" } }