onReaderReconnectStarted

open fun onReaderReconnectStarted(reader: Reader, cancelReconnect: Cancelable, reason: DisconnectReason)

Invoked when the given reader has unexpectedly disconnected and an auto reconnection process has been initiated.

In your implementation of this method, you may want to notify your user that reconnecting is in progress. You can call cancelReconnect.cancel to interrupt the reconnection process. You will need to use onReaderReconnectSucceeded and onReaderReconnectFailed to listen the results of reconnection.


open fun onReaderReconnectStarted(reader: Reader, cancelReconnect: Cancelable)

Deprecated

Override onReaderReconnectStarted(reader: Reader, cancelReconnect: Cancelable, reason: DisconnectReason) instead.

Invoked when the given reader has unexpectedly disconnected and an auto reconnection process has been initiated.

In your implementation of this method, you may want to notify your user that reconnecting is in progress. You can call cancelReconnect.cancel to interrupt the reconnection process. You will need to use onReaderReconnectSucceeded and onReaderReconnectFailed to listen the results of reconnection.