PROTOCOL
IPSRegionsObserver
@objc public protocol IPSRegionsObserver
This class is used to provide information about changes in regions per building.
- Since: 2.10.0
Methods
onRegionsAdded(_:buildingId:)
func onRegionsAdded(_ regions: [IPSRegion], buildingId: String)
Invoked to indicate that new regions were added to the building.
- Parameters:
- regions: The new regions.
- buildingId: The id of building where the regions located
onRegionsRemoved(_:buildingId:)
func onRegionsRemoved(_ regions: [IPSRegion], buildingId: String)
Invoked to indicate that one of the existing regions on the building was removed from it.
Will only be invoked after IPSRegionsObserver.onRegionsAdded(_:buildingId:) has been
invoked with a region with the same IPSRegion.id.
- Parameters:
- regions: The removed regions.
- buildingId: The id of building where the regions located
onRegionsChanged(_:buildingId:)
func onRegionsChanged(_ regions: [IPSRegion], buildingId: String)
Invoked to indicate a change in one or more of the properties of these regions.
- Parameters:
- regions: The updated regions.
- buildingId: The id of building where the regions located