Recoverable

class Recoverable<T : SDKDeviceConnectionError>(isAborted: () -> Boolean, error: T, recoverFn: () -> Unit) : SDKDeviceConnectionState.Error<T>

This state indicates that an error described by SDKDeviceConnectionError has occurred and its recoverable

Constructors

Link copied to clipboard
constructor(isAborted: () -> Boolean, error: T, recoverFn: () -> Unit)

Properties

Link copied to clipboard
val error: T

Functions

Link copied to clipboard
fun recover()

Recovering from a RecoverableError will return the SDKDeviceConnection to the last "Stable" state to continue