Application.EnteredBackground 이벤트

정의

앱이 포그라운드에서 백그라운드로 이동할 때 발생합니다.

public:
 virtual event EnteredBackgroundEventHandler ^ EnteredBackground;
// Register
event_token EnteredBackground(EnteredBackgroundEventHandler const& handler) const;

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

// Revoke with event_revoker
Application::EnteredBackground_revoker EnteredBackground(auto_revoke_t, EnteredBackgroundEventHandler const& handler) const;
public event EnteredBackgroundEventHandler EnteredBackground;
function onEnteredBackground(eventArgs) { /* Your code */ }
application.addEventListener("enteredbackground", onEnteredBackground);
application.removeEventListener("enteredbackground", onEnteredBackground);
- or -
application.onenteredbackground = onEnteredBackground;
Public Custom Event EnteredBackground As EnteredBackgroundEventHandler 

이벤트 유형

Windows 요구 사항

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

설명

이 이벤트는 사용자가 앱에서 벗어나면 발생합니다. 이 이벤트에 대한 이벤트 처리기가 실행될 수 있는 시간은 제한됩니다.

앱이 백그라운드로 이동하면 시스템에 의해 메모리 제약 조건이 변경될 수 있습니다. 이 이벤트를 사용하여 현재 메모리 사용량과 사용 가능한 리소스를 검사 앱이 백그라운드에 있는 동안 일시 중단되고 종료되지 않도록 제한 이하로 유지합니다. 자세한 내용은 앱이 백그라운드로 이동할 때 사용 가능한 메모리 를 참조하세요.

EnteredBackground 이벤트는 등록된 아파트에서 실행됩니다.

적용 대상

추가 정보