Battery.ReportUpdated 이벤트

정의

배터리의 충전, 용량 또는 상태 변경되면 발생합니다.

// Register
event_token ReportUpdated(TypedEventHandler<Battery, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
Battery::ReportUpdated_revoker ReportUpdated(auto_revoke_t, TypedEventHandler<Battery, IInspectable const&> const& handler) const;
public event TypedEventHandler<Battery,object> ReportUpdated;
function onReportUpdated(eventArgs) { /* Your code */ }
battery.addEventListener("reportupdated", onReportUpdated);
battery.removeEventListener("reportupdated", onReportUpdated);
- or -
battery.onreportupdated = onReportUpdated;
Public Custom Event ReportUpdated As TypedEventHandler(Of Battery, Object) 

이벤트 유형

설명

ReportUpdated 이벤트는 장치에 연결된 배터리의 상태, 충전 속도 또는 전원 용량의 변경에 의해 트리거됩니다. 일반적으로 이는 상태 변경 시 즉시 발생하고, 다른 모든 변경 시 주기적으로 발생합니다.

적용 대상

추가 정보