CustomSystemEventTrigger 클래스

정의

이 클래스를 사용하면 사용자 지정 시스템 트리거를 지정하여 시스템에 의해 트리거될 때 등록하고 응답할 수 있습니다.

public ref class CustomSystemEventTrigger sealed : IBackgroundTrigger
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.ICustomSystemEventTriggerFactory, 393216, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class CustomSystemEventTrigger final : IBackgroundTrigger
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.ICustomSystemEventTriggerFactory), 393216, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class CustomSystemEventTrigger : IBackgroundTrigger
function CustomSystemEventTrigger(triggerId, recurrence)
Public NotInheritable Class CustomSystemEventTrigger
Implements IBackgroundTrigger
상속
Object Platform::Object IInspectable CustomSystemEventTrigger
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1803 (10.0.17134.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v6.0에서 도입되었습니다.)

설명

OS에서 필요한 시스템 트리거를 제공하지 않는 경우 이 클래스를 사용하여 트리거를 정의합니다. 이러한 경우는 하드웨어 드라이버 및 UWP 앱이 둘 다 타사 제품인 경우, 하드웨어 드라이버가 앱이 처리하는 사용자 지정 이벤트를 발생하게 해야 할 때입니다. 예를 들어, 오디오 잭이 연결되어 있을 때 사용자에게 알려야 하는 오디오 카드가 있습니다.

생성자

CustomSystemEventTrigger(String, CustomSystemEventTriggerRecurrence)

지정한 식별자와 되풀이를 사용하여 CustomSystemEventTrigger의 instance 만듭니다.

속성

Recurrence

이 사용자 지정 시스템 이벤트 트리거가 활성화될 수 있는 시기를 가져옵니다.

TriggerId

이 트리거에서 시작해야 하는 백그라운드 작업을 고유하게 식별하는 트리거 식별자입니다.

적용 대상