Lamp.AvailabilityChanged Lamp.AvailabilityChanged Lamp.AvailabilityChanged Lamp.AvailabilityChanged Lamp.AvailabilityChanged Event

Definition

Occurs when the availability of the lamp device changes.

public : event TypedEventHandler<Lamp, LampAvailabilityChangedEventArgs> AvailabilityChanged
// Register
event_token AvailabilityChanged(TypedEventHandler<Lamp, LampAvailabilityChangedEventArgs> const& handler) const;

// Revoke with event_token
void AvailabilityChanged(event_token const& cookie) const;

// Revoke with event_revoker
AvailabilityChanged_revoker AvailabilityChanged(auto_revoke_t, TypedEventHandler<Lamp, LampAvailabilityChangedEventArgs> const& handler) const;
public event TypedEventHandler<Lamp, LampAvailabilityChangedEventArgs> AvailabilityChanged
Public Event AvailabilityChanged As TypedEventHandler (Of Lamp, LampAvailabilityChangedEventArgs)
function onAvailabilityChanged(eventArgs){/* Your code */}


lamp.addEventListener("availabilitychanged", onAvailabilityChanged);
lamp.removeEventListener("availabilitychanged", onAvailabilityChanged);