Skip to content

CLASS

IPSLocalProximityEvent

public final class IPSLocalProximityEvent: NSObject

By creating these objects and providing them to the relevant methods of IPSProximity you can setup the proximity-related events in the runtime.

  • Since: 5.1.0

Properties

groupId

public let groupId: String?

Group id of this event, can be used to group related events and remove them at once.

  • Since: 5.1.0

buildingId

public let buildingId: String

ID of the building in which this event should be monitored. Positioning in a different building will not affect this event.

  • Since: 5.1.0

floorOrder

public let floorOrder: Int

Floor order in the building on which this event should be monitored. Positioning on a different floor will not affect this event.

  • Since: 5.1.0

trigger

public let trigger: IPSLocalProximityEventTrigger

Type of the trigger that this event should use.

  • Since: 5.1.0

repetitionStrategy

public let repetitionStrategy: IPSLocalProximityEventRepetitionStrategy

Repetition strategy that this event should use.

  • Since: 5.1.0

locationDefinition

public let locationDefinition: IPSLocalProximityEventLocationDefinition

Location definition that this event should use.

  • Since: 5.1.0

action

public let action: () -> Void

Action that will be triggered when this event conditions are met.

  • Since: 5.1.0

Methods

init(groupId:buildingId:floorOrder:trigger:repetitionStrategy:locationDefinition:action:)

public init(
    groupId: String?,
    buildingId: String,
    floorOrder: Int,
    trigger: IPSLocalProximityEventTrigger,
    repetitionStrategy: IPSLocalProximityEventRepetitionStrategy,
    locationDefinition: IPSLocalProximityEventLocationDefinition,
    action: @escaping () -> Void
)

Creates a local proximity event instance with the provided parameters.

  • Parameters:
  • groupId: Optional, group id of this event, can be used to group related events and remove them at on;
  • buildingId: ID of the building in which this event should be monitored. Positioning in a different building will not affect this event;
  • floorOrder: Floor order in the building on which this event should be monitored. Positioning on a different floor will not affect this event;
  • trigger: Type of the trigger that this event should use;
  • repetitionStrategy: Repetition strategy that this event should use;
  • locationDefinition: Location definition that this event should use;
  • action: Action that will be triggered when this event conditions are met.

  • Since: 5.1.0

Parameters

Name Description
groupId Optional, group id of this event, can be used to group related events and remove them at on;
buildingId ID of the building in which this event should be monitored. Positioning in a different building will not affect this event;
floorOrder Floor order in the building on which this event should be monitored. Positioning on a different floor will not affect this event;
trigger Type of the trigger that this event should use;
repetitionStrategy Repetition strategy that this event should use;
locationDefinition Location definition that this event should use;
action Action that will be triggered when this event conditions are met.