src/device-info.js
function DeviceInfo(deviceParams, additionalViewers) {
  this.viewer = Viewers.CardboardV2;
  this.updateDeviceParams(deviceParams);
  this.distortion = new Distortion(this.viewer.distortionCoefficients);
  for (var i = 0; i < additionalViewers.length; i++) {
    var viewer = additionalViewers[i];
    Viewers[viewer.id] = new CardboardViewer(viewer);
  }
}
function DeviceInfo(deviceParams, additionalViewers) {
  this.viewer = Viewers.CardboardV2;
  this.updateDeviceParams(deviceParams);
  this.distortion = new Distortion(this.viewer.distortionCoefficients);
  for (var i = 0; i < additionalViewers.length; i++) {
    var viewer = additionalViewers[i];
    Viewers[viewer.id] = new CardboardViewer(viewer);
  }
}
function DeviceInfo ( deviceParams , additionalViewers ) { this . viewer = Viewers . CardboardV2 ; this . updateDeviceParams ( deviceParams ) ; this . distortion = new Distortion ( this . viewer . distortionCoefficients ) ; for ( var i = 0 ; i < additionalViewers . length ; i ++ ) { var viewer = additionalViewers [ i ] ; Viewers [ viewer . id ] = new CardboardViewer ( viewer ) ; } }
Manages information about the device and the viewer.

deviceParams indicates the parameters of the device to use (generally
obtained from dpdb.getDeviceParams()). Can be null to mean no device
params were found.
Manages information about the device and the viewer .