Package com.polar.sdk.api
Class PolarBleDisconnectInfo
-
- All Implemented Interfaces:
public final class PolarBleDisconnectInfoDetailed disconnect information delivered through the typed callback.
-
-
Field Summary
Fields Modifier and Type Field Description private final PolarBleDisconnectReasonreasonprivate final PolarBleRecoveryActionrecoveryActionprivate final IntegergattStatusprivate final PolarBleDeviceCommanddeviceCommand
-
Constructor Summary
Constructors Constructor Description PolarBleDisconnectInfo(PolarBleDisconnectReason reason, PolarBleRecoveryAction recoveryAction, Integer gattStatus, PolarBleDeviceCommand deviceCommand)
-
Method Summary
Modifier and Type Method Description final PolarBleDisconnectReasongetReason()SDK-defined disconnect classification. final PolarBleRecoveryActiongetRecoveryAction()recommended next recovery category. final IntegergetGattStatus()Android BluetoothGatt status when one was reported. final PolarBleDeviceCommandgetDeviceCommand()the command that caused the disconnect, set only when reason is PolarBleDisconnectReason.DEVICE_COMMAND. -
-
Constructor Detail
-
PolarBleDisconnectInfo
PolarBleDisconnectInfo(PolarBleDisconnectReason reason, PolarBleRecoveryAction recoveryAction, Integer gattStatus, PolarBleDeviceCommand deviceCommand)
-
-
Method Detail
-
getReason
final PolarBleDisconnectReason getReason()
SDK-defined disconnect classification.
-
getRecoveryAction
final PolarBleRecoveryAction getRecoveryAction()
recommended next recovery category.
-
getGattStatus
final Integer getGattStatus()
Android BluetoothGatt status when one was reported.
-
getDeviceCommand
final PolarBleDeviceCommand getDeviceCommand()
the command that caused the disconnect, set only when reason is PolarBleDisconnectReason.DEVICE_COMMAND.
-
-
-
-