DeviceWatcher.Updated 이벤트

정의

열거된 디바이스 컬렉션에서 디바이스가 업데이트될 때 발생하는 이벤트입니다.

// Register
event_token Updated(TypedEventHandler<DeviceWatcher, DeviceInformationUpdate const&> const& handler) const;

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

// Revoke with event_revoker
DeviceWatcher::Updated_revoker Updated(auto_revoke_t, TypedEventHandler<DeviceWatcher, DeviceInformationUpdate const&> const& handler) const;
public event TypedEventHandler<DeviceWatcher,DeviceInformationUpdate> Updated;
function onUpdated(eventArgs) { /* Your code */ }
deviceWatcher.addEventListener("updated", onUpdated);
deviceWatcher.removeEventListener("updated", onUpdated);
- or -
deviceWatcher.onupdated = onUpdated;
Public Custom Event Updated As TypedEventHandler(Of DeviceWatcher, DeviceInformationUpdate) 

이벤트 유형

설명

참고

앱은 추가, 제거 및 업데이트 모든 이벤트를 구독하여 디바이스 추가, 제거 또는 업데이트가 있을 때 알림을 받아야 합니다. 앱이 추가 된 이벤트만 처리하는 경우 초기 디바이스 열거가 완료된 후 디바이스가 시스템에 추가되면 업데이트가 수신되지 않습니다.

적용 대상