IAGeofence

Objective-C


@interface IAGeofence : IARegion

Swift

class IAGeofence : IARegion

An IAGeofence object provides a way to represent custom regions.

  • The floor the geofence is located on.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) IAFloor *floor;

    Swift

    var floor: IAFloor? { get set }
  • The JSON payload for this geofence.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSDictionary *payload;

    Swift

    var payload: [AnyHashable : Any]? { get set }
  • Center coordinate of the geofence.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;

    Swift

    var coordinate: CLLocationCoordinate2D { get }
  • Is this geofence cloud defined (static) or runtime defined (dynamic)

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isCloudGeofence;

    Swift

    var isCloudGeofence: Bool { get }
  • Unique [lat, lon] points of the geofence, if any.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSArray<NSNumber *> *_Nonnull points;

    Swift

    var points: [NSNumber] { get }
  • Does the geofence contain the coordinate?

    Declaration

    Objective-C

    - (BOOL)containsCoordinate:(CLLocationCoordinate2D)coordinate;

    Swift

    func containsCoordinate(_ coordinate: CLLocationCoordinate2D) -> Bool