Class is used for storing sublocation parameters: identifier, name, width, height, etc. More...
#include <com/navigine/idl/objc/NCSublocation.h>
Inherits NSObject.
Instance Methods | |
| (nullable UIImage *) | - getImage: |
| Method is used to obtain origin sublocation image with specified maxTextureSize. | |
| (nonnull NCLocationPoint *) | - globalToLocal: |
| (nonnull NCGlobalPoint *) | - localToGlobal: |
| Method is used for converting the local sublocation coordinates to the global geographic coordinates (latitude and longitude) using the geographic binding of the sublocation. | |
| (nullable NCGraph *) | - getGraph: |
Method is used to obtain graph (within the current sublocation) with the specified identifier or null if no such graph. | |
| (nullable NCVenue *) | - getVenueById: |
Method returns the venue (within the current sublocation) with the specified identifier or null if no such venue exists. | |
| (nullable NCZone *) | - getZoneById: |
Method returns the zone (within the current sublocation) with the specified identifier or null if no such zone exists. | |
Properties | |
| int32_t | id |
| sublocation's identifier. | |
| int32_t | location |
| location's identifier to which the sublocation belongs. | |
| NSString * | name |
| sublocation's name. | |
| float | width |
| sublocation's width in meters. | |
| float | height |
| sublocation's height in meters. | |
| NSNumber * | altitude |
| sublocation's altitude in meters if specified. | |
| float | azimuth |
| sublocation's azimuth in degrees clockwise. | |
| NCGlobalPoint * | originPoint |
| sublocation's center point in WGS84 coordinates GlobalPoint. | |
| NSString * | levelId |
| sublocation's levelId. | |
| NSString * | externalId |
| sublocation's externalId. | |
| NSString * | buildingName |
| sublocation's building name (e.g. "Outdoor" for overview plan). | |
| NSArray< NCBeacon * > * | beacons |
| List of beacons, attached to this sublocation Beacon. | |
| NSArray< NCEddystone * > * | eddystones |
| List of eddystones, attached to this sublocation Eddystone. | |
| NSArray< NCWifi * > * | wifis |
| List of wifis, attached to this sublocation Wifi. | |
| NSArray< NCVenue * > * | venues |
| List of venues, attached to this sublocation Venue. | |
| NSArray< NCZone * > * | zones |
| List of zones, attached to this sublocation Zone. | |
| BOOL | valid |
Class is used for storing sublocation parameters: identifier, name, width, height, etc.
The list of sublocations for the current location can be obtained from Location class using public method getSublocations.
Referenced from Location.
Definition at line 29 of file NCSublocation.h.
| - (nullable NCGraph *) getGraph: | (nonnull NSString *) | tag |
Method is used to obtain graph (within the current sublocation) with the specified identifier or null if no such graph.
| tag | graph tag. |
null Graph.Swift code snippet:
Objective C code snippet:
| - (nullable UIImage *) getImage: | (nullable NSNumber *) | maxTextureSize |
Method is used to obtain origin sublocation image with specified maxTextureSize.
| maxTextureSize | maximum texture size to render. |
Swift code snippet:
Objective C code snippet:
| - (nullable NCVenue *) getVenueById: | (int32_t) | id |
Method returns the venue (within the current sublocation) with the specified identifier or null if no such venue exists.
| id | venue unique identifier. |
null Venue.Swift code snippet:
Objective C code snippet:
| - (nullable NCZone *) getZoneById: | (int32_t) | id |
Method returns the zone (within the current sublocation) with the specified identifier or null if no such zone exists.
| id | zone unique identifier. |
null Zone.Swift code snippet:
Objective C code snippet:
| - (nonnull NCLocationPoint *) globalToLocal: | (nonnull NCGlobalPoint *) | globalPoint |
Method is used for converting the global geographic coordinates (latitude and longitude) to the local sublocation coordinates (x and y) using the geographic binding of the sublocation
| globalPoint | point in WGS84 coordinates GlobalPoint |
Swift code snippet:
Objective C code snippet:
| - (nonnull NCGlobalPoint *) localToGlobal: | (nonnull NCLocationPoint *) | localPoint |
Method is used for converting the local sublocation coordinates to the global geographic coordinates (latitude and longitude) using the geographic binding of the sublocation.
| localPoint | point in metrics coordinates LocationPoint |
Swift code snippet:
Objective C code snippet:
|
readnonatomicassign |
sublocation's altitude in meters if specified.
Swift code snippet:
Objective C code snippet:
Definition at line 226 of file NCSublocation.h.
|
readnonatomicassign |
sublocation's azimuth in degrees clockwise.
Swift code snippet:
Objective C code snippet:
Definition at line 241 of file NCSublocation.h.
|
readnonatomicassign |
List of beacons, attached to this sublocation Beacon.
Swift code snippet:
Objective C code snippet:
Definition at line 316 of file NCSublocation.h.
|
readnonatomicassign |
sublocation's building name (e.g. "Outdoor" for overview plan).
Swift code snippet:
Objective C code snippet:
Definition at line 301 of file NCSublocation.h.
|
readnonatomicassign |
List of eddystones, attached to this sublocation Eddystone.
Swift code snippet:
Objective C code snippet:
Definition at line 331 of file NCSublocation.h.
|
readnonatomicassign |
sublocation's externalId.
Swift code snippet:
Objective C code snippet:
Definition at line 286 of file NCSublocation.h.
|
readnonatomicassign |
sublocation's height in meters.
Swift code snippet:
Objective C code snippet:
Definition at line 211 of file NCSublocation.h.
|
readnonatomicassign |
sublocation's identifier.
Swift code snippet:
Objective C code snippet:
Definition at line 151 of file NCSublocation.h.
|
readnonatomicassign |
sublocation's levelId.
Swift code snippet:
Objective C code snippet:
Definition at line 271 of file NCSublocation.h.
|
readnonatomicassign |
location's identifier to which the sublocation belongs.
Swift code snippet:
Objective C code snippet:
Definition at line 166 of file NCSublocation.h.
|
readnonatomicassign |
sublocation's name.
Swift code snippet:
Objective C code snippet:
Definition at line 181 of file NCSublocation.h.
|
readnonatomicassign |
sublocation's center point in WGS84 coordinates GlobalPoint.
Swift code snippet:
Objective C code snippet:
Definition at line 256 of file NCSublocation.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 391 of file NCSublocation.h.
|
readnonatomicassign |
List of venues, attached to this sublocation Venue.
Swift code snippet:
Objective C code snippet:
Definition at line 368 of file NCSublocation.h.
|
readnonatomicassign |
sublocation's width in meters.
Swift code snippet:
Objective C code snippet:
Definition at line 196 of file NCSublocation.h.
|
readnonatomicassign |
List of wifis, attached to this sublocation Wifi.
Swift code snippet:
Objective C code snippet:
Definition at line 346 of file NCSublocation.h.
|
readnonatomicassign |
List of zones, attached to this sublocation Zone.
Swift code snippet:
Objective C code snippet:
Definition at line 383 of file NCSublocation.h.