다음을 통해 공유


Lamp.AvailabilityChanged 이벤트

정의

램프 디바이스의 가용성이 변경되면 발생합니다.

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

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

// Revoke with event_revoker
Lamp::AvailabilityChanged_revoker AvailabilityChanged(auto_revoke_t, TypedEventHandler<Lamp, LampAvailabilityChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<Lamp,LampAvailabilityChangedEventArgs> AvailabilityChanged;
function onAvailabilityChanged(eventArgs) { /* Your code */ }
lamp.addEventListener("availabilitychanged", onAvailabilityChanged);
lamp.removeEventListener("availabilitychanged", onAvailabilityChanged);
- or -
lamp.onavailabilitychanged = onAvailabilityChanged;
Public Custom Event AvailabilityChanged As TypedEventHandler(Of Lamp, LampAvailabilityChangedEventArgs) 

이벤트 유형

적용 대상