AppBroadcastBackgroundService.HeartbeatRequested 이벤트

정의

시스템에서 주기적으로 발생하여 브로드캐스팅 백그라운드 작업이 현재 활성 상태인지 확인합니다.

// Register
event_token HeartbeatRequested(TypedEventHandler<AppBroadcastBackgroundService, AppBroadcastHeartbeatRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AppBroadcastBackgroundService::HeartbeatRequested_revoker HeartbeatRequested(auto_revoke_t, TypedEventHandler<AppBroadcastBackgroundService, AppBroadcastHeartbeatRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppBroadcastBackgroundService,AppBroadcastHeartbeatRequestedEventArgs> HeartbeatRequested;
function onHeartbeatRequested(eventArgs) { /* Your code */ }
appBroadcastBackgroundService.addEventListener("heartbeatrequested", onHeartbeatRequested);
appBroadcastBackgroundService.removeEventListener("heartbeatrequested", onHeartbeatRequested);
- or -
appBroadcastBackgroundService.onheartbeatrequested = onHeartbeatRequested;
Public Custom Event HeartbeatRequested As TypedEventHandler(Of AppBroadcastBackgroundService, AppBroadcastHeartbeatRequestedEventArgs) 

이벤트 유형

Windows 요구 사항

앱 기능
appBroadcast appBroadcastSettings

설명

Handled 속성을 true로 설정하여 백그라운드 작업이 현재 활성 상태인지 확인합니다. 이 이벤트에 응답하지 않고 Handled 속성을 true로 설정하지 않으면 브로드캐스트 앱에 대한 백그라운드 작업이 종료될 수 있습니다.

적용 대상