Class is used for storing location parameters: identifier, version, name, a list of sublocations, etc. More...
#include <com/navigine/idl/objc/NCLocation.h>
Inherits NSObject.
Instance Methods | |
| (nullable NCElevationGraph *) | - getElevationGraph: |
| Method returns location elevation graph ElevationGraph for specified tag. | |
| (nonnull NSArray< NSString * > *) | - getGraphTags |
| Method returns list of available graph tags. | |
| (nullable NCSublocation *) | - getSublocationById: |
| Method is used for obtaining a sublocation with the specified identifier from the current location. | |
| (nullable NCCategory *) | - getCategoryById: |
| Method is used for obtaining a category with the specified identifier from the current location. | |
Properties | |
| int32_t | id |
| location's identifier. | |
| int32_t | version |
| location's version. | |
| NSString * | name |
| location name. | |
| NSString * | descript |
| location's description. | |
| NSArray< NCCategory * > * | categories |
| List of venue categories defined for the location Category. | |
| NSArray< NCSublocation * > * | sublocations |
| List of sublocations Sublocation. | |
| BOOL | modified |
| Flag indicates if location has been modified by user or not. | |
| BOOL | valid |
Class is used for storing location parameters: identifier, version, name, a list of sublocations, etc.
Location instance can be obtained from LocationManager using LocationListener callback, when the location is loaded.
Referenced from LocationManager LocationListener.
Definition at line 23 of file NCLocation.h.
| - (nullable NCCategory *) getCategoryById: | (int32_t) | id |
Method is used for obtaining a category with the specified identifier from the current location.
| id | category identifier. |
Swift code snippet:
Objective C code snippet:
| - (nullable NCElevationGraph *) getElevationGraph: | (nonnull NSString *) | tag |
Method returns location elevation graph ElevationGraph for specified tag.
| tag | Graph tag in CMS |
null. Swift code snippet:
Objective C code snippet:
| - (nonnull NSArray< NSString * > *) getGraphTags |
Method returns list of available graph tags.
Swift code snippet:
Objective C code snippet:
| - (nullable NCSublocation *) getSublocationById: | (int32_t) | id |
Method is used for obtaining a sublocation with the specified identifier from the current location.
| id | sublocation identifier. |
Swift code snippet:
Objective C code snippet:
|
readnonatomicassign |
List of venue categories defined for the location Category.
Swift code snippet:
Objective C code snippet:
Definition at line 167 of file NCLocation.h.
|
readnonatomicassign |
location's description.
Swift code snippet:
Objective C code snippet:
Definition at line 152 of file NCLocation.h.
|
readnonatomicassign |
location's identifier.
Swift code snippet:
Objective C code snippet:
Definition at line 107 of file NCLocation.h.
|
readnonatomicassign |
Flag indicates if location has been modified by user or not.
Swift code snippet:
Objective C code snippet:
Definition at line 197 of file NCLocation.h.
|
readnonatomicassign |
location name.
Swift code snippet:
Objective C code snippet:
Definition at line 137 of file NCLocation.h.
|
readnonatomicassign |
List of sublocations Sublocation.
Swift code snippet:
Objective C code snippet:
Definition at line 182 of file NCLocation.h.
|
readnonatomicassign |
Tells if this object is valid or not. 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.
Definition at line 205 of file NCLocation.h.
|
readnonatomicassign |
location's version.
Swift code snippet:
Objective C code snippet:
Definition at line 122 of file NCLocation.h.