Class YMKTrafficLayer

Method Detail

-addTrafficListenerWithTrafficListener:

- (void)addTrafficListenerWithTrafficListener:(nullable id< YMKTrafficDelegate >)trafficListener 

-isRoadEventVisibleWithType:

- (BOOL)isRoadEventVisibleWithType:(YMKRoadEventsEventType)type 

-isTrafficVisible

- (BOOL)isTrafficVisible

-removeTrafficListenerWithTrafficListener:

- (void)removeTrafficListenerWithTrafficListener:(nullable id< YMKTrafficDelegate >)trafficListener 

-setRoadEventVisibleWithType:on:

- (void)setRoadEventVisibleWithType:(YMKRoadEventsEventType)type
                                 on:(BOOL)on 

-setTrafficStyleWithStyle:

- (BOOL)setTrafficStyleWithStyle:(nonnull NSString *)style 

Applies JSON style transformations to the traffic layer.

Set to null to clear any previous custom styling. Returns true if the style was successfully parsed; false otherwise. If the return value is false, the current traffic style remains unchanged.

-setTrafficVisibleWithOn:

- (void)setTrafficVisibleWithOn:(BOOL)on 

Property Detail

valid

(assign, 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.