offGesture
API_LEVEL
2.0
开始支持,API 兼容性请参考 API_LEVEL。
取消 onGesture
注册的监听用户手势事件。
类型
function offGesture(): void
代码示例
import { onGesture, offGesture, GESTURE_UP } from '@zos/interaction'
const gestureCallback = (event) => {
if (event === GESTURE_UP) {
console.log('up')
}
return true
}
onGesture({
callback: gestureCallback,
})
offGesture()