SystemButtonEventController.SystemFunctionButtonPressed 事件

定義

發生于按下 Fn 硬體系統 (也稱為函式移位) 按鈕時。

// Register
event_token SystemFunctionButtonPressed(TypedEventHandler<SystemButtonEventController, SystemFunctionButtonEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SystemButtonEventController::SystemFunctionButtonPressed_revoker SystemFunctionButtonPressed(auto_revoke_t, TypedEventHandler<SystemButtonEventController, SystemFunctionButtonEventArgs const&> const& handler) const;
public event TypedEventHandler<SystemButtonEventController,SystemFunctionButtonEventArgs> SystemFunctionButtonPressed;
function onSystemFunctionButtonPressed(eventArgs) { /* Your code */ }
systemButtonEventController.addEventListener("systemfunctionbuttonpressed", onSystemFunctionButtonPressed);
systemButtonEventController.removeEventListener("systemfunctionbuttonpressed", onSystemFunctionButtonPressed);
- or -
systemButtonEventController.onsystemfunctionbuttonpressed = onSystemFunctionButtonPressed;
Public Custom Event SystemFunctionButtonPressed As TypedEventHandler(Of SystemButtonEventController, SystemFunctionButtonEventArgs) 

事件類型

備註

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

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

適用於

另請參閱