KNMapRouteEventListener
INFO
This English reference is based on Directions SDK 1.12.12. For the latest version, see the Korean reference.
- Inherits from: NSObject
- Declared in: KNMapRouteProperties.h
Receives touch events for routes, including single-tap, double-tap, and long-press. Implement KNMapRouteEventListener and register it with KNMapView.routeProperties.
Methods
mapView:onSingleTapped:index
Called when a route is tapped once. Returns information about the selected route.
objc
- (void) mapView: (KNMapView *_Nonnull) aMapView
onSingleTapped: (KNRoute*_Nonnull) aRoute
index: (int) aIndex;Parameters
| Name | Description |
|---|---|
aMapView | Map view where KNRoute is registered |
aRoute | Selected route |
aIndex | Index of the selected route in the list of routes registered on the map |
mapView:onDoubleTapped:index
Called when a route is double-tapped. Returns information about the selected route.
objc
- (void) mapView: (KNMapView *_Nonnull) aMapView
onDoubleTapped: (KNRoute*_Nonnull) aRoute
index: (int) aIndex;Parameters
| Name | Description |
|---|---|
aMapView | Map view where KNRoute is registered |
aRoute | Selected route |
aIndex | Index of the selected route in the list of routes registered on the map |
mapView:onLongPressed:index
Called when a route is long-pressed. Returns information about the selected route.
objc
- (void) mapView: (KNMapView *_Nonnull) aMapView
onLongPressed: (KNRoute*_Nonnull) aRoute
index: (int) aIndex;Parameters
| Name | Description |
|---|---|
aMapView | Map view where KNRoute is registered |
aRoute | Selected route |
aIndex | Index of the selected route in the list of routes registered on the map |