com.microsoft.azure.sdk.iot.device.twin.DesiredPropertiesCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot-device-client Show documentation
Show all versions of iot-device-client Show documentation
The Microsoft Azure IoT Device SDK for Java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.sdk.iot.device.twin;
/**
* The callback to be executed each time the client receives a desired property update from the service.
*/
public interface DesiredPropertiesCallback
{
/**
* The callback to be executed each time the client receives a desired property update from the service.
*
* @param twin A {@link Twin} instance containing the updated desired properties.
* @param context The context that was provided for this callback in
* {@link com.microsoft.azure.sdk.iot.device.InternalClient#subscribeToDesiredPropertiesAsync(DesiredPropertiesCallback, Object, SubscriptionAcknowledgedCallback, Object)}
*/
void onDesiredPropertiesUpdated(Twin twin, Object context);
}