UARegionEvent

@interface UARegionEvent : UAEvent

A UARegion event captures information regarding a region event for UAAnalytics.

  • A proximity region with an identifier, major and minor.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        UAProximityRegion *proximityRegion;

    Swift

    var proximityRegion: UAProximityRegion? { get set }
  • A circular region with a radius, and latitude/longitude from its center.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        UACircularRegion *circularRegion;

    Swift

    var circularRegion: UACircularRegion? { get set }
  • Factory method for creating a region event.

    Declaration

    Objective-C

    + (nullable instancetype)regionEventWithRegionID:(nonnull NSString *)regionID
                                              source:(nonnull NSString *)source
                                       boundaryEvent:(UABoundaryEvent)boundaryEvent;

    Swift

    convenience init?(regionID: String, source: String, boundaryEvent: UABoundaryEvent)

    Parameters

    regionID

    The ID of the region.

    source

    The source of the event.

    boundaryEvent

    The type of boundary crossing event.

    Return Value

    Region event object or nil if error occurs.