CoreApplication.LeavingBackground 이벤트
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
애플리케이션 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)
이벤트 유형
Windows 요구 사항
| 디바이스 패밀리 |
Windows 10 Anniversary Edition (10.0.14393.0에서 도입되었습니다.)
|
| API contract |
Windows.Foundation.UniversalApiContract (v3.0에서 도입되었습니다.)
|
설명
이전에는 UI를 로드하는 데 가장 적합한 위치가 활성화되었거나 다시 시작 이벤트 처리기에 있었습니다. 이제 LeavingBackground 이벤트에 대한 처리기가 최종 검사를 수행하여 UI를 프레젠테이션할 준비가 되었는지 확인하는 가장 좋은 장소입니다. 애플리케이션이 사용자에게 표시되기 전에 작업을 수행할 수 있는 마지막 기회이므로 이 시간까지 시각적 자산이 준비되었는지 확인하는 것이 중요합니다.
적용 대상
추가 정보
피드백
다음에 대한 사용자 의견 제출 및 보기