KTKDevice Class Reference

Inherits from NSObject
Conforms to KTKCloudModel
Declared in KTKDevice.h

Device Object Properties

  uniqueID

Kontakt unique identifier. (read-only)

@property (nonatomic, strong, readonly) NSString *uniqueID

Discussion

Kontakt unique identifier. (read-only)

Declared In

KTKDevice.h

  macAddress

Mac Address of the device. (read-only)

@property (nonatomic, strong, readonly) NSString *macAddress

Discussion

Mac Address of the device. (read-only)

Declared In

KTKDevice.h

  batteryLevel

Battery level percentage. (read-only)

@property (nonatomic, readonly, assign) NSUInteger batteryLevel

Discussion

Battery level percentage. (read-only)

Declared In

KTKDevice.h

  lastSeen

Last Seen of the device. (read-only)

@property (nonatomic, assign, readonly) NSTimeInterval lastSeen

Discussion

Last Seen of the device. (read-only)

Declared In

KTKDevice.h

  secureProximity

Secure iBeacon proximity UUID. (read-only)

@property (nonatomic, strong, readonly) NSUUID *secureProximity

Discussion

Secure iBeacon proximity UUID. (read-only)

Declared In

KTKDevice.h

  secureNamespace

Secure Eddystone namespace ID. (read-only)

@property (nonatomic, strong, readonly) NSString *secureNamespace

Discussion

Secure Eddystone namespace ID. (read-only)

Declared In

KTKDevice.h

  configuration

The device configuration object.

@property (nonatomic, strong, readwrite) KTKDeviceConfiguration *configuration

Discussion

The device configuration object.

Declared In

KTKDevice.h

  alias

An alias of the device.

@property (nonatomic, strong, readwrite) NSString *alias

Discussion

An alias of the device.

Declared In

KTKDevice.h

  tags

An array of device tags.

@property (nonatomic, strong, readwrite) NSArray<NSString*> *tags

Discussion

An array of device tags.

Declared In

KTKDevice.h

  meta

Meta dictionary object.

@property (nonatomic, strong, readwrite) NSDictionary *meta

Discussion

Meta dictionary object.

Declared In

KTKDevice.h

  firmwareVersion

The firmware version.

@property (nonatomic, strong, readwrite) NSString *firmwareVersion

Discussion

The firmware version.

Declared In

KTKDevice.h

  orderID

Kontakt order ID. (read-only)

@property (nonatomic, strong, readonly) NSString *orderID

Discussion

Kontakt order ID. (read-only)

Declared In

KTKDevice.h

  filtrationMask

Filtration Mask of the device. (read-only)

@property (nonatomic, assign, readonly) KTKDeviceFilteringClass filtrationMask

Discussion

Filtration Mask of the device. (read-only)

Declared In

KTKDevice.h

  bleScanChannel

Ble Scan Channel of the device. (read-only)

@property (nonatomic, assign, readonly) KTKDeviceBLEChannel bleScanChannel

Discussion

Ble Scan Channel of the device. (read-only)

Declared In

KTKDevice.h

  wifiSSID

WIFI SSID of the device. (read-only)

@property (nonatomic, strong, readonly) NSString *wifiSSID

Discussion

WIFI SSID of the device. (read-only)

Declared In

KTKDevice.h

  type

Device type. (read-only)

@property (nonatomic, assign, readonly) KTKDeviceType type

Discussion

Device type. (read-only)

See Also

Declared In

KTKDevice.h

  specification

Device specification. (read-only)

@property (nonatomic, assign, readonly) KTKDeviceSpecification specification

Discussion

Device specification. (read-only)

Declared In

KTKDevice.h

  model

Device model. (read-only)

@property (nonatomic, assign, readonly) KTKDeviceModel model

Discussion

Device model. (read-only)

See Also

Declared In

KTKDevice.h

  symbol

Device symbol. (read-only)

@property (nonatomic, assign, readonly) KTKDeviceSymbol symbol

Discussion

Device symbol. (read-only)

See Also

Declared In

KTKDevice.h

  managerID

Device manager’s ID. (read-only)

@property (nonatomic, strong, readonly) NSUUID *managerID

Discussion

Device manager’s ID. (read-only)

Declared In

KTKDevice.h

  venueID

Device venue ID. (read-only)

@property (nonatomic, strong, readonly) NSUUID *venueID

Discussion

Device venue ID. (read-only)

Declared In

KTKDevice.h

  actionsCount

The number of actions assigned to the device.

@property (nonatomic, strong, readonly) NSNumber *actionsCount

Discussion

The number of actions assigned to the device.

Declared In

KTKDevice.h

  access

Device access rights. (read-only)

@property (nonatomic, assign, readonly) KTKDeviceAccess access

Discussion

Device access rights. (read-only)

See Also

Declared In

KTKDevice.h

  latitude

The latitude of the device.

@property (nonatomic, strong, readwrite) NSNumber *latitude

Discussion

The latitude of the device.

Declared In

KTKDevice.h

  longitude

The longitude of the device.

@property (nonatomic, strong, readwrite) NSNumber *longitude

Discussion

The longitude of the device.

Declared In

KTKDevice.h

Initialization Methods

– initWithUniqueID:

Initializes and returns a device with the specified unique identifier.

- (instancetype)initWithUniqueID:(NSString *)uniqueID

Parameters

uniqueID

The unique identifier.

Return Value

An initialized device object.

Discussion

Initializes and returns a device with the specified unique identifier.

Declared In

KTKDevice.h

– initWithUniqueID:deviceType:

Initializes and returns a device with the specified unique identifier and type.

- (instancetype)initWithUniqueID:(NSString *)uniqueID deviceType:(int)type

Parameters

uniqueID

The unique identifier.

deviceType

The device type.

Return Value

An initialized device object.

Discussion

Initializes and returns a device with the specified unique identifier and type.

Declared In

KTKDevice.h

Model Methods

– getCredentialsWithCompletion:

Gets device credentails from the Cloud API.

- (void)getCredentialsWithCompletion:(void ( ^ ) ( KTKDeviceCredentials *_Nullable , NSError *_Nullable ))completion

Parameters

completion

A block object to be executed when the request finishes.

Discussion

Gets device credentails from the Cloud API.

Declared In

KTKDevice.h