Skip to main content
Version: v3

offGesture

Start from API_LEVEL 2.0 . Please refer to API_LEVEL.

Cancel the onGesture registration to listen for user gesture events.

Type

function offGesture(): void

Example

import { onGesture, offGesture, GESTURE_UP } from '@zos/interaction'

const gestureCallback = (event) => {
if (event === GESTURE_UP) {
console.log('up')
}

return true
}

onGesture({
callback: gestureCallback,
})

offGesture()