PeripheralEventTrigger

@objc
public enum PeripheralEventTrigger : Int

Indicates the reason why onPeripheralsCollected is invoked.

  • Triggered by the SDK initialization. onPeripheralsCollected is called immediately after the scan completes.

    Declaration

    Swift

    case initialize = 0
  • Triggered when a drive session (trip) starts. The SDK collects peripherals at trip start and invokes onPeripheralsCollected.

    Declaration

    Swift

    case tripStart = 1
  • Triggered periodically during an ongoing trip. The SDK performs interval scans and calls onPeripheralsCollected each time.

    Declaration

    Swift

    case tripInterval = 2
  • Triggered when a peripheral connection state changes (e.g., connected, disconnected, or updated). The SDK collects peripheral info and invokes onPeripheralsCollected.

    Declaration

    Swift

    case connectionUpdate = 3
  • Triggered when a drive session (trip) ends. The SDK performs a final peripheral scan and calls onPeripheralsCollected.

    Declaration

    Swift

    case tripEnd = 4