MobilityKitDelegate

@objc
public protocol MobilityKitDelegate

Delegate of MobilityKit

  • Is called every time, when a new devices was detected (HFP or CarPlay)

    Declaration

    Swift

    @objc
    optional func mobilityKit(didDetect newDevice: MBDevice)
  • Is called every time, when an arrival event was detected

    Declaration

    Swift

    @objc
    optional func mobilityKit(didArrive location: MBLocation)
  • Is called every time, when a departure event was detected

    Declaration

    Swift

    @objc
    optional func mobilityKit(didDepart location: MBLocation)
  • Is called every time, when a change of the transport type was detected (transport type or confidence level)

    Declaration

    Swift

    @objc
    optional func mobilityKit(didChange transport: MBTransport)
  • Is called every time, when the bluetooth availablity changes (e.g. switching off Bluetooth)

    Declaration

    Swift

    @objc
    optional func mobilityKit(bluetooth isAvailable: Bool)