Важно

This feature is available in the Full MapKit SDK version

YMKRoadEventsLayer

class YMKRoadEventsLayer : NSObject

Undocumented

Summary

Instance methods

func addListener(with layerListener: YMKRoadEventsLayerListener)
The class does not retain the object in the 'layerListener' parameter

func removeListener(with layerListener: YMKRoadEventsLayerListener)
Undocumented

func selectRoadEvent(withEventId eventId: String)
Selects a road event with specified id

func deselectRoadEvent()
Deselects selected road event if any

func setRoadEventVisibleOnRouteWith( tag: YMKRoadEventsEventTag_, on: Bool)
Sets road events on route tag visibility

Properties

var isValid: Bool { get }
Tells if this object is valid or no

Instance methods

addListener(with:)

func addListener(with layerListener: YMKRoadEventsLayerListener)

The class does not retain the object in the 'layerListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.


removeListener(with:)

func removeListener(with layerListener: YMKRoadEventsLayerListener)

Undocumented


selectRoadEvent(withEventId:)

func selectRoadEvent(withEventId eventId: String)

Selects a road event with specified id. Only one event can be selected at a time. If some other event is selected already, it will be deselected.


deselectRoadEvent()

func deselectRoadEvent()

Deselects selected road event if any.


setRoadEventVisibleOnRouteWith(_:on:)

func setRoadEventVisibleOnRouteWith( tag: YMKRoadEventsEventTag_, on: Bool)

Sets road events on route tag visibility. Setting local chats visibility will also set visibility for ordinary chats and vice versa. None are visible by default.


Properties

isValid

var isValid: Bool { get }

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.