BLUSpan Class Reference

Inherits from NSObject
Conforms to NSCopying
NSSecureCoding
Declared in BLUSpan.h

Overview

BLUSpan objects are used to define a certain range of numeric values.

Each BLUSpan object can keep a minimum value, a maximum value or both. If used for beacon filtering, a BLUSpan can be used to specify ranges of valid values. You can for example define a range of RSSI values. In that case, only beacons with an RSSI value within that range are considered valid. If only a minimum value is defined, all beacons with an RSSI value above it are considered valid. If only a maximum value is defined, all beacons with an RSSI value below it are considered valid.

Properties

  minimumValue

The span’s minimum valid value or nil.

@property (nonatomic, readonly) NSNumber *minimumValue

Discussion

The span’s minimum valid value or nil.

Declared In

BLUSpan.h

  maximumValue

The span’s maximum valid value or nil.

@property (nonatomic, readonly) NSNumber *maximumValue

Discussion

The span’s maximum valid value or nil.

Declared In

BLUSpan.h

Initialization

– initWithMinimumValue:maximumValue:

Initializes a BLUSpan instance with a minimum and a maximum value.

- (instancetype)initWithMinimumValue:(NSNumber *)minimumValue maximumValue:(NSNumber *)maximumValue

Parameters

minimumValue

The span’s minimum valid value or nil.

maximumValue

The span’s maximum valid value or nil.

Return Value

Returns a newly initialized BLUSpan instance with a minimum and a maximum value.

Discussion

Initializes a BLUSpan instance with a minimum and a maximum value.

Declared In

BLUSpan.h