Share via


LampArrayCustomEffect.UpdateRequested 이벤트

정의

램프 상태를 수정해야 함을 나타내기 위해 시스템에 의해 트리거되는 이벤트입니다.

// Register
event_token UpdateRequested(TypedEventHandler<LampArrayCustomEffect, LampArrayUpdateRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
LampArrayCustomEffect::UpdateRequested_revoker UpdateRequested(auto_revoke_t, TypedEventHandler<LampArrayCustomEffect, LampArrayUpdateRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<LampArrayCustomEffect,LampArrayUpdateRequestedEventArgs> UpdateRequested;
function onUpdateRequested(eventArgs) { /* Your code */ }
lampArrayCustomEffect.addEventListener("updaterequested", onUpdateRequested);
lampArrayCustomEffect.removeEventListener("updaterequested", onUpdateRequested);
- or -
lampArrayCustomEffect.onupdaterequested = onUpdateRequested;
Public Custom Event UpdateRequested As TypedEventHandler(Of LampArrayCustomEffect, LampArrayUpdateRequestedEventArgs) 

이벤트 유형

예제

LampArray 샘플

Windows.Devices.Lights 및 Windows.Devices.Lights.Effects API를 사용하여 주변 디바이스의 RGB 조명을 제어하는 방법을 보여 줍니다.

AutoRGB 샘플

데스크톱 화면에서 대표적인 단일 색을 추출하고 이를 사용하여 연결된 RGB 디바이스에서 LED 램프를 비추는 방법을 보여 줍니다.

설명

  • 재생 목록이 효과를 시작하면 UpdateRequested 이벤트가 즉시 트리거됩니다.
  • 재생 목록이 효과를 일시 중지하면 추가 이벤트 트리거가 일시적으로 중지됩니다. 재생 목록이 다시 시작되면 다시 시작됩니다.
  • 재생 목록이 효과를 중지하면 재생 목록이 다시 시작될 때까지 더 이상 이벤트 트리거가 발생하지 않습니다.
  • 이벤트는 기간이 만료된 마지막 시간을 트리거합니다. 이는 효과가 완료되기 전에 호출자가 최종 상태를 설정하는 데 사용해야 합니다.

이 이벤트에 등록된 여러 처리기의 동작은 정의되지 않습니다.

적용 대상

추가 정보