Skip to content

PROTOCOL

IPSRegion

@objc public protocol IPSRegion: IPSContentItem

This class holds the representation of a region on the map. A region may have proximity triggers attached to it (see IPSProximityTrigger). The list of identifiers of the attached triggers can be obtained via IPSRegion.getTriggerIds(). The events of the attached triggers will be invoked as a response to interaction with the region to which the trigger is attached. The shape of the region can be obtained by invoking IPSRegion.getShape(). Currently there are two supported shapes - circular (IPSCircularShape) and rectangular (IPSRectangularShape).

Properties

mapId

var mapId: String

The ID of the map which contains this region. - Warning: Deprecated since 8.8.0. Use placements instead. - Deprecated: 8.8.0

placements

var placements: [IPSPlacement]
  • Returns: All the placements of this region.

clientDepartmentId

var clientDepartmentId: String?

The identifier of the client department. Optional.

  • Since: 9.9.1

Methods

getTriggerIds()

func getTriggerIds() -> [String]
  • Returns: A list of the identifiers of the triggers attached to this region.