PROTOCOL
IPSRegionsDelegate
@objc public protocol IPSRegionsDelegate
This class is used to inform the user of any changes in the proximity regions on the current map.
When this delegate is added or an active map is set (the later of the two), IPSRegionsDelegate.onRegionAdded(_:)
will be invoked for all the regions on the map.
The regions contain a list of the IDs of all the triggers attached to them at IPSRegion.getTriggerIds().
Note that if map triggers are also needed and an active map is already set, IPSTriggersDelegate should be set before this delegate
to ensure that the regions can be populated with their attached triggers when IPSRegionsDelegate.onRegionAdded(_:) events occur.
Methods
onRegionAdded(_:)
func onRegionAdded(_ region: IPSRegion)
Invoked to indicate that a new region was added to the map.
- Parameters:
- region: The new region.
Parameters
| Name | Description |
|---|---|
| region | The new region. |
onRegionRemoved(_:)
func onRegionRemoved(_ region: IPSRegion)
Invoked to indicate that one of the existing regions on the map was removed from it.
Will only be invoked after IPSRegionsDelegate.onRegionAdded(_:) has been
invoked with a region with the same IPSRegion.id.
- Parameters:
- region: The removed region.
Parameters
| Name | Description |
|---|---|
| region | The removed region. |
onRegionChanged(_:)
func onRegionChanged(_ region: IPSRegion)
Invoked to indicate a change in one or more of the properties of this region.
Will only be invoked after IPSRegionsDelegate.onRegionAdded(_:) has been
invoked with a region with the same IPSRegion.id.
- Parameters:
- region: The updated region.
Parameters
| Name | Description |
|---|---|
| region | The updated region. |