blob: ad1c614d1e181dfac4a1642d7cca70f83e0a2654 [file] [log] [blame]
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Generated from Web IDL definitions.
import 'dart:js_interop';
import 'generic_sensor.dart';
@JS('AmbientLightSensor')
@staticInterop
class AmbientLightSensor implements Sensor {
external factory AmbientLightSensor([SensorOptions sensorOptions]);
}
extension AmbientLightSensorExtension on AmbientLightSensor {
external num? get illuminance;
}
@JS()
@staticInterop
@anonymous
class AmbientLightReadingValues {
external factory AmbientLightReadingValues({required num? illuminance});
}
extension AmbientLightReadingValuesExtension on AmbientLightReadingValues {
external set illuminance(num? value);
external num? get illuminance;
}