Loading...
Searching...
No Matches

General information about location. More...

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

Inherits NSObject.

Instance Methods

(nonnull instancetype) - initWithId:version:name:
 Default constructor for class NCLocationInfo.
 

Class Methods

(nonnull instancetype) + locationInfoWithId:version:name:
 Factory method for class NCLocationInfo.
 

Properties

int32_t id
 Unique location identifier.
 
int32_t version
 Current location version.
 
NSString * name
 location name.
 

Detailed Description

General information about location.

Referenced from: LocationListListener, LocationListListener

Definition at line 18 of file NCLocationInfo.h.

Method Documentation

◆ initWithId:version:name:

- (nonnull instancetype) initWithId: (int32_t) id
version: (int32_t) version
name: (nonnull NSString *) name 

Default constructor for class NCLocationInfo.

◆ locationInfoWithId:version:name:

+ (nonnull instancetype) locationInfoWithId: (int32_t) id
version: (int32_t) version
name: (nonnull NSString *) name 

Factory method for class NCLocationInfo.

Property Documentation

◆ id

- (int32_t) id
readnonatomicassign

Unique location identifier.

Swift code snippet:

// Get location ID
let id = locationInfo.id
print("Location ID: \‍(id)")

Objective C code snippet:

// Get location ID
int32_t id = locationInfo.id;
NSLog(@"Location ID: %d", id);

Definition at line 46 of file NCLocationInfo.h.

◆ name

- (NSString*) name
readnonatomicassign

location name.

Swift code snippet:

// Get location name
let name = locationInfo.name
print("Location name: \‍(name)")

Objective C code snippet:

// Get location name
NSString *name = locationInfo.name;
NSLog(@"Location name: %@", name);

Definition at line 74 of file NCLocationInfo.h.

◆ version

- (int32_t) version
readnonatomicassign

Current location version.

Swift code snippet:

// Get location version
let version = locationInfo.version
print("Location version: \‍(version)")

Objective C code snippet:

// Get location version
int32_t version = locationInfo.version;
NSLog(@"Location version: %d", version);

Definition at line 60 of file NCLocationInfo.h.


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