RegionEvent
public class RegionEvent
A region event captures information regarding a region event for analytics.
-
The region’s identifier.
Declaration
Swift
public let regionID: String -
The source of the event.
Declaration
Swift
public let source: String -
The type of boundary event.
Declaration
Swift
public let boundaryEvent: AirshipBoundaryEvent -
A circular region with a radius, and latitude/longitude from its center.
Declaration
Swift
public let circularRegion: CircularRegion? -
A proximity region with an identifier, major and minor.
Declaration
Swift
public let proximityRegion: ProximityRegion? -
Default constructor.
Declaration
Swift
public init?( regionID: String, source: String, boundaryEvent: AirshipBoundaryEvent, circularRegion: CircularRegion? = nil, proximityRegion: ProximityRegion? = nil )Parameters
regionIDThe ID of the region.
sourceThe source of the event.
boundaryEventThe type of boundary crossing event.
circularRegionThe circular region info.
proximityRegionThe proximity region info.
Return Value
Region event object or
nilif error occurs. -
Factory method for creating a region event.
Declaration
Swift
public class func regionEvent( regionID: String, source: String, boundaryEvent: AirshipBoundaryEvent ) -> RegionEvent?Parameters
regionIDThe ID of the region.
sourceThe source of the event.
boundaryEventThe type of boundary crossing event.
Return Value
Region event object or
nilif error occurs. -
Factory method for creating a region event.
Declaration
Swift
public class func regionEvent( regionID: String, source: String, boundaryEvent: AirshipBoundaryEvent, circularRegion: CircularRegion?, proximityRegion: ProximityRegion? ) -> RegionEvent?Parameters
regionIDThe ID of the region.
sourceThe source of the event.
boundaryEventThe type of boundary crossing event.
circularRegionThe circular region info.
proximityRegionThe proximity region info.
Return Value
Region event object or
nilif error occurs.
View on GitHub