Navmii SDK  2.2.0
Write yourself a navigation system in iOS
Instance Methods | Class Methods | Properties | List of all members
NMTrafficService Class Reference

Inherits <NSObject>.

Instance Methods

(void) - addTrafficNearPositionListener:
 
(void) - removeTrafficNearPositionListener:
 
(nullable instancetype) - NS_UNAVAILABLE
 

Class Methods

(nullable instancetype) + NS_UNAVAILABLE
 

Properties

NMTrafficSnapshottrafficNearCurrentPosition
 

Detailed Description

Interface providing access to the latest traffic around the GPS coordinates.

Method Documentation

◆ addTrafficNearPositionListener:()

- (void) addTrafficNearPositionListener: (nonnull id< NMTrafficNearPositionListener >)  listener

Adds listener to be notified about traffic updates.

Parameters
listener@nonnull Listener to add.

◆ NS_UNAVAILABLE() [1/2]

+ (nullable instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE() [2/2]

- (nullable instancetype) NS_UNAVAILABLE

Default initialization is forbidden.

◆ removeTrafficNearPositionListener:()

- (void) removeTrafficNearPositionListener: (nonnull id< NMTrafficNearPositionListener >)  listener

Removes listener to be notified about traffic updates.

Parameters
listener@nonnull Listener to remove.

Property Documentation

◆ trafficNearCurrentPosition

- (NMTrafficSnapshot*) trafficNearCurrentPosition
readnonatomiccopy

Returns the latest traffic snapshot around the current GPS coordinates if available and 'nil' otherwise.