KNMapPOIEventListener
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. For the latest version, see the Korean reference.
Receives touch events for points of interest (POIs), such as single taps and double taps.
Example code — KNMapPOIEventListener
kotlin
interface KNMapPOIEventListenerMethods
onSingleTapped
Called when a POI is tapped once. Returns the selected POI information.
kotlin
abstract fun onSingleTapped( mapView: KNMapView?,
poiId: Long,
poiName: Array<String?>?,
coordinate: FloatPoint )Parameters
| Name | Description |
|---|---|
mapView | Map view where the touch event occurred |
poiId | ID of selected POI |
poiName | Name information of selected POI |
coordinate | KATEC coordinates of selected POI |
onDoubleTapped
Called when a POI is double-tapped. Returns the selected POI information.
kotlin
abstract fun onDoubleTapped( mapView: KNMapView?,
poiId: Long,
poiName: Array<String?>?,
coordinate: FloatPoint )Parameters
| Name | Description |
|---|---|
mapView | Map view where the touch event occurred |
poiId | ID of selected POI |
poiName | Name information of selected POI |
coordinate | KATEC coordinates of selected POI |
onLongPressed
Called when a POI is pressed and held. Returns the selected POI information.
kotlin
abstract fun onLongPressed( mapView: KNMapView?,
poiId: Long,
poiName: Array<String?>?,
coordinate: FloatPoint )Parameters
| Name | Description |
|---|---|
mapView | Map view where the touch event occurred |
poiId | ID of selected POI |
poiName | Name information of selected POI |
coordinate | KATEC coordinates of selected POI |