SpatialInteractionSource.TryCreateHandMeshObserverAsync SpatialInteractionSource.TryCreateHandMeshObserverAsync SpatialInteractionSource.TryCreateHandMeshObserverAsync SpatialInteractionSource.TryCreateHandMeshObserverAsync SpatialInteractionSource.TryCreateHandMeshObserverAsync Method

Definition

Requests a HandMeshObserver to provide mesh updates for each frame that tracks the detected shape of a hand.

public : IAsyncOperation<HandMeshObserver> TryCreateHandMeshObserverAsync()
IAsyncOperation<HandMeshObserver> TryCreateHandMeshObserverAsync() const;
public IAsyncOperation<HandMeshObserver> TryCreateHandMeshObserverAsync()
Public Function TryCreateHandMeshObserverAsync() As IAsyncOperation(Of HandMeshObserver)
Windows.UI.Input.Spatial.SpatialInteractionSource.tryCreateHandMeshObserverAsync().done( /* Your success and error handlers */ );

Returns

An operation that triggers with a hand mesh observer (if this source supports hand meshes); otherwise, an operation that returns null.

Additional features and requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)

Remarks

It can take more than a frame to initialize the app's subscription to hand mesh updates.