Package com.polar.sdk.api
Interface PolarWatchFaceApi
-
- All Implemented Interfaces:
public interface PolarWatchFaceApiPolar watch face configuration API.
Allows reading and writing complications configuration on PolarOS-based Polar devices. Complications are configurable UI elements on a watch face (e.g. SpO2, heart rate, steps).
Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_WATCH_FACES_CONFIGURATION.
-
-
Method Summary
Modifier and Type Method Description abstract PolarWatchFaceConfiggetWatchFaceConfig(String identifier)Read the current watch face configuration from the device KVS. abstract UnitsetWatchFaceConfig(String identifier, PolarWatchFaceConfig config)Set the watch face complications on the device. -
-
Method Detail
-
getWatchFaceConfig
abstract PolarWatchFaceConfig getWatchFaceConfig(String identifier)
Read the current watch face configuration from the device KVS.
- Parameters:
identifier- Polar device ID or BT address.- Returns:
PolarWatchFaceConfig reflecting what is currently on the device, or a config with an empty list if no complications are configured.
-
setWatchFaceConfig
abstract Unit setWatchFaceConfig(String identifier, PolarWatchFaceConfig config)
Set the watch face complications on the device.
Writes the provided complication list to the device KVS watch face configuration
- Parameters:
identifier- Polar device ID or BT address.config- Watch face configuration containing the ordered list of complications to enable.
-
-
-
-