你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IotHubConnectionStatusChangeCallback Interface

public interface IotHubConnectionStatusChangeCallback

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

Method Summary

Modifier and Type Method and Description
abstract void 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.

Method Details

execute

public abstract void 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.

Parameters:

status - The new connection status of the sdk
statusChangeReason - the reason why the sdk changed to this status
throwable - The throwable that caused the change in status. May be null if there wasn't an associated throwable
callbackContext - the context for this callback that was registered by the user

Applies to