SystemButtonEventController.SystemFunctionLockChanged 事件

定義

變更 Fn 硬體系統的狀態時發生, (也稱為函式 Shift) 按鈕鎖定。

// Register
event_token SystemFunctionLockChanged(TypedEventHandler<SystemButtonEventController, SystemFunctionLockChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SystemButtonEventController::SystemFunctionLockChanged_revoker SystemFunctionLockChanged(auto_revoke_t, TypedEventHandler<SystemButtonEventController, SystemFunctionLockChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<SystemButtonEventController,SystemFunctionLockChangedEventArgs> SystemFunctionLockChanged;
function onSystemFunctionLockChanged(eventArgs) { /* Your code */ }
systemButtonEventController.addEventListener("systemfunctionlockchanged", onSystemFunctionLockChanged);
systemButtonEventController.removeEventListener("systemfunctionlockchanged", onSystemFunctionLockChanged);
- or -
systemButtonEventController.onsystemfunctionlockchanged = onSystemFunctionLockChanged;
Public Custom Event SystemFunctionLockChanged As TypedEventHandler(Of SystemButtonEventController, SystemFunctionLockChangedEventArgs) 

事件類型

備註

此 API 適用于協助工具工具作為從硬體系統按鈕攔截事件的低階勾點。

SystemButtonEventController 事件註冊會套用整個系統,而且是初次提供、第一次提供服務。 如果應用程式或服務將 SystemButtonEventController 事件 Handled 屬性設定為 true,則針對相同事件通知在該應用程式或服務之後註冊的應用程式或服務將不會收到通知。

適用於

另請參閱