SpatialInteraction 类

定义

表示由手部、运动控制器或用户语音引起的交互。

public ref class SpatialInteraction 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 SpatialInteraction 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 SpatialInteraction
Public NotInheritable Class SpatialInteraction
继承
Object Platform::Object IInspectable SpatialInteraction
属性

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 中引入)

注解

SpatialInteraction 对象通常不直接解释。 相反,应根据 InteractionDetected 事件参数中的 SpatialPointerPose 将交互定位到特定全息影像。 然后,可以通过调用全息影像的 CaptureInteraction 方法,将此交互的识别路由到该全息影像的 SpatialGestureRecognizer。

属性

SourceState

获取与触发此手势的源更新关联的状态。

适用于