UNPKG

@nodert-win10-cu/windows.devices.lights

Version:

Use the Windows.Devices.Lights UWP API directly from Node.js

68 lines (48 loc) 1.62 kB
Color = (function () { var cls = function Color() { }; return cls; }) (); exports.Color = Color; Lamp = (function () { var cls = function Lamp() { this.isEnabled = new Boolean(); this.color = new Object(); this.brightnessLevel = new Number(); this.deviceId = new String(); this.isColorSettable = new Boolean(); }; cls.prototype.close = function close() { } 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.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.Lamp = Lamp; LampAvailabilityChangedEventArgs = (function () { var cls = function LampAvailabilityChangedEventArgs() { this.isAvailable = new Boolean(); }; return cls; }) (); exports.LampAvailabilityChangedEventArgs = LampAvailabilityChangedEventArgs;