Skip to main content

XR8.XrDevice

Description

Provides information about device compatibility and characteristics.

Properties

PropertyTypeDescription
IncompatibilityReasonsEnumThe possible reasons for why a device and browser may not be compatible with 8th Wall Web.

Functions

FunctionDescription
deviceEstimateReturns an estimate of the user's device (e.g. make / model) based on user agent string and other factors. This information is only an estimate, and should not be assumed to be complete or reliable.
incompatibleReasonsReturns an array of XR8.XrDevice.IncompatibilityReasons why the device the device and browser are not supported. This will only contain entries if XR8.XrDevice.isDeviceBrowserCompatible() returns false.
incompatibleReasonDetailsReturns extra details about the reasons why the device and browser are incompatible. This information should only be used as a hint to help with further error handling. These should not be assumed to be complete or reliable. This will only contain entries if XR8.XrDevice.isDeviceBrowserCompatible() returns false.
isDeviceBrowserCompatibleReturns 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.