UINavigationController 類別

定義

表示任何可用於 UI 流覽之類型的控制器。 大部分的遊戲台、電動搖桿和賽車方向盤也可以以 UINavigationController的形式存取。 建議遊戲在遊戲期間使用控制器特定的類別,以及 UI 功能表的 UINavigationController 類別。

public ref class UINavigationController sealed
public ref class UINavigationController sealed : IGameControllerBatteryInfo
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UINavigationController final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UINavigationController final : IGameControllerBatteryInfo
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class UINavigationController
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class UINavigationController : IGameControllerBatteryInfo
Public NotInheritable Class UINavigationController
Public NotInheritable Class UINavigationController
Implements IGameControllerBatteryInfo
繼承
Object Platform::Object IInspectable UINavigationController
屬性
實作

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

備註

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1703 15063 FromGameController
1703 15063 TryGetBatteryReport

屬性

Headset

附加至 UI 流覽控制器的音訊頭戴式裝置。

IsWireless

取得值,這個值表示 UI 流覽控制器的無線狀態。

UINavigationControllers

所有連線的 UI 流覽控制器清單。

User

與 UI 流覽控制器相關聯的使用者。

方法

FromGameController(IGameController)

以 UI 流覽控制器的形式傳回指定的遊戲控制器。

GetCurrentReading()

取得 UI 流覽控制器狀態的快照集。

GetOptionalButtonLabel(OptionalUINavigationButtons)

擷取選擇性 UI 瀏覽按鈕的標籤。

GetRequiredButtonLabel(RequiredUINavigationButtons)

擷取必要 UI 瀏覽按鈕的標籤。

TryGetBatteryReport()

取得 UI 流覽控制器目前電池狀態的相關資訊。

事件

HeadsetConnected

當頭戴式裝置附加至 UI 流覽控制器時發出訊號。

HeadsetDisconnected

當頭戴裝置與 UI 流覽控制器中斷連線時發出訊號。

UINavigationControllerAdded

連線新的 UI 流覽控制器時發出訊號。

UINavigationControllerRemoved

當 UI 流覽控制器中斷連線時發出訊號。

UserChanged

當使用者與 UI 流覽控制器相關聯的使用者已變更時發出訊號。

適用於

另請參閱