Class TrackpadGestureManipulator
A manipulator that can be used to receive trackpad gestures.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class TrackpadGestureManipulator : Manipulator, IManipulator
Constructors
TrackpadGestureManipulator(Action<PanGesture>, Action<MagnificationGesture>)
Creates a new instance of TrackpadGestureManipulator.
Declaration
public TrackpadGestureManipulator(Action<PanGesture> onPan = null, Action<MagnificationGesture> onMagnify = null)
Parameters
Type | Name | Description |
---|---|---|
Action<PanGesture> | onPan | The callback that will be invoked when a pan gesture is recognized. |
Action<MagnificationGesture> | onMagnify | The callback that will be invoked when a magnification gesture is recognized. |
Properties
onMagnify
The callback that will be invoked when a magnification gesture is recognized.
Declaration
public Action<MagnificationGesture> onMagnify { get; set; }
Property Value
Type | Description |
---|---|
Action<MagnificationGesture> |
onPan
The callback that will be invoked when a pan gesture is recognized.
Declaration
public Action<PanGesture> onPan { get; set; }
Property Value
Type | Description |
---|---|
Action<PanGesture> |
Methods
RegisterCallbacksOnTarget()
Called to register event callbacks on the target element.
Declaration
protected override void RegisterCallbacksOnTarget()
Overrides
UnregisterCallbacksFromTarget()
Called to unregister event callbacks from the target element.
Declaration
protected override void UnregisterCallbacksFromTarget()