useSessionModeSupported
Caution
Deprecated: use useXRSessionModeSupported
instead
const
useSessionModeSupported: (mode
,onError?
) =>undefined
|boolean
=useXRSessionModeSupported
Checks whether a specific XRSessionMode is supported or not
Parameters
modeXRSessionMode
The XRSessionMode
to check against.
(error
) => void
Callback executed when an error occurs.
Returns
undefined
| boolean