Provides information about the device running the Lens. Accessible through global.deviceInfoSystem.
global.deviceInfoSystem
var osType = global.deviceInfoSystem.getOS();var isMobile = (osType == OS.iOS || osType == OS.Android); Copy
var osType = global.deviceInfoSystem.getOS();var isMobile = (osType == OS.iOS || osType == OS.Android);
Readonly
Exposes User Data
Returns the operating system type of the device.
Provides the tracking camera's DeviceCamera.
Returns the name of this object's type.
Returns whether the current Lens is running in a desktop computer.
Returns whether the current Lens is running in Lens Studio.
Returns whether the current Lens is running in a mobile device.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
other
Returns whether the current Lens is running in a Spectacles device.
Provides information about the device running the Lens. Accessible through
global.deviceInfoSystem
.Example