Gestures
public class Gestures
extension Gestures: NativeBase
extension Gestures: Hashable
Use this class to process touch events from the platform and detect gesture induced actions on the map view. Please note that this class holds strong references to the gesture delegates.
-
TapDelegatethat notifies when a tap gesture occurs.Gesturesholds a strong reference to the delegate.Declaration
Swift
public weak var tapDelegate: TapDelegate? { get set } -
DoubleTapDelegatethat notifies when a double-tap gesture occurs.Gesturesholds a strong reference to the delegate.Declaration
Swift
public weak var doubleTapDelegate: DoubleTapDelegate? { get set } -
PinchRotateDelegatethat notifies when a pinch-rotate gesture occurs.Gesturesholds a strong reference to the delegate.Declaration
Swift
public weak var pinchRotateDelegate: PinchRotateDelegate? { get set } -
LongPressDelegatethat notifies when a long-press gesture occurs.Gesturesholds a strong reference to the delegate.Declaration
Swift
public weak var longPressDelegate: LongPressDelegate? { get set } -
PanDelegatethat notifies when a pan gesture occurs.Gesturesholds a strong reference to the delegate.Declaration
Swift
public weak var panDelegate: PanDelegate? { get set } -
TwoFingerTapDelegatethat notifies when a two-finger tap gesture occurs.Gesturesholds a strong reference to the delegate.Declaration
Swift
public weak var twoFingerTapDelegate: TwoFingerTapDelegate? { get set } -
TwoFingerPanDelegatethat notifies when a two-finger pan gesture occurs.Gesturesholds a strong reference to the delegate.Declaration
Swift
public weak var twoFingerPanDelegate: TwoFingerPanDelegate? { get set } -
Enables default action to be performed for a specified gesture.
Declaration
Swift
public func enableDefaultAction(forGesture gestureType: GestureType)Parameters
gestureTypeThe gesture type.
-
Disables default action for a specified gesture.
Declaration
Swift
public func disableDefaultAction(forGesture gestureType: GestureType)Parameters
gestureTypeThe gesture type.