Class TrackpadGestureManipulator
A manipulator that can be used to receive trackpad gestures.
Inherited Members
Namespace: Unity.AppUI.UI
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()
Declaration
protected override void RegisterCallbacksOnTarget()
Overrides
UnregisterCallbacksFromTarget()
Declaration
protected override void UnregisterCallbacksFromTarget()