Loading...
Searching...
No Matches

Class describing turn guidance event. More...

#include <com/navigine/idl/objc/NCTurnEvent.h>

Inherits NSObject.

Instance Methods

(nonnull instancetype) - initWithType:angle:
 Default constructor for class NCTurnEvent.
 

Class Methods

(nonnull instancetype) + turnEventWithType:angle:
 Factory method for class NCTurnEvent.
 

Properties

NCTurnType type
 Turn direction/severity type.
 
int32_t angle
 Signed turn angle in degrees.
 

Detailed Description

Class describing turn guidance event.

Referenced from RouteEvent.

Definition at line 19 of file NCTurnEvent.h.

Method Documentation

◆ initWithType:angle:

- (nonnull instancetype) initWithType: (NCTurnType) type
angle: (int32_t) angle 

Default constructor for class NCTurnEvent.

◆ turnEventWithType:angle:

+ (nonnull instancetype) turnEventWithType: (NCTurnType) type
angle: (int32_t) angle 

Factory method for class NCTurnEvent.

Property Documentation

◆ angle

- (int32_t) angle
readnonatomicassign

Signed turn angle in degrees.

Swift code snippet:

let angle = event.getAngle()
print("Turn angle: \‍(angle)")

Objective C code snippet:

int32_t angle = [event getAngle];
NSLog(@"Turn angle: %d", angle);

Definition at line 61 of file NCTurnEvent.h.

◆ type

- (NCTurnType) type
readnonatomicassign

Turn direction/severity type.

Swift code snippet:

let type = event.getType()
print("Turn type: \‍(type)")

Objective C code snippet:

NCTurnType type = [event getType];
NSLog(@"Turn type: %ld", (long)type);

Definition at line 46 of file NCTurnEvent.h.


The documentation for this class was generated from the following file: