Skip to content

PROTOCOL

IPSTriggersObserver

@objc public protocol IPSTriggersObserver

This class is used to inform the user of any changes in the proximity triggers on the current map. When this observer is added or an active map is set (the later of the two), IPSTriggersObserver.onTriggerAdded(_:) will be invoked for all the triggers currently on the map. The regions contain a list of the IDs of all the triggers attached to them at IPSRegion.getTriggerIds().

Methods

onTriggerAdded(_:)

func onTriggerAdded(_ trigger: IPSProximityTrigger)

Invoked to indicate that a new proximity trigger was added to the map.

  • Parameters:
  • trigger: The new trigger.

onTriggerRemoved(_:)

func onTriggerRemoved(_ trigger: IPSProximityTrigger)

Invoked to indicate that one of the existing triggers on the map was removed from it. Will only be invoked after IPSTriggersDelegate.onTriggerAdded(_:) has been invoked with a trigger with the same IPSProximityTrigger.id.

  • Parameters:
  • trigger: The removed trigger.

onTriggerChanged(_:)

func onTriggerChanged(_ trigger: IPSProximityTrigger)

Invoked to indicate a change in one or more of the properties of this trigger. Will only be invoked after IPSTriggersDelegate.onTriggerAdded(_:) has been invoked with a trigger with the same IPSProximityTrigger.id.

  • Parameters:
  • trigger: The updated trigger.