Skip to content

PROTOCOL

IPSProximityTrigger

@objc public protocol IPSProximityTrigger

This class holds the representation of a proximity trigger. To be activated a trigger must be attached to a region (IPSRegion). The trigger will be activated according to the events of the trigger (see IPSProximityTrigger.getTriggerEvents() for all the events on this trigger). The events are triggered as a result of the user's interaction with the region to which the trigger is attached. For a list of supported events see IPSTriggerEvent. A trigger may be assigned to more than one region on the same map or on different maps. Every region holds a list of identifiers of the triggers attached to it. The list can be obtained from the regions by invoking IPSRegion.getTriggerIds().

Properties

id

var id: String

The unique identifier of this proximity trigger. Used to determine weather two proximity triggers are the same one.

name

var name: String

The name of this trigger.

metadata

var metadata: String?

This field is used to store data specific to this trigger across all regions which contain it. For application use only, is not accessed or manipulated by the SDK.

Methods

getTriggerEvents()

func getTriggerEvents() -> [IPSTriggerEvent]
  • Returns: A list of the events on this trigger. See IPSTriggerEvent.type for the event type.