IAPolygonGeofence

Objective-C


@interface IAPolygonGeofence : IAGeofence

Swift

class IAPolygonGeofence : IAGeofence

IAPolygonGeofence object represents a polygonal region on Earth.

  • Creates a new polygonal region from unique edges.

    The edges must be supplied in clockwise order for the polygon to be valid.

    Declaration

    Objective-C

    + (nonnull IAPolygonGeofence *)
        polygonGeofenceWithIdentifier:(nonnull NSString *)identifier
                             andFloor:(nullable IAFloor *)floor
                                edges:(nonnull NSArray<NSNumber *> *)edges;

    Swift

    /*not inherited*/ init(identifier: String, andFloor floor: IAFloor?, edges: [NSNumber])

    Parameters

    identifier

    Identifier for the geofence.

    floor

    IAFloor object with level information. Nil IAFloor means that the floor is unknown.

    edges

    Coordinates specifying the polygon.