PolarBleApiObserver
public protocol PolarBleApiObserver : AnyObject
Polar Ble API connection observer.
-
Callback when connection attempt is started to device
Requires
Requires SDK feature(s): None (core API callback).
Declaration
Swift
func deviceConnecting(_ identifier: PolarDeviceInfo)Parameters
identifierPolar device info
-
Device connection has been established.
Requires
Requires SDK feature(s): None (core API callback).
Declaration
Swift
func deviceConnected(_ identifier: PolarDeviceInfo)Parameters
identifierPolar device info
-
Connection lost to device. If PolarBleApi#disconnectFromPolarDevice is not called, a new connection attempt is dispatched automatically.
Requires
Requires SDK feature(s): None (core API callback).
Declaration
Swift
func deviceDisconnected(_ identifier: PolarDeviceInfo, pairingError: Bool)Parameters
identifierPolar device info
pairingErrorIf true, it indicates that the disconnection was caused by a pairing error. In this case, try removing the pairing from the system settings.