Loading...
Searching...
No Matches

Class described user zone event. More...

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

Inherits NSObject.

Instance Methods

(nonnull instancetype) - initWithType:locationId:sublocationId:id:name:alias:
 Default constructor for class NCZoneEvent.
 

Class Methods

(nonnull instancetype) + zoneEventWithType:locationId:sublocationId:id:name:alias:
 Factory method for class NCZoneEvent.
 

Properties

NCZoneEventType type
 Handled zone event type.
 
int32_t locationId
 zone's location identifier.
 
int32_t sublocationId
 zone's sublocationId identifier.
 
int32_t id
 zone's identifier.
 
NSString * name
 zone's name.
 
NSString * alias
 zone's alias.
 

Detailed Description

Class described user zone event.

Referenced from ZoneListener.

Definition at line 19 of file NCZoneEvent.h.

Method Documentation

◆ initWithType:locationId:sublocationId:id:name:alias:

- (nonnull instancetype) initWithType: (NCZoneEventType) type
locationId: (int32_t) locationId
sublocationId: (int32_t) sublocationId
id: (int32_t) id
name: (nonnull NSString *) name
alias: (nonnull NSString *) alias 

Default constructor for class NCZoneEvent.

◆ zoneEventWithType:locationId:sublocationId:id:name:alias:

+ (nonnull instancetype) zoneEventWithType: (NCZoneEventType) type
locationId: (int32_t) locationId
sublocationId: (int32_t) sublocationId
id: (int32_t) id
name: (nonnull NSString *) name
alias: (nonnull NSString *) alias 

Factory method for class NCZoneEvent.

Property Documentation

◆ alias

- (NSString*) alias
readnonatomicassign

zone's alias.

Swift code snippet:

// Get zone alias
let alias = zoneEvent.alias
print("Zone alias: \‍(alias)")

Objective C code snippet:

// Get zone alias
NSString *alias = zoneEvent.alias;
NSLog(@"Zone alias: %@", alias);

Definition at line 123 of file NCZoneEvent.h.

◆ id

- (int32_t) id
readnonatomicassign

zone's identifier.

Swift code snippet:

// Get zone ID
let id = zoneEvent.id
print("Zone ID: \‍(id)")

Objective C code snippet:

// Get zone ID
int32_t id = zoneEvent.id;
NSLog(@"Zone ID: %d", id);

Definition at line 95 of file NCZoneEvent.h.

◆ locationId

- (int32_t) locationId
readnonatomicassign

zone's location identifier.

Swift code snippet:

// Get location ID
let locationId = zoneEvent.locationId
print("Zone location ID: \‍(locationId)")

Objective C code snippet:

// Get location ID
int32_t locationId = zoneEvent.locationId;
NSLog(@"Zone location ID: %d", locationId);

Definition at line 67 of file NCZoneEvent.h.

◆ name

- (NSString*) name
readnonatomicassign

zone's name.

Swift code snippet:

// Get zone name
let name = zoneEvent.name
print("Zone name: \‍(name)")

Objective C code snippet:

// Get zone name
NSString *name = zoneEvent.name;
NSLog(@"Zone name: %@", name);

Definition at line 109 of file NCZoneEvent.h.

◆ sublocationId

- (int32_t) sublocationId
readnonatomicassign

zone's sublocationId identifier.

Swift code snippet:

// Get sublocation ID
let sublocationId = zoneEvent.sublocationId
print("Zone sublocation ID: \‍(sublocationId)")

Objective C code snippet:

// Get sublocation ID
int32_t sublocationId = zoneEvent.sublocationId;
NSLog(@"Zone sublocation ID: %d", sublocationId);

Definition at line 81 of file NCZoneEvent.h.

◆ type

- (NCZoneEventType) type
readnonatomicassign

Handled zone event type.

Swift code snippet:

// Get event type
let type = zoneEvent.type
print("Zone event type: \‍(type)")

Objective C code snippet:

// Get event type
NCZoneEventType type = zoneEvent.type;
NSLog(@"Zone event type: %ld", (long)type);

Definition at line 53 of file NCZoneEvent.h.


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