Define DeviceService interface.

interface IDeviceService {
    hardware: HardwareType;
    os: OsType;
    vrDevice: null | VrDeviceType;
}

Implemented by

Properties

Properties

hardware: HardwareType

Retrieve the hardware type of the current device. NOTE: HardwareType is determined by the user agent string and may not be accurate.

os: OsType

Retrieve the current operating system. NOTE: OsType is determined by the user agent string and may not be accurate.

vrDevice: null | VrDeviceType

Retrieve the current VR device. If the hardware is not Headset, this will be null. NOTE: VrDeviceType is determined by the user agent string and may not be accurate.