Skip to content

PROTOCOL

IPSTriggersEventsDelegate

@objc public protocol IPSTriggersEventsDelegate

This class is used to provide indications about events related to proximity triggers.

Methods

onEnterRegion(_:_:)

func onEnterRegion(_ trigger: IPSProximityTrigger, _ region: IPSRegion)

Invoked to inform that the user has entered the region of the provided proximity trigger.

  • Parameters:
  • trigger: The user is inside the region of this proximity trigger.
  • region: The user entered this region.

Parameters

Name Description
trigger The user is inside the region of this proximity trigger.
region The user entered this region.

onExitRegion(_:_:)

func onExitRegion(_ trigger: IPSProximityTrigger, _ region: IPSRegion)

Invoked to inform that the user has left the region of the provided proximity trigger.

  • Parameters:
  • trigger: The user is inside the region of this proximity trigger.
  • region: The user entered this region.

Parameters

Name Description
trigger The user is inside the region of this proximity trigger.
region The user entered this region.

onDwellInRegion(_:_:_:)

func onDwellInRegion(_ trigger: IPSProximityTrigger, _ region: IPSRegion, _ dwellTimeMilli: Int)

Invoked to inform that the user has spent time in the region of the provided proximity trigger.

  • Parameters:
  • trigger: The user is inside the region of this proximity trigger.
  • region: The user entered this region.
  • dwellTimeMilli: The amount of time spent in the region of the trigger (in milliseconds).

Parameters

Name Description
trigger The user is inside the region of this proximity trigger.
region The user entered this region.
dwellTimeMilli The amount of time spent in the region of the trigger (in milliseconds).

onError(_:)

func onError(_ error: IPSError)

Invoked to inform about errors in the triggers mechanism or trigger related operations.

  • Parameters:
  • error: The error description.

Parameters

Name Description
error The error description.