YMKUserLocationObjectListener

protocol YMKUserLocationObjectListener : NSObjectProtocol

User location events object listener. Use it to customize the user location view. Although some callbacks are unused, the generic structure of the interface is suitable for object layer listeners.

Summary

Instance methods

func onObjectAdded(with view: YMKUserLocationView)
Called when the layer object is added

func onObjectRemoved(with view: YMKUserLocationView)
Called when the layer object is being removed

func onObjectUpdated(with view: YMKUserLocationView, event: YMKObjectEvent)
Called when the layer object is being updated

Instance methods

onObjectAdded(with:)

func onObjectAdded(with view: YMKUserLocationView)

Called when the layer object is added. It is called once when the user location icon appears the first time.


onObjectRemoved(with:)

func onObjectRemoved(with view: YMKUserLocationView)

Called when the layer object is being removed. It is never called for the user location icon.


onObjectUpdated(with:event:)

func onObjectUpdated(with view: YMKUserLocationView, event: YMKObjectEvent)

Called when the layer object is being updated. The 'event' parameter can be one of the derived types.


Предыдущая
Следующая