Warning
This feature is available in the Full MapKit SDK version
MMKRoadEventsLayer
|
class MMKRoadEventsLayer : NSObject |
Undocumented
Summary
Instance methods
|
func addListener(with layerListener: MMKRoadEventsLayerListener) |
|
func removeListener(with layerListener: MMKRoadEventsLayerListener) |
|
func selectRoadEvent(withEventId eventId: String) |
|
func deselectRoadEvent() |
|
func setRoadEventVisibleOnRouteWith( tag: MMKRoadEventsEventTag_, on: Bool) |
Properties
|
var isValid: Bool { get } |
Instance methods
addListener(with:)
|
func addListener(with layerListener: MMKRoadEventsLayerListener) |
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: MMKRoadEventsLayerListener) |
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: MMKRoadEventsEventTag_, 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.