Warning

This feature is available in the Full MapKit SDK version

MMKRoadEventsLayer

@interface MMKRoadEventsLayer : NSObject

Undocumented

Summary

Instance methods

- (void)addListenerWithLayerListener:
    (nonnull id<MMKRoadEventsLayerListener>)layerListener;

The class does not retain the object in the 'layerListener' parameter

- (void)removeListenerWithLayerListener:
    (nonnull id<MMKRoadEventsLayerListener>)layerListener;

Undocumented

- (void)selectRoadEventWithEventId:(nonnull NSString *)eventId;
Selects a road event with specified id

- (void)deselectRoadEvent;
Deselects selected road event if any

- (void)setRoadEventVisibleOnRouteWithTag:(MMKRoadEventsEventTag)tag
                                       on:(BOOL)on;

Sets road events on route tag visibility

Properties

@property (nonatomic, readonly, getter=isValid) BOOL valid;
Tells if this object is valid or no

Instance methods

addListenerWithLayerListener:

- (void)addListenerWithLayerListener:
    (nonnull id<MMKRoadEventsLayerListener>)layerListener;

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.


removeListenerWithLayerListener:

- (void)removeListenerWithLayerListener:
    (nonnull id<MMKRoadEventsLayerListener>)layerListener;

Undocumented


selectRoadEventWithEventId:

- (void)selectRoadEventWithEventId:(nonnull NSString *)eventId;

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

- (void)deselectRoadEvent;

Deselects selected road event if any.


setRoadEventVisibleOnRouteWithTag:on:

- (void)setRoadEventVisibleOnRouteWithTag:(MMKRoadEventsEventTag)tag
                                       on:(BOOL)on;

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

valid

@property (nonatomic, readonly, getter=isValid) BOOL valid;

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.