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<PinchGesture>)
Creates a new instance of TrackpadGestureManipulator.
Declaration
public TrackpadGestureManipulator(Action<PinchGesture> onPinch = null)
Parameters
Type | Name | Description |
---|---|---|
Action<PinchGesture> | onPinch | The callback that will be invoked when a pinch gesture is recognized. |
Properties
onPinch
The callback that will be invoked when a pinch gesture is recognized.
Declaration
public Action<PinchGesture> onPinch { get; set; }
Property Value
Type | Description |
---|---|
Action<PinchGesture> |
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()