PolarDeviceToHostNotificationsApi

public protocol PolarDeviceToHostNotificationsApi

Device to host notifications. Device notifications are used to inform client apps of important device state changes, such as negotiating data syncing.

  • Streams for received device to host notifications endlessly. Only dispose, take(1) etc… stops stream.

    Requires

    Requires SDK feature(s): PolarBleSdkFeature.feature_polar_device_control

    Declaration

    Swift

    func observeDeviceToHostNotifications(identifier: String) -> Observable<PolarD2HNotificationData>

    Parameters

    identifier

    Polar device ID or BT address

    Return Value

    Observable stream of PolarD2HNotificationData Produces onNext after successfully received notification. onCompleted not produced unless stream is further configured. onError, see BlePsFtpException, BleGattException