Skip to content

CLASS

IPSLocalProximityEventLocationDefinition

public final class IPSLocalProximityEventLocationDefinition

This object defines the relevant location for the event. Use the static methods to access the available options.

  • Since: 5.1.0

Methods

fromIPSRegion(_:)

public static func fromIPSRegion(_ ipsRegion: IPSRegion) -> IPSLocalProximityEventLocationDefinition?

Creates IPSLocalProximityEventLocationDefinition that represents IPSRegion. Returns nil for unknown shapes.

  • Parameters:
  • ipsRegion:IPSRegion to be represented. Supports circular, rectangular, and polygonal region shapes.

  • Returns: An optional IPSLocalProximityEventLocationDefinition if the region is successfully represented, or nil for unsupported region shapes.

  • Since: 8.3.0

Parameters

Name Description
ipsRegion IPSRegion to be represented. Supports circular, rectangular, and polygonal region shapes.

fromIPSAnalyticsRegion(_:)

public static func fromIPSAnalyticsRegion(_ ipsAnalyticsRegion: IPSAnalyticsRegion) -> IPSLocalProximityEventLocationDefinition?

Creates IPSLocalProximityEventLocationDefinition that represents IPSAnalyticsRegion. Returns nil for unknown shapes.

  • Parameters:
  • ipsAnalyticsRegion:IPSAnalyticsRegion to be represented. Supports circular, rectangular, and polygonal region shapes.

  • Returns: An optional IPSLocalProximityEventLocationDefinition if the region is successfully represented, or nil for unsupported region shapes.

  • Since: 9.9.0

Parameters

Name Description
ipsAnalyticsRegion IPSAnalyticsRegion to be represented. Supports circular, rectangular, and polygonal region shapes.

areaCircle(center:radiusMeters:)

public static func areaCircle(center: IPSCoordinate, radiusMeters: Double) -> IPSLocalProximityEventLocationDefinition

The proximity location is defined by a circular area.

  • Parameters:
  • center: Coordinates of the center of the area;
  • radiusMeters: Radius of the area, in meters.

  • Since: 5.1.0

Parameters

Name Description
center Coordinates of the center of the area;
radiusMeters Radius of the area, in meters.

areaRectangle(topRight:bottomLeft:)

public static func areaRectangle(
    topRight: IPSCoordinate,
    bottomLeft: IPSCoordinate
) -> IPSLocalProximityEventLocationDefinition

The proximity location is defined by a rectangular area.

  • Parameters:
  • topRight: Coordinates of the top-right corner of the area;
  • bottomLeft: Coordinates of the bottom-left corner of the area.

  • Since: 5.1.0

Parameters

Name Description
topRight Coordinates of the top-right corner of the area;
bottomLeft Coordinates of the bottom-left corner of the area.

areaPolygon(vertices:)

public static func areaPolygon(vertices: [IPSCoordinate]) -> IPSLocalProximityEventLocationDefinition

The proximity location is defined by a polygonal area.

  • Parameters:
  • vertices: Vertices of the polygon (minimum 3).

  • Since: 5.1.0

Parameters

Name Description
vertices Vertices of the polygon (minimum 3).

closeWalkingDistance(from:)

public static func closeWalkingDistance(from location: IPSCoordinate) -> IPSLocalProximityEventLocationDefinition

The proximity is defined by how much a user should walk to reach the location. Close distance is around 3 meters, can be configured by Oriient if necessary.

  • Parameters:
  • location: Coordinates of the location to which the distance is measured.

  • Since: 5.1.0

Parameters

Name Description
location Coordinates of the location to which the distance is measured.

mediumWalkingDistance(from:)

public static func mediumWalkingDistance(from location: IPSCoordinate) -> IPSLocalProximityEventLocationDefinition

The proximity is defined by how much a user should walk to reach the location. Medium distance is around 7 meters, can be configured by Oriient if necessary.

  • Parameters:
  • location: Coordinates of the location to which the distance is measured.

  • Since: 5.1.0

Parameters

Name Description
location Coordinates of the location to which the distance is measured.

longWalkingDistance(from:)

public static func longWalkingDistance(from location: IPSCoordinate) -> IPSLocalProximityEventLocationDefinition

The proximity is defined by how much a user should walk to reach the location. Long distance is around 11 meters, can be configured by Oriient if necessary.

  • Parameters:
  • location: Coordinates of the location to which the distance is measured.

  • Since: 5.1.0

Parameters

Name Description
location Coordinates of the location to which the distance is measured.