CLASS
IPSLocalProximityEventRepetitionStrategy
public final class IPSLocalProximityEventRepetitionStrategy
This object defines how many times a proximity event should repeat. Use the static methods to access the available options.
- Since: 5.1.0
Methods
once()
public static func once() -> IPSLocalProximityEventRepetitionStrategy
The event should be triggered once and removed.
- Since: 5.1.0
infinite(cooldownSeconds:)
public static func infinite(cooldownSeconds: Double) -> IPSLocalProximityEventRepetitionStrategy
The event should trigger every time the conditions are met. The cooldown will make sure the event will not be spammed.
- Parameters:
-
cooldownSeconds: How long should it take before the event can be triggered the next time.
-
Since: 5.1.0
Parameters
| Name | Description |
|---|---|
| cooldownSeconds | How long should it take before the event can be triggered the next time. |