CoreApplication.LeavingBackground 이벤트

정의

애플리케이션 UI가 표시되기 직전에 발생합니다.

// Register
static event_token LeavingBackground(EventHandler<LeavingBackgroundEventArgs> const& handler) const;

// Revoke with event_token
static void LeavingBackground(event_token const* cookie) const;

// Revoke with event_revoker
static CoreApplication::LeavingBackground_revoker LeavingBackground(auto_revoke_t, EventHandler<LeavingBackgroundEventArgs> const& handler) const;
public static event System.EventHandler<LeavingBackgroundEventArgs> LeavingBackground;
function onLeavingBackground(eventArgs) { /* Your code */ }
Windows.ApplicationModel.Core.CoreApplication.addEventListener("leavingbackground", onLeavingBackground);
Windows.ApplicationModel.Core.CoreApplication.removeEventListener("leavingbackground", onLeavingBackground);
- or -
Windows.ApplicationModel.Core.CoreApplication.onleavingbackground = onLeavingBackground;
Public Shared Custom Event LeavingBackground As EventHandler(Of LeavingBackgroundEventArgs) 

이벤트 유형

EventHandler<LeavingBackgroundEventArgs>

EventHandler<LeavingBackgroundEventArgs>

Windows 요구 사항

디바이스 패밀리
Windows 10 Anniversary Edition (10.0.14393.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v3.0에서 도입되었습니다.)

설명

이전에는 UI를 로드하는 데 가장 적합한 위치가 활성화되었거나 다시 시작 이벤트 처리기에 있었습니다. 이제 LeavingBackground 이벤트에 대한 처리기가 최종 검사를 수행하여 UI를 프레젠테이션할 준비가 되었는지 확인하는 가장 좋은 장소입니다. 애플리케이션이 사용자에게 표시되기 전에 작업을 수행할 수 있는 마지막 기회이므로 이 시간까지 시각적 자산이 준비되었는지 확인하는 것이 중요합니다.

적용 대상

추가 정보