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.

适用于