Package com.polar.sdk.api
Interface PolarDeviceToHostNotificationsApi
-
- All Implemented Interfaces:
public interface PolarDeviceToHostNotificationsApiAPI for receiving device-to-host notifications from Polar devices.
Device to host notifications are used to inform client apps of important device state changes, such as negotiating data syncing, battery status updates, and training session changes.
-
-
Method Summary
Modifier and Type Method Description abstract Flowable<PolarD2HNotificationData>observeDeviceToHostNotifications(String identifier)Streams for received device to host notifications endlessly. -
-
Method Detail
-
observeDeviceToHostNotifications
abstract Flowable<PolarD2HNotificationData> observeDeviceToHostNotifications(String identifier)
Streams for received device to host notifications endlessly. Only dispose, take(1) etc... stops stream.
- Parameters:
identifier- Polar device ID or BT address- Returns:
Flowable stream of PolarD2HNotificationData Produces onNext after successfully received notification. onCompleted not produced unless stream is further configured. onError, see BlePsFtpException, BleGattException
-
-
-
-