SKProximityData

Objective-C

@interface SKProximityData : SKSensorData

Swift

class SKProximityData : SKSensorData

An instance of SKProximityData encapsulates an array of Device Data (e.g. SKiBeaconDeviceData).

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSensorType:(SKSensorType)sensorType
                                     timestamp:
                                         (nonnull SKSensorTimestamp *)timestamp;
  • Returns an SKProximityData object, initialized with an array of Device Data objects as well as the time that the scan was completed.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSensorType:(SKSensorType)sensorType
                                     timestamp:(nonnull NSDate *)timestamp
                                       devices:(nonnull NSArray *)devices;

    Swift

    init(sensorType: SKSensorType, timestamp: Date, devices: [Any])

    Parameters

    sensorType

    The type of the sensor that produced this data object.

    timestamp

    The time that this data log was captured.

    devices

    An array that holds the Device Data objects.

    Return Value

    An SKProximityData object.

  • An array that holds the Device Data objects.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSArray *_Nonnull devices;

    Swift

    var devices: [Any] { get }
  • As the CSV header depends on the encapsulated Device Data objects, this method always returns nil.

    Declaration

    Objective-C

    + (nullable NSString *)csvHeader;

    Swift

    class func csvHeader() -> String?

    Return Value

    Always nil.