SPGeofenceInfo

@interface SPGeofenceInfo : NSObject

Base class for all geofence types.

  • Recommended constructor for SPGeofenceInfo objects

    Declaration

    Objective-C

    - (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier
                                          info:(nullable NSString *)info;

    Swift

    init(identifier: String, info: String?)

    Parameters

    identifier

    unique identifier for geofence

    info

    extra information about the geofence

    Return Value

    new instance of SPGeofenceInfo

  • Change geofence identifier. Should be unique.

    Declaration

    Objective-C

    - (void)setIdentifier:(nonnull NSString *)identifier;

    Swift

    func setIdentifier(_ identifier: String)

    Parameters

    identifier

    unique identifier for geofence

  • Change extra information stored with geofence.

    Declaration

    Objective-C

    - (void)setInfo:(nonnull NSString *)info;

    Swift

    func setInfo(_ info: String)

    Parameters

    info

    extra information you may want to store with the geofence

  • Declaration

    Objective-C

    - (nullable NSString *)info;

    Swift

    func info() -> String?

    Return Value

    extra information stored in the geofence

  • Declaration

    Objective-C

    - (nonnull NSString *)identifier;

    Swift

    func identifier() -> String

    Return Value

    unique identifier for geofence

  • Declaration

    Objective-C

    - (SPGeofenceType)type;

    Swift

    func type() -> SPGeofenceType

    Return Value

    type of geofence