SPGeofenceBeacon

@interface SPGeofenceBeacon : SPGeofence

Extends SPGeofenceInfo. This type of geofence is added for a bluetooth beacon and is not necessarily tied to a static location. Bluetooth beacons can move if they’re attached to cars, trains, shopping carts etc.

  • Recommended constructor for SPGeofenceBeacon objects.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier
                                        rssi1m:(int)rssi1m
                                        radius:(CGFloat)radius;

    Swift

    init(identifier: String, rssi1m: Int32, radius: CGFloat)

    Parameters

    identifier

    unique identifier for geofence

    rssi1m

    received signal strength indication at 1 meter from the beacon

    radius

    in meters

    Return Value

    new instance of SPGeofenceBeacon

  • Declaration

    Objective-C

    - (CGFloat)radius;

    Swift

    func radius() -> CGFloat

    Return Value

    radius in meters.

  • Declaration

    Objective-C

    - (int)rssi1m;

    Swift

    func rssi1m() -> Int32

    Return Value

    received signal strength indication at 1 meter from the beacon