Skip to main content

XR8.XrDevice.isDeviceBrowserCompatible()

XR8.XrDevice.isDeviceBrowserCompatible({ allowedDevices })

Description

Returns an estimate of whether the user's device and browser is compatible with 8th Wall Web. If this returns false, XR8.XrDevice.incompatibleReasons() will return reasons about why the device and browser are not supported.

Parameters

ParameterDescription
allowedDevices [Optional]Supported device classes, a value in XR8.XrConfig.device().

Returns

True or false.

Example

XR8.XrDevice.isDeviceBrowserCompatible({allowedDevices: XR8.XrConfig.device().MOBILE})