Class PolarTelemetryApiImpl

    • Constructor Detail

      • PolarTelemetryApiImpl

        PolarTelemetryApiImpl(<Error class: unknown class> listener)
    • Method Detail

      • getListener

         final <Error class: unknown class> getListener()
      • startTelemetry

         Flow<DeviceTelemetryEvent> startTelemetry(String identifier, PolarDeviceTelemetryType telemetryType)

        NOTE: this is an experimental API intended for Polar internal use only. Polar will not support 3rd party users with this API. Start telemetry data stream from the device. Stream emitsDeviceTelemetryEvent as soon as telemetry data arrives from device.

        Parameters:
        identifier - : Polar device ID or BT address.
        Returns:

        Flow of that emits one DeviceTelemetryEvent per received telemetry data item from device.

      • stopTelemetry

         Boolean stopTelemetry(String identifier, PolarDeviceTelemetryType telemetryType)

        NOTE: this is an experimental API intended for Polar internal use only. Polar will not support 3rd party users with this API. Stop receiving telemetry data from the device.

        Parameters:
        identifier - : Polar device ID or BT address.
        Returns:

        true if the device supports telemetry data streaming and the streaming was stopped successfully, false otherwise.

      • getAvailableTelemetryTypes

         DeviceTelemetrySupport getAvailableTelemetryTypes(String identifier)

        NOTE: this is an experimental API intended for Polar internal use only. Polar will not support 3rd party users with this API. Stop receiving telemetry data from the device.

        Returns all telemetry types supported by this SDK for the given device.

        Parameters:
        identifier - : Polar device ID or BT address.
        Returns:

        DeviceTelemetrySupport containing a list of PolarDeviceTelemetryType that are available for the given device. DeviceTelemetrySupport is empty container if the device does not support any telemetry types or if there was an error during reading telemetry configuration.