BrightnessOverride.BrightnessLevelChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于螢幕亮度等級變更時。
// 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)
事件類型
TypedEventHandler<BrightnessOverride,IInspectable>
備註
每當螢幕亮度變更時,不論應用程式是否要求啟動覆寫會話,都會引發此事件。