共用方式為


BrightnessOverride.BrightnessLevelChanged 事件

定義

發生于螢幕亮度等級變更時。

// Register
event_token BrightnessLevelChanged(TypedEventHandler<BrightnessOverride, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
BrightnessOverride::BrightnessLevelChanged_revoker BrightnessLevelChanged(auto_revoke_t, TypedEventHandler<BrightnessOverride, IInspectable const&> const& handler) const;
public event TypedEventHandler<BrightnessOverride,object> BrightnessLevelChanged;
function onBrightnessLevelChanged(eventArgs) { /* Your code */ }
brightnessOverride.addEventListener("brightnesslevelchanged", onBrightnessLevelChanged);
brightnessOverride.removeEventListener("brightnesslevelchanged", onBrightnessLevelChanged);
- or -
brightnessOverride.onbrightnesslevelchanged = onBrightnessLevelChanged;
Public Custom Event BrightnessLevelChanged As TypedEventHandler(Of BrightnessOverride, Object) 

事件類型

備註

每當螢幕亮度變更時,不論應用程式是否要求啟動覆寫會話,都會引發此事件。

適用於