SystemButtonEventController 類別

定義

可讓您處理硬體系統按鈕所產生的事件, (例如函式按鈕) 。

public ref class SystemButtonEventController sealed : AttachableInputObject
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 655360)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SystemButtonEventController final : AttachableInputObject
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 655360)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SystemButtonEventController : AttachableInputObject
Public NotInheritable Class SystemButtonEventController
Inherits AttachableInputObject
繼承
Object Platform::Object IInspectable AttachableInputObject SystemButtonEventController
屬性

Windows 需求

裝置系列
Windows 10, version 2004 (已於 10.0.19041.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v10.0 引進)

備註

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

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

方法

Close()

終止 AttachableInputObject 實例。

(繼承來源 AttachableInputObject)
CreateForDispatcherQueue(DispatcherQueue)

在指定的發送器佇列上建立 SystemButtonEventController 物件。

所有事件都會在佇列執行緒上引發。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

(繼承來源 AttachableInputObject)

事件

SystemFunctionButtonPressed

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

SystemFunctionButtonReleased

發生于 Fn 硬體系統 (也稱為函式 Shift) 按鈕時,目前已按下。

SystemFunctionLockChanged

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

SystemFunctionLockIndicatorChanged

發生于 對 Fn 硬體系統視覺指示器狀態的變更時, (也稱為函式移位) 按鈕鎖定。

適用於

另請參閱