TouchEventHandler
open class TouchEventHandler
Event handler for touch events.
-
Initializes a new instance of the TouchEventHandler class.
Declaration
Swift
public init()
Return Value
The newly created TouchEventHandler object.
-
Attaches handlers.
Declaration
Swift
open func attachHandlers(_ diagramView: DiagramView, inputDispatcher: TouchInputDispatcher)
Parameters
diagramView
The DiagramView where the touch gestures happen.
inputDispatcher
The TouchInputDispatcher that dispatches the events.
-
Detaches the event handles.
Declaration
Swift
open func detachHandlers()
-
The DiagramView where the touch gestures happen. The value can be nil.
Declaration
Swift
open var diagramView: DiagramView?
-
The TouchInputDispatcher that dispatches the events. The value can be nil.
Declaration
Swift
open var inputDispatcher: TouchInputDispatcher?