onTouch

protected open fun onTouch(touchDirection: TouchDirection): Boolean

Override this function to be notified about the glasses touch gestures

If the Screen handled the touch event, and no events should be propagated to he application external listeners (via UIKit.services.IEvsGlassesEvents.onTouch) the function should return true (meaning handled=true)

If the touch event propagation is required, the function return false (meaning handled=false)

Return

true if the screen handled the touch event, otherwise false

Parameters

touchDirection

the touch gesture detected by the glasses

See also