Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The cancel()
method of the XRHitTestSource
interface unsubscribes a hit test.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The cancel()
method of the XRHitTestSource
interface unsubscribes a hit test.
js
cancel()
None.
None (undefined
).
The cancel()
method unsubscribes from a hit test source. Since the XRHitTestSource
object will no longer be usable, you can clean up and set it to null
.
js
hitTestSource.cancel(); hitTestSource = null;
Specification |
---|
WebXR Hit Test Module # dom-xrhittestsource-cancel |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
cancel |
81 | 81 | No | No | 68 | No | No | 81 | No | 58 | No | 13.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/XRHitTestSource/cancel