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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應