共用方式為


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 引進)

備註

這些 API 的呼叫會在執行時間失敗,但 Windows 作業系統元件以外的所有進程都會失敗。 未來 Windows 版本中可能會修改或移除這些 API。

適用於