共用方式為


SpatialInteractionDetectedEventArgs 類別

定義

提供 SpatialInteractionManager.InteractionDetected 事件的資料。

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

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)

備註

版本歷程記錄

Windows 版本 SDK 版本 新增值
1703 15063 InteractionSource

屬性

Interaction

取得偵測到的互動,以路由傳送至 SpatialGestureRecognizer

InteractionSource

取得與偵測到的互動相關聯的特定來源。

InteractionSourceKind

取得與偵測到的互動相關聯的來源種類。

方法

TryGetPointerPose(SpatialCoordinateSystem)

取得可用的指標姿勢,例如使用者的頭部注視和每個動作控制器的指標姿勢,用於將此互動路由傳送至 SpatialGestureRecognizer。

適用於