SysHolographicWindowingEnvironment.HomeGestureDetected 事件

定义

检测到主手势时引发的事件。 此 API 仅适用于 Windows 操作系统的组件。

// Register
event_token HomeGestureDetected(TypedEventHandler<SysHolographicWindowingEnvironment, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
SysHolographicWindowingEnvironment::HomeGestureDetected_revoker HomeGestureDetected(auto_revoke_t, TypedEventHandler<SysHolographicWindowingEnvironment, IInspectable const&> const& handler) const;
public event TypedEventHandler<SysHolographicWindowingEnvironment,object> HomeGestureDetected;
function onHomeGestureDetected(eventArgs) { /* Your code */ }
sysHolographicWindowingEnvironment.addEventListener("homegesturedetected", onHomeGestureDetected);
sysHolographicWindowingEnvironment.removeEventListener("homegesturedetected", onHomeGestureDetected);
- or -
sysHolographicWindowingEnvironment.onhomegesturedetected = onHomeGestureDetected;
Public Custom Event HomeGestureDetected As TypedEventHandler(Of SysHolographicWindowingEnvironment, Object) 

事件类型

Windows 要求

设备系列
Windows Holographic System Implementation Extension SDK (在 10.0.18362.0 中引入)
API contract
Windows.System.Implementation.Holographic.HoloSysImplementationContract (在 v2.0 中引入)

注解

对于 Windows 操作系统组件以外的所有进程,在运行时调用这些 API 将失败。 这些 API 可能会在将来的 Windows 版本中修改或删除。

适用于