共用方式為


ClaimedLineDisplay.StatusUpdated 事件

定義

通知應用程式線條顯示電源狀態有變更。

// Register
event_token StatusUpdated(TypedEventHandler<ClaimedLineDisplay, LineDisplayStatusUpdatedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ClaimedLineDisplay::StatusUpdated_revoker StatusUpdated(auto_revoke_t, TypedEventHandler<ClaimedLineDisplay, LineDisplayStatusUpdatedEventArgs const&> const& handler) const;
public event TypedEventHandler<ClaimedLineDisplay,LineDisplayStatusUpdatedEventArgs> StatusUpdated;
function onStatusUpdated(eventArgs) { /* Your code */ }
claimedLineDisplay.addEventListener("statusupdated", onStatusUpdated);
claimedLineDisplay.removeEventListener("statusupdated", onStatusUpdated);
- or -
claimedLineDisplay.onstatusupdated = onStatusUpdated;
Public Custom Event StatusUpdated As TypedEventHandler(Of ClaimedLineDisplay, LineDisplayStatusUpdatedEventArgs) 

事件類型

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

事件值與 CheckPowerStatusAsync所傳回的值相同。

適用於