IotHubConnectionStatusChangeCallback 接口


Callback interface for allowing users to respond to changes in the connectivity of this sdk to Iot Hub.

public interface IotHubConnectionStatusChangeCallback


execute(IotHubConnectionStatus status, IotHubConnectionStatusChangeReason statusChangeReason, Throwable throwable, Object callbackContext)

Callback that is executed when the connection status of this sdk to the iot hub changes. Includes details for more context on why that change occurred.