@nodert-win10/windows.devices.sensors
Version:
Use the Windows.Devices.Sensors UWP API directly from Node.js
1,052 lines (810 loc) • 29.6 kB
JavaScript
_MagnetometerAccuracy = function () {
this.unknown = 0;
this.unreliable = 1;
this.approximate = 2;
this.high = 3;
}
exports.MagnetometerAccuracy = new _MagnetometerAccuracy();
_ActivityType = function () {
this.unknown = 0;
this.idle = 1;
this.stationary = 2;
this.fidgeting = 3;
this.walking = 4;
this.running = 5;
this.inVehicle = 6;
this.biking = 7;
}
exports.ActivityType = new _ActivityType();
_ActivitySensorReadingConfidence = function () {
this.high = 0;
this.low = 1;
}
exports.ActivitySensorReadingConfidence = new _ActivitySensorReadingConfidence();
_SensorReadingType = function () {
this.absolute = 0;
this.relative = 1;
}
exports.SensorReadingType = new _SensorReadingType();
_SensorType = function () {
this.accelerometer = 0;
this.activitySensor = 1;
this.barometer = 2;
this.compass = 3;
this.customSensor = 4;
this.gyroscope = 5;
this.proximitySensor = 6;
this.inclinometer = 7;
this.lightSensor = 8;
this.orientationSensor = 9;
this.pedometer = 10;
this.relativeInclinometer = 11;
this.relativeOrientationSensor = 12;
this.simpleOrientationSensor = 13;
}
exports.SensorType = new _SensorType();
_SimpleOrientation = function () {
this.notRotated = 0;
this.rotated90DegreesCounterclockwise = 1;
this.rotated180DegreesCounterclockwise = 2;
this.rotated270DegreesCounterclockwise = 3;
this.faceup = 4;
this.facedown = 5;
}
exports.SimpleOrientation = new _SimpleOrientation();
_PedometerStepKind = function () {
this.unknown = 0;
this.walking = 1;
this.running = 2;
}
exports.PedometerStepKind = new _PedometerStepKind();
ISensorDataThreshold = (function () {
var cls = function ISensorDataThreshold() {
};
return cls;
}) ();
exports.ISensorDataThreshold = ISensorDataThreshold;
SensorDataThresholdTriggerDetails = (function () {
var cls = function SensorDataThresholdTriggerDetails() {
this.deviceId = new String();
this.sensorType = new SensorType();
};
return cls;
}) ();
exports.SensorDataThresholdTriggerDetails = SensorDataThresholdTriggerDetails;
Accelerometer = (function () {
var cls = function Accelerometer() {
this.reportInterval = new Number();
this.minimumReportInterval = new Number();
this.readingTransform = new Number();
this.reportLatency = new Number();
this.maxBatchSize = new Number();
this.deviceId = new String();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="AccelerometerReading" />
/// </signature>
return new AccelerometerReading();
}
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Accelerometer" />
/// </signature>
return new Accelerometer();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.Accelerometer = Accelerometer;
AccelerometerReading = (function () {
var cls = function AccelerometerReading() {
this.accelerationX = new Number();
this.accelerationY = new Number();
this.accelerationZ = new Number();
this.timestamp = new Date();
};
return cls;
}) ();
exports.AccelerometerReading = AccelerometerReading;
AccelerometerReadingChangedEventArgs = (function () {
var cls = function AccelerometerReadingChangedEventArgs() {
this.reading = new AccelerometerReading();
};
return cls;
}) ();
exports.AccelerometerReadingChangedEventArgs = AccelerometerReadingChangedEventArgs;
AccelerometerShakenEventArgs = (function () {
var cls = function AccelerometerShakenEventArgs() {
this.timestamp = new Date();
};
return cls;
}) ();
exports.AccelerometerShakenEventArgs = AccelerometerShakenEventArgs;
Inclinometer = (function () {
var cls = function Inclinometer() {
this.reportInterval = new Number();
this.minimumReportInterval = new Number();
this.readingTransform = new Number();
this.readingType = new SensorReadingType();
this.deviceId = new String();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="InclinometerReading" />
/// </signature>
return new InclinometerReading();
}
cls.getDefaultForRelativeReadings = function getDefaultForRelativeReadings() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Inclinometer" />
/// </signature>
return new Inclinometer();
}
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Inclinometer" />
/// </signature>
return new Inclinometer();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.Inclinometer = Inclinometer;
InclinometerReading = (function () {
var cls = function InclinometerReading() {
this.pitchDegrees = new Number();
this.rollDegrees = new Number();
this.timestamp = new Date();
this.yawDegrees = new Number();
this.yawAccuracy = new MagnetometerAccuracy();
};
return cls;
}) ();
exports.InclinometerReading = InclinometerReading;
InclinometerReadingChangedEventArgs = (function () {
var cls = function InclinometerReadingChangedEventArgs() {
this.reading = new InclinometerReading();
};
return cls;
}) ();
exports.InclinometerReadingChangedEventArgs = InclinometerReadingChangedEventArgs;
Gyrometer = (function () {
var cls = function Gyrometer() {
this.reportInterval = new Number();
this.minimumReportInterval = new Number();
this.readingTransform = new Number();
this.deviceId = new String();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="GyrometerReading" />
/// </signature>
return new GyrometerReading();
}
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Gyrometer" />
/// </signature>
return new Gyrometer();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.Gyrometer = Gyrometer;
GyrometerReading = (function () {
var cls = function GyrometerReading() {
this.angularVelocityX = new Number();
this.angularVelocityY = new Number();
this.angularVelocityZ = new Number();
this.timestamp = new Date();
};
return cls;
}) ();
exports.GyrometerReading = GyrometerReading;
GyrometerReadingChangedEventArgs = (function () {
var cls = function GyrometerReadingChangedEventArgs() {
this.reading = new GyrometerReading();
};
return cls;
}) ();
exports.GyrometerReadingChangedEventArgs = GyrometerReadingChangedEventArgs;
Compass = (function () {
var cls = function Compass() {
this.reportInterval = new Number();
this.minimumReportInterval = new Number();
this.readingTransform = new Number();
this.deviceId = new String();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="CompassReading" />
/// </signature>
return new CompassReading();
}
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Compass" />
/// </signature>
return new Compass();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.Compass = Compass;
CompassReading = (function () {
var cls = function CompassReading() {
this.headingMagneticNorth = new Number();
this.headingTrueNorth = new Number();
this.timestamp = new Date();
this.headingAccuracy = new MagnetometerAccuracy();
};
return cls;
}) ();
exports.CompassReading = CompassReading;
CompassReadingChangedEventArgs = (function () {
var cls = function CompassReadingChangedEventArgs() {
this.reading = new CompassReading();
};
return cls;
}) ();
exports.CompassReadingChangedEventArgs = CompassReadingChangedEventArgs;
LightSensor = (function () {
var cls = function LightSensor() {
this.reportInterval = new Number();
this.minimumReportInterval = new Number();
this.deviceId = new String();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="LightSensorReading" />
/// </signature>
return new LightSensorReading();
}
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="LightSensor" />
/// </signature>
return new LightSensor();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.LightSensor = LightSensor;
LightSensorReading = (function () {
var cls = function LightSensorReading() {
this.illuminanceInLux = new Number();
this.timestamp = new Date();
};
return cls;
}) ();
exports.LightSensorReading = LightSensorReading;
LightSensorReadingChangedEventArgs = (function () {
var cls = function LightSensorReadingChangedEventArgs() {
this.reading = new LightSensorReading();
};
return cls;
}) ();
exports.LightSensorReadingChangedEventArgs = LightSensorReadingChangedEventArgs;
SensorRotationMatrix = (function () {
var cls = function SensorRotationMatrix() {
this.m11 = new Number();
this.m12 = new Number();
this.m13 = new Number();
this.m21 = new Number();
this.m22 = new Number();
this.m23 = new Number();
this.m31 = new Number();
this.m32 = new Number();
this.m33 = new Number();
};
return cls;
}) ();
exports.SensorRotationMatrix = SensorRotationMatrix;
SensorQuaternion = (function () {
var cls = function SensorQuaternion() {
this.w = new Number();
this.x = new Number();
this.y = new Number();
this.z = new Number();
};
return cls;
}) ();
exports.SensorQuaternion = SensorQuaternion;
OrientationSensor = (function () {
var cls = function OrientationSensor() {
this.reportInterval = new Number();
this.minimumReportInterval = new Number();
this.readingTransform = new Number();
this.readingType = new SensorReadingType();
this.deviceId = new String();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="OrientationSensorReading" />
/// </signature>
return new OrientationSensorReading();
}
cls.getDefaultForRelativeReadings = function getDefaultForRelativeReadings() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="OrientationSensor" />
/// </signature>
return new OrientationSensor();
}
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="OrientationSensor" />
/// </signature>
return new OrientationSensor();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.OrientationSensor = OrientationSensor;
OrientationSensorReading = (function () {
var cls = function OrientationSensorReading() {
this.quaternion = new SensorQuaternion();
this.rotationMatrix = new SensorRotationMatrix();
this.timestamp = new Date();
this.yawAccuracy = new MagnetometerAccuracy();
};
return cls;
}) ();
exports.OrientationSensorReading = OrientationSensorReading;
OrientationSensorReadingChangedEventArgs = (function () {
var cls = function OrientationSensorReadingChangedEventArgs() {
this.reading = new OrientationSensorReading();
};
return cls;
}) ();
exports.OrientationSensorReadingChangedEventArgs = OrientationSensorReadingChangedEventArgs;
SimpleOrientationSensor = (function () {
var cls = function SimpleOrientationSensor() {
this.readingTransform = new Number();
this.deviceId = new String();
};
cls.prototype.getCurrentOrientation = function getCurrentOrientation() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="SimpleOrientation" />
/// </signature>
return new SimpleOrientation();
}
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="SimpleOrientationSensor" />
/// </signature>
return new SimpleOrientationSensor();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.SimpleOrientationSensor = SimpleOrientationSensor;
SimpleOrientationSensorOrientationChangedEventArgs = (function () {
var cls = function SimpleOrientationSensorOrientationChangedEventArgs() {
this.orientation = new SimpleOrientation();
this.timestamp = new Date();
};
return cls;
}) ();
exports.SimpleOrientationSensorOrientationChangedEventArgs = SimpleOrientationSensorOrientationChangedEventArgs;
Magnetometer = (function () {
var cls = function Magnetometer() {
this.reportInterval = new Number();
this.minimumReportInterval = new Number();
this.readingTransform = new Number();
this.deviceId = new String();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="MagnetometerReading" />
/// </signature>
return new MagnetometerReading();
}
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Magnetometer" />
/// </signature>
return new Magnetometer();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.Magnetometer = Magnetometer;
MagnetometerReading = (function () {
var cls = function MagnetometerReading() {
this.directionalAccuracy = new MagnetometerAccuracy();
this.magneticFieldX = new Number();
this.magneticFieldY = new Number();
this.magneticFieldZ = new Number();
this.timestamp = new Date();
};
return cls;
}) ();
exports.MagnetometerReading = MagnetometerReading;
MagnetometerReadingChangedEventArgs = (function () {
var cls = function MagnetometerReadingChangedEventArgs() {
this.reading = new MagnetometerReading();
};
return cls;
}) ();
exports.MagnetometerReadingChangedEventArgs = MagnetometerReadingChangedEventArgs;
ActivitySensor = (function () {
var cls = function ActivitySensor() {
this.deviceId = new String();
this.minimumReportInterval = new Number();
this.powerInMilliwatts = new Number();
this.subscribedActivities = new Object();
this.supportedActivities = new Object();
};
cls.prototype.getCurrentReadingAsync = function getCurrentReadingAsync(callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.getDefaultAsync = function getDefaultAsync(callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.fromIdAsync = function fromIdAsync(deviceId, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="deviceId" type="String">A param.</param>
/// </signature>
}
cls.getSystemHistoryAsync = function getSystemHistoryAsync(fromTime, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="fromTime" type="Date">A param.</param>
/// </signature>
}
cls.getSystemHistoryAsync = function getSystemHistoryAsync(fromTime, duration, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="fromTime" type="Date">A param.</param>
/// <param name="duration" type="Number">A param.</param>
/// </signature>
}
cls.getDeviceSelector = function getDeviceSelector() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="String" />
/// </signature>
return new String();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.ActivitySensor = ActivitySensor;
ActivitySensorReading = (function () {
var cls = function ActivitySensorReading() {
this.activity = new ActivityType();
this.confidence = new ActivitySensorReadingConfidence();
this.timestamp = new Date();
};
return cls;
}) ();
exports.ActivitySensorReading = ActivitySensorReading;
ActivitySensorReadingChangedEventArgs = (function () {
var cls = function ActivitySensorReadingChangedEventArgs() {
this.reading = new ActivitySensorReading();
};
return cls;
}) ();
exports.ActivitySensorReadingChangedEventArgs = ActivitySensorReadingChangedEventArgs;
ActivitySensorReadingChangeReport = (function () {
var cls = function ActivitySensorReadingChangeReport() {
this.reading = new ActivitySensorReading();
};
return cls;
}) ();
exports.ActivitySensorReadingChangeReport = ActivitySensorReadingChangeReport;
ActivitySensorTriggerDetails = (function () {
var cls = function ActivitySensorTriggerDetails() {
};
cls.prototype.readReports = function readReports() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.ActivitySensorTriggerDetails = ActivitySensorTriggerDetails;
Barometer = (function () {
var cls = function Barometer() {
this.reportInterval = new Number();
this.deviceId = new String();
this.minimumReportInterval = new Number();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="BarometerReading" />
/// </signature>
return new BarometerReading();
}
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Barometer" />
/// </signature>
return new Barometer();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.Barometer = Barometer;
BarometerReading = (function () {
var cls = function BarometerReading() {
this.stationPressureInHectopascals = new Number();
this.timestamp = new Date();
};
return cls;
}) ();
exports.BarometerReading = BarometerReading;
BarometerReadingChangedEventArgs = (function () {
var cls = function BarometerReadingChangedEventArgs() {
this.reading = new BarometerReading();
};
return cls;
}) ();
exports.BarometerReadingChangedEventArgs = BarometerReadingChangedEventArgs;
PedometerReading = (function () {
var cls = function PedometerReading() {
this.cumulativeSteps = new Number();
this.cumulativeStepsDuration = new Number();
this.stepKind = new PedometerStepKind();
this.timestamp = new Date();
};
return cls;
}) ();
exports.PedometerReading = PedometerReading;
Pedometer = (function () {
var cls = function Pedometer() {
this.reportInterval = new Number();
this.deviceId = new String();
this.minimumReportInterval = new Number();
this.powerInMilliwatts = new Number();
};
cls.prototype.getCurrentReadings = function getCurrentReadings() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Object" />
/// </signature>
return new Object();
}
cls.fromIdAsync = function fromIdAsync(deviceId, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="deviceId" type="String">A param.</param>
/// </signature>
}
cls.getDefaultAsync = function getDefaultAsync(callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// </signature>
}
cls.getSystemHistoryAsync = function getSystemHistoryAsync(fromTime, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="fromTime" type="Date">A param.</param>
/// </signature>
}
cls.getSystemHistoryAsync = function getSystemHistoryAsync(fromTime, duration, callback) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="fromTime" type="Date">A param.</param>
/// <param name="duration" type="Number">A param.</param>
/// </signature>
}
cls.getReadingsFromTriggerDetails = function getReadingsFromTriggerDetails(triggerDetails) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="triggerDetails" type="SensorDataThresholdTriggerDetails">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
cls.getDeviceSelector = function getDeviceSelector() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="String" />
/// </signature>
return new String();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.Pedometer = Pedometer;
PedometerReadingChangedEventArgs = (function () {
var cls = function PedometerReadingChangedEventArgs() {
this.reading = new PedometerReading();
};
return cls;
}) ();
exports.PedometerReadingChangedEventArgs = PedometerReadingChangedEventArgs;
PedometerDataThreshold = (function () {
var cls = function PedometerDataThreshold() {
};
var cls = function PedometerDataThreshold(sensor, stepGoal) {
};
return cls;
}) ();
exports.PedometerDataThreshold = PedometerDataThreshold;
ProximitySensor = (function () {
var cls = function ProximitySensor() {
this.deviceId = new String();
this.maxDistanceInMillimeters = new Number();
this.minDistanceInMillimeters = new Number();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="ProximitySensorReading" />
/// </signature>
return new ProximitySensorReading();
}
cls.prototype.createDisplayOnOffController = function createDisplayOnOffController() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="ProximitySensorDisplayOnOffController" />
/// </signature>
return new ProximitySensorDisplayOnOffController();
}
cls.getReadingsFromTriggerDetails = function getReadingsFromTriggerDetails(triggerDetails) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="triggerDetails" type="SensorDataThresholdTriggerDetails">A param.</param>
/// <returns type="Object" />
/// </signature>
return new Object();
}
cls.getDeviceSelector = function getDeviceSelector() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="String" />
/// </signature>
return new String();
}
cls.fromId = function fromId(sensorId) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="sensorId" type="String">A param.</param>
/// <returns type="ProximitySensor" />
/// </signature>
return new ProximitySensor();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.ProximitySensor = ProximitySensor;
ProximitySensorReading = (function () {
var cls = function ProximitySensorReading() {
this.distanceInMillimeters = new Number();
this.isDetected = new Boolean();
this.timestamp = new Date();
};
return cls;
}) ();
exports.ProximitySensorReading = ProximitySensorReading;
ProximitySensorReadingChangedEventArgs = (function () {
var cls = function ProximitySensorReadingChangedEventArgs() {
this.reading = new ProximitySensorReading();
};
return cls;
}) ();
exports.ProximitySensorReadingChangedEventArgs = ProximitySensorReadingChangedEventArgs;
ProximitySensorDisplayOnOffController = (function () {
var cls = function ProximitySensorDisplayOnOffController() {
};
cls.prototype.close = function close() {
}
return cls;
}) ();
exports.ProximitySensorDisplayOnOffController = ProximitySensorDisplayOnOffController;
ProximitySensorDataThreshold = (function () {
var cls = function ProximitySensorDataThreshold() {
};
var cls = function ProximitySensorDataThreshold(sensor) {
};
return cls;
}) ();
exports.ProximitySensorDataThreshold = ProximitySensorDataThreshold;
Altimeter = (function () {
var cls = function Altimeter() {
this.reportInterval = new Number();
this.deviceId = new String();
this.minimumReportInterval = new Number();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="AltimeterReading" />
/// </signature>
return new AltimeterReading();
}
cls.getDefault = function getDefault() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Altimeter" />
/// </signature>
return new Altimeter();
}
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.Altimeter = Altimeter;
AltimeterReading = (function () {
var cls = function AltimeterReading() {
this.altitudeChangeInMeters = new Number();
this.timestamp = new Date();
};
return cls;
}) ();
exports.AltimeterReading = AltimeterReading;
AltimeterReadingChangedEventArgs = (function () {
var cls = function AltimeterReadingChangedEventArgs() {
this.reading = new AltimeterReading();
};
return cls;
}) ();
exports.AltimeterReadingChangedEventArgs = AltimeterReadingChangedEventArgs;