SKiBeaconDeviceData Class Reference

Inherits from SKSensorData : NSObject
Declared in SKiBeaconDeviceData.h

Overview

An instance of SKiBeaconDeviceData encapsulates measurements related to the iBeacon™ Proximity sensor. For more information about iBeacon™ technology, please refer to Apple’s Getting Started with iBeacon documentation.

– initWithSensorType:withTimestamp:

Returns an SKSensorData object, initialized with the given SKSensorType and SKSensorTimestamp.

- (instancetype)initWithSensorType:(SKSensorType)sensorType withTimestamp:(SKSensorTimestamp *)timestamp

Parameters

sensorType

The type of the sensor that produced this data object.

timestamp

The time were this data log was captured.

Return Value

A new SKSensorData object.

Declared In

SKSensorData.h

– initWithTimestamp:withMajor:withMinor:withAccuracy:withProximity:withRssi:

Returns an SKiBeaconDeviceData object, initialized with the time the device was found, its major and minor identifiers, as well as its accuracy, proximity and RSSI.

- (instancetype)initWithTimestamp:(NSDate *)timestamp withMajor:(uint16_t)major withMinor:(uint16_t)minor withAccuracy:(CLLocationAccuracy)accuracy withProximity:(CLProximity)proximity withRssi:(NSInteger)rssi

Parameters

timestamp

The time that this data log was captured.

major

A 16-bit unsigned integer identifier used to identify each device uniquelly. It ranges between 0 and 65535.

minor

A 16-bit unsigned integer identifier used to identify each device uniquelly. It ranges between 0 and 65535.

accuracy

A double value that represents the accuracy of the device’s proximity in meters.

proximity

The proximity of the device classified as Immediate, Near, Far or Unknown.

rssi

The strength of the signal (Received Signal Strength Indication).

Return Value

An SKiBeaconDeviceData object.

Declared In

SKiBeaconDeviceData.h

  major

A 16-bit unsigned integer identifier used to identify each device uniquelly. It ranges between 0 and 65535. This identifier can be used in combination with the minor identifier.

@property (nonatomic, readonly) uint16_t major

Declared In

SKiBeaconDeviceData.h

  minor

A 16-bit unsigned integer identifier used to identify each device uniquelly. It ranges between 0 and 65535. This identifier can be used in combination with the major identifier.

@property (nonatomic, readonly) uint16_t minor

Declared In

SKiBeaconDeviceData.h

  accuracy

A double value that represents the accuracy of the device’s proximity in meters.

@property (nonatomic, readonly) CLLocationAccuracy accuracy

Declared In

SKiBeaconDeviceData.h

  proximity

The proximity of the device classified as Immediate, Near, Far or Unknown.

@property (nonatomic, readonly) CLProximity proximity

Declared In

SKiBeaconDeviceData.h

  proximityString

A string representation of the proximity, classified as Immediate, Near, Far or Unknown.

@property (nonatomic, readonly, copy) NSString *proximityString

Declared In

SKiBeaconDeviceData.h

  rssi

The strength of the signal (Received Signal Strength Indication).

@property (nonatomic, readonly) NSInteger rssi

Declared In

SKiBeaconDeviceData.h

+ csvHeader

A string with a CSV formatted header that describes the data of the iBeacon™ Proximity sensor. This method is useful in combination with the csvString instance method of an SKSensorData object.

+ (NSString *)csvHeader

Return Value

A string with a CSV header.

Declared In

SKiBeaconDeviceData.h