Loading...
Searching...
No Matches
NCTargetReachedEvent Class Reference

Event indicating the route target has been reached. More...

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

Inherits NSObject.

Instance Methods

(nonnull instancetype) - initWithIndex:point:
 Default constructor for class NCTargetReachedEvent.
 

Class Methods

(nonnull instancetype) + targetReachedEventWithIndex:point:
 Factory method for class NCTargetReachedEvent.
 

Properties

int64_t index
 Index of reached target in target list.
 
NCLocationPoint * point
 Location point where target was reached.
 

Detailed Description

Event indicating the route target has been reached.

Referenced from RouteEvent.

Definition at line 19 of file NCTargetReachedEvent.h.

Method Documentation

◆ initWithIndex:point:

- (nonnull instancetype) initWithIndex: (int64_t) index
point: (nonnull NCLocationPoint *) point 

Default constructor for class NCTargetReachedEvent.

◆ targetReachedEventWithIndex:point:

+ (nonnull instancetype) targetReachedEventWithIndex: (int64_t) index
point: (nonnull NCLocationPoint *) point 

Factory method for class NCTargetReachedEvent.

Property Documentation

◆ index

- (int64_t) index
readnonatomicassign

Index of reached target in target list.

Swift code snippet:

let index = event.getIndex()
print("Reached target index: \‍(index)")

Objective C code snippet:

int64_t index = [event getIndex];
NSLog(@"Reached target index: %lld", index);

Definition at line 46 of file NCTargetReachedEvent.h.

◆ point

- (NCLocationPoint*) point
readnonatomicassign

Location point where target was reached.

Swift code snippet:

let point = event.getPoint()
demonstrateLocationPointUsage(point)

Objective C code snippet:

NCLocationPoint *point = [event getPoint];
[self demonstrateLocationPointUsage:point];

Definition at line 61 of file NCTargetReachedEvent.h.


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