Protocols
The following protocols are available globally.
-
Protocol defining methods to get steps for a given period.
See moreDeclaration
Swift
public protocol PolarActivityApi
-
API.
See moreDeclaration
Swift
public protocol PolarBleApi : PolarActivityApi, PolarFirmwareUpdateApi, PolarH10OfflineExerciseApi, PolarOfflineRecordingApi, PolarOnlineStreamingApi, PolarSdkModeApi, PolarSleepApi
-
Polar Ble API connection observer.
See moreDeclaration
Swift
public protocol PolarBleApiObserver : AnyObject
-
Bluetooth state observer.
See moreDeclaration
Swift
public protocol PolarBleApiPowerStateObserver : AnyObject
-
Device info observer.
See moreDeclaration
Swift
public protocol PolarBleApiDeviceInfoObserver : AnyObject
-
Heart rate observer
See moreDeclaration
Swift
public protocol PolarBleApiDeviceHrObserver : AnyObject
-
Data client observer
See moreDeclaration
Swift
public protocol PolarBleApiDeviceFeaturesObserver : AnyObject
-
logger observer
See moreDeclaration
Swift
public protocol PolarBleApiLogger : AnyObject
-
Declaration
Swift
public protocol PolarFirmwareUpdateApi
-
H10 Exercise recording API.
H10 Exercise recording makes it possible to record Hr or Rr data to H10 device memory. With H10 Exercise recording the H10 and phone don’t need to be connected all the time, as H10 exercise recording continues in Polar device even the BLE disconnects.
Requires features
PolarBleSdkFeature.feature_polar_h10_exercise_recording
Note, API is working only with Polar H10 device
See moreDeclaration
Swift
public protocol PolarH10OfflineExerciseApi
-
Offline recording API.
Offline recording makes it possible to record
PolarBleApi.PolarDeviceDataType
data to device memory. With Offline recording the Polar device and phone don’t need to be connected all the time, as offline recording continues in Polar device even the BLE disconnects.Offline records saved into the device can be encrypted. The
PolarRecordingSecret
is provided forstartOfflineRecording
andsetOfflineRecordingTrigger
when encryption is wanted. ThePolarRecordingSecret
with same key must be provided ingetOfflineRecord
to correctly decrypt the data in the device.Requires feature
PolarBleSdkFeature.feature_polar_offline_recording
Note, offline recording is supported in Polar Verity Sense device (starting from firmware version 2.1.0)
See moreDeclaration
Swift
public protocol PolarOfflineRecordingApi
-
Online steaming API.
Online streaming makes it possible to stream live online data from Polar device.
Requires features
See morePolarBleSdkFeature.feature_polar_online_streaming
Declaration
Swift
public protocol PolarOnlineStreamingApi
-
Polar SDK mode API
In SDK mode the wider range of capabilities is available for the online streaming or for the offline recording than in normal operation mode. The available capabilities can be asked from device using
PolarOnlineStreamingApi.requestFullStreamSettings
orPolarOfflineRecordingApi.requestFullOfflineRecordingSettings
Requires features
PolarBleSdkFeature.feature_polar_sdk_mode
Note, SDK mode supported by VeritySense starting from firmware 1.1.5
See moreDeclaration
Swift
public protocol PolarSdkModeApi
-
Protocol defining methods to get Polar Sleep Data
See moreDeclaration
Swift
public protocol PolarSleepApi
-
Methods related to working with services conforming to SAGRFC95 Service discovery over PFTP
See moreDeclaration
Swift
public protocol PolarRestServiceApi