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 Flow<PolarD2HNotificationData>observeDeviceToHostNotifications(String identifier)Streams received device-to-host notifications endlessly. -
-
Method Detail
-
observeDeviceToHostNotifications
abstract Flow<PolarD2HNotificationData> observeDeviceToHostNotifications(String identifier)
Streams received device-to-host notifications endlessly. Only cancellation or terminal operators stop the stream.
- Parameters:
identifier- Polar device ID or BT address- Returns:
Flow stream of PolarD2HNotificationData Emits values after successfully received notifications. onError, see BlePsFtpException, BleGattException
-
-
-
-