KNMapUserLocationEventListener
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: KNMapUserLocation.h
Receives touch events for the user location, including single-tap, double-tap, and long-press, and receives animation completion events.
Methods
mapView:onSingleTappedWithUserLocation
Called when the user location is tapped once. Returns the selected user location.
objc
- (void) mapView: (KNMapView *_Nonnull) aMapView
onSingleTappedWithUserLocation: (KNMapUserLocation*_Nonnull) aUserLocationParameters
| Name | Description |
|---|---|
aMapView | Map view where KNMapUserLocation is registered |
aUserLocation | Selected vehicle icon |
mapView:onDoubleTappedWithUserLocation
Called when the user location is double-tapped. Returns the selected user location.
objc
- (void) mapView: (KNMapView *_Nonnull) aMapView
onDoubleTappedWithUserLocation: (KNMapUserLocation*_Nonnull) aUserLocationParameters
| Name | Description |
|---|---|
aMapView | Map view where KNMapUserLocation is registered |
aUserLocation | Selected vehicle icon |
mapView:onLongPressedWithUserLocation
Called when the user location is long-pressed. Returns the selected user location.
objc
- (void) mapView: (KNMapView *_Nonnull) aMapView
onLongPressedWithUserLocation: (KNMapUserLocation*_Nonnull) aUserLocationParameters
| Name | Description |
|---|---|
aMapView | Map view where KNMapUserLocation is registered |
aUserLocation | Selected vehicle icon |
mapView:userLocationAnimationEnded
Called when the user-location animation on the map ends.
objc
- (void) mapView: (KNMapView *_Nonnull) aMapView
userLocationAnimationEnded: (KNMapUserLocation*_Nonnull) aUserLocationParameters
| Name | Description |
|---|---|
aMapView | Map view where KNMapUserLocation is registered |
aUserLocation | Selected vehicle icon |