Skip to content

PROTOCOL

IPSTriggersDelegate

@objc public protocol IPSTriggersDelegate

This class is used to inform the user of any changes in the proximity triggers on the current map. When this delegate is added or an active map is set (the later of the two), IPSTriggersDelegate.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.

Parameters

Name Description
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.

Parameters

Name Description
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.

Parameters

Name Description
trigger The updated trigger.