// C++/WinRT v2.0.250303.1 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_Devices_Sensors_2_H #define WINRT_Windows_Devices_Sensors_2_H #include "winrt/impl/Windows.Foundation.1.h" #include "winrt/impl/Windows.Devices.Sensors.1.h" WINRT_EXPORT namespace winrt::Windows::Devices::Sensors { struct LightSensorChromaticity { double X {}; double Y {}; }; inline bool operator==(LightSensorChromaticity const& left, LightSensorChromaticity const& right) noexcept { return left.X == right.X && left.Y == right.Y; } inline bool operator!=(LightSensorChromaticity const& left, LightSensorChromaticity const& right) noexcept { return !(left == right); } struct WINRT_IMPL_EMPTY_BASES Accelerometer : winrt::Windows::Devices::Sensors::IAccelerometer, impl::require { Accelerometer(std::nullptr_t) noexcept {} Accelerometer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IAccelerometer(ptr, take_ownership_from_abi) {} static auto GetDefault(); static auto GetDefault(winrt::Windows::Devices::Sensors::AccelerometerReadingType const& readingType); static auto FromIdAsync(param::hstring const& deviceId); static auto GetDeviceSelector(winrt::Windows::Devices::Sensors::AccelerometerReadingType const& readingType); }; struct WINRT_IMPL_EMPTY_BASES AccelerometerDataThreshold : winrt::Windows::Devices::Sensors::IAccelerometerDataThreshold { AccelerometerDataThreshold(std::nullptr_t) noexcept {} AccelerometerDataThreshold(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IAccelerometerDataThreshold(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES AccelerometerReading : winrt::Windows::Devices::Sensors::IAccelerometerReading, impl::require { AccelerometerReading(std::nullptr_t) noexcept {} AccelerometerReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IAccelerometerReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES AccelerometerReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IAccelerometerReadingChangedEventArgs { AccelerometerReadingChangedEventArgs(std::nullptr_t) noexcept {} AccelerometerReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IAccelerometerReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES AccelerometerShakenEventArgs : winrt::Windows::Devices::Sensors::IAccelerometerShakenEventArgs { AccelerometerShakenEventArgs(std::nullptr_t) noexcept {} AccelerometerShakenEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IAccelerometerShakenEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ActivitySensor : winrt::Windows::Devices::Sensors::IActivitySensor { ActivitySensor(std::nullptr_t) noexcept {} ActivitySensor(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IActivitySensor(ptr, take_ownership_from_abi) {} static auto GetDefaultAsync(); static auto GetDeviceSelector(); static auto FromIdAsync(param::hstring const& deviceId); static auto GetSystemHistoryAsync(winrt::Windows::Foundation::DateTime const& fromTime); static auto GetSystemHistoryAsync(winrt::Windows::Foundation::DateTime const& fromTime, winrt::Windows::Foundation::TimeSpan const& duration); }; struct WINRT_IMPL_EMPTY_BASES ActivitySensorReading : winrt::Windows::Devices::Sensors::IActivitySensorReading { ActivitySensorReading(std::nullptr_t) noexcept {} ActivitySensorReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IActivitySensorReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ActivitySensorReadingChangeReport : winrt::Windows::Devices::Sensors::IActivitySensorReadingChangeReport { ActivitySensorReadingChangeReport(std::nullptr_t) noexcept {} ActivitySensorReadingChangeReport(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IActivitySensorReadingChangeReport(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ActivitySensorReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IActivitySensorReadingChangedEventArgs { ActivitySensorReadingChangedEventArgs(std::nullptr_t) noexcept {} ActivitySensorReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IActivitySensorReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ActivitySensorTriggerDetails : winrt::Windows::Devices::Sensors::IActivitySensorTriggerDetails { ActivitySensorTriggerDetails(std::nullptr_t) noexcept {} ActivitySensorTriggerDetails(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IActivitySensorTriggerDetails(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES AdaptiveDimmingOptions : winrt::Windows::Devices::Sensors::IAdaptiveDimmingOptions { AdaptiveDimmingOptions(std::nullptr_t) noexcept {} AdaptiveDimmingOptions(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IAdaptiveDimmingOptions(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES Altimeter : winrt::Windows::Devices::Sensors::IAltimeter, impl::require { Altimeter(std::nullptr_t) noexcept {} Altimeter(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IAltimeter(ptr, take_ownership_from_abi) {} static auto GetDefault(); }; struct WINRT_IMPL_EMPTY_BASES AltimeterReading : winrt::Windows::Devices::Sensors::IAltimeterReading, impl::require { AltimeterReading(std::nullptr_t) noexcept {} AltimeterReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IAltimeterReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES AltimeterReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IAltimeterReadingChangedEventArgs { AltimeterReadingChangedEventArgs(std::nullptr_t) noexcept {} AltimeterReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IAltimeterReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES Barometer : winrt::Windows::Devices::Sensors::IBarometer, impl::require { Barometer(std::nullptr_t) noexcept {} Barometer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IBarometer(ptr, take_ownership_from_abi) {} static auto GetDefault(); static auto FromIdAsync(param::hstring const& deviceId); static auto GetDeviceSelector(); }; struct WINRT_IMPL_EMPTY_BASES BarometerDataThreshold : winrt::Windows::Devices::Sensors::IBarometerDataThreshold { BarometerDataThreshold(std::nullptr_t) noexcept {} BarometerDataThreshold(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IBarometerDataThreshold(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES BarometerReading : winrt::Windows::Devices::Sensors::IBarometerReading, impl::require { BarometerReading(std::nullptr_t) noexcept {} BarometerReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IBarometerReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES BarometerReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IBarometerReadingChangedEventArgs { BarometerReadingChangedEventArgs(std::nullptr_t) noexcept {} BarometerReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IBarometerReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES Compass : winrt::Windows::Devices::Sensors::ICompass, impl::require { Compass(std::nullptr_t) noexcept {} Compass(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ICompass(ptr, take_ownership_from_abi) {} static auto GetDefault(); static auto GetDeviceSelector(); static auto FromIdAsync(param::hstring const& deviceId); }; struct WINRT_IMPL_EMPTY_BASES CompassDataThreshold : winrt::Windows::Devices::Sensors::ICompassDataThreshold { CompassDataThreshold(std::nullptr_t) noexcept {} CompassDataThreshold(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ICompassDataThreshold(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES CompassReading : winrt::Windows::Devices::Sensors::ICompassReading, impl::require { CompassReading(std::nullptr_t) noexcept {} CompassReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ICompassReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES CompassReadingChangedEventArgs : winrt::Windows::Devices::Sensors::ICompassReadingChangedEventArgs { CompassReadingChangedEventArgs(std::nullptr_t) noexcept {} CompassReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ICompassReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES DetectedPerson : winrt::Windows::Devices::Sensors::IDetectedPerson { DetectedPerson(std::nullptr_t) noexcept {} DetectedPerson(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IDetectedPerson(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES Gyrometer : winrt::Windows::Devices::Sensors::IGyrometer, impl::require { Gyrometer(std::nullptr_t) noexcept {} Gyrometer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IGyrometer(ptr, take_ownership_from_abi) {} static auto GetDefault(); static auto GetDeviceSelector(); static auto FromIdAsync(param::hstring const& deviceId); }; struct WINRT_IMPL_EMPTY_BASES GyrometerDataThreshold : winrt::Windows::Devices::Sensors::IGyrometerDataThreshold { GyrometerDataThreshold(std::nullptr_t) noexcept {} GyrometerDataThreshold(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IGyrometerDataThreshold(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES GyrometerReading : winrt::Windows::Devices::Sensors::IGyrometerReading, impl::require { GyrometerReading(std::nullptr_t) noexcept {} GyrometerReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IGyrometerReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES GyrometerReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IGyrometerReadingChangedEventArgs { GyrometerReadingChangedEventArgs(std::nullptr_t) noexcept {} GyrometerReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IGyrometerReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES HeadOrientation : winrt::Windows::Devices::Sensors::IHeadOrientation { HeadOrientation(std::nullptr_t) noexcept {} HeadOrientation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IHeadOrientation(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES HeadPosition : winrt::Windows::Devices::Sensors::IHeadPosition { HeadPosition(std::nullptr_t) noexcept {} HeadPosition(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IHeadPosition(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES HingeAngleReading : winrt::Windows::Devices::Sensors::IHingeAngleReading { HingeAngleReading(std::nullptr_t) noexcept {} HingeAngleReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IHingeAngleReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES HingeAngleSensor : winrt::Windows::Devices::Sensors::IHingeAngleSensor { HingeAngleSensor(std::nullptr_t) noexcept {} HingeAngleSensor(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IHingeAngleSensor(ptr, take_ownership_from_abi) {} static auto GetDeviceSelector(); static auto GetDefaultAsync(); static auto GetRelatedToAdjacentPanelsAsync(param::hstring const& firstPanelId, param::hstring const& secondPanelId); static auto FromIdAsync(param::hstring const& deviceId); }; struct WINRT_IMPL_EMPTY_BASES HingeAngleSensorReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IHingeAngleSensorReadingChangedEventArgs { HingeAngleSensorReadingChangedEventArgs(std::nullptr_t) noexcept {} HingeAngleSensorReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IHingeAngleSensorReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES HumanPresenceFeatures : winrt::Windows::Devices::Sensors::IHumanPresenceFeatures, impl::require { HumanPresenceFeatures(std::nullptr_t) noexcept {} HumanPresenceFeatures(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IHumanPresenceFeatures(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES HumanPresenceSensor : winrt::Windows::Devices::Sensors::IHumanPresenceSensor, impl::require { HumanPresenceSensor(std::nullptr_t) noexcept {} HumanPresenceSensor(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IHumanPresenceSensor(ptr, take_ownership_from_abi) {} static auto GetDeviceSelector(); static auto FromIdAsync(param::hstring const& sensorId); static auto GetDefaultAsync(); static auto FromId(param::hstring const& sensorId); static auto GetDefault(); }; struct WINRT_IMPL_EMPTY_BASES HumanPresenceSensorReading : winrt::Windows::Devices::Sensors::IHumanPresenceSensorReading, impl::require { HumanPresenceSensorReading(std::nullptr_t) noexcept {} HumanPresenceSensorReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IHumanPresenceSensorReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES HumanPresenceSensorReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IHumanPresenceSensorReadingChangedEventArgs { HumanPresenceSensorReadingChangedEventArgs(std::nullptr_t) noexcept {} HumanPresenceSensorReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IHumanPresenceSensorReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES HumanPresenceSensorReadingUpdate : winrt::Windows::Devices::Sensors::IHumanPresenceSensorReadingUpdate, impl::require { HumanPresenceSensorReadingUpdate(std::nullptr_t) noexcept {} HumanPresenceSensorReadingUpdate(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IHumanPresenceSensorReadingUpdate(ptr, take_ownership_from_abi) {} HumanPresenceSensorReadingUpdate(); }; struct WINRT_IMPL_EMPTY_BASES HumanPresenceSettings : winrt::Windows::Devices::Sensors::IHumanPresenceSettings, impl::require { HumanPresenceSettings(std::nullptr_t) noexcept {} HumanPresenceSettings(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IHumanPresenceSettings(ptr, take_ownership_from_abi) {} static auto GetCurrentSettingsAsync(); static auto GetCurrentSettings(); static auto UpdateSettingsAsync(winrt::Windows::Devices::Sensors::HumanPresenceSettings const& settings); static auto UpdateSettings(winrt::Windows::Devices::Sensors::HumanPresenceSettings const& settings); static auto GetSupportedFeaturesForSensorIdAsync(param::hstring const& sensorId); static auto GetSupportedFeaturesForSensorId(param::hstring const& sensorId); static auto GetSupportedLockOnLeaveTimeouts(); static auto SettingsChanged(winrt::Windows::Foundation::EventHandler const& handler); using SettingsChanged_revoker = impl::factory_event_revoker::remove_SettingsChanged>; [[nodiscard]] static auto SettingsChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler); static auto SettingsChanged(winrt::event_token const& token); }; struct WINRT_IMPL_EMPTY_BASES Inclinometer : winrt::Windows::Devices::Sensors::IInclinometer, impl::require { Inclinometer(std::nullptr_t) noexcept {} Inclinometer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IInclinometer(ptr, take_ownership_from_abi) {} static auto GetDefault(); static auto GetDefaultForRelativeReadings(); static auto GetDefault(winrt::Windows::Devices::Sensors::SensorReadingType const& sensorReadingtype); static auto GetDeviceSelector(winrt::Windows::Devices::Sensors::SensorReadingType const& readingType); static auto FromIdAsync(param::hstring const& deviceId); }; struct WINRT_IMPL_EMPTY_BASES InclinometerDataThreshold : winrt::Windows::Devices::Sensors::IInclinometerDataThreshold { InclinometerDataThreshold(std::nullptr_t) noexcept {} InclinometerDataThreshold(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IInclinometerDataThreshold(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES InclinometerReading : winrt::Windows::Devices::Sensors::IInclinometerReading, impl::require { InclinometerReading(std::nullptr_t) noexcept {} InclinometerReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IInclinometerReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES InclinometerReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IInclinometerReadingChangedEventArgs { InclinometerReadingChangedEventArgs(std::nullptr_t) noexcept {} InclinometerReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IInclinometerReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES LightSensor : winrt::Windows::Devices::Sensors::ILightSensor, impl::require { LightSensor(std::nullptr_t) noexcept {} LightSensor(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ILightSensor(ptr, take_ownership_from_abi) {} static auto GetDefault(); static auto GetDeviceSelector(); static auto FromIdAsync(param::hstring const& deviceId); }; struct WINRT_IMPL_EMPTY_BASES LightSensorDataThreshold : winrt::Windows::Devices::Sensors::ILightSensorDataThreshold, impl::require { LightSensorDataThreshold(std::nullptr_t) noexcept {} LightSensorDataThreshold(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ILightSensorDataThreshold(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES LightSensorReading : winrt::Windows::Devices::Sensors::ILightSensorReading, impl::require { LightSensorReading(std::nullptr_t) noexcept {} LightSensorReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ILightSensorReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES LightSensorReadingChangedEventArgs : winrt::Windows::Devices::Sensors::ILightSensorReadingChangedEventArgs { LightSensorReadingChangedEventArgs(std::nullptr_t) noexcept {} LightSensorReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ILightSensorReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES LockOnLeaveOptions : winrt::Windows::Devices::Sensors::ILockOnLeaveOptions { LockOnLeaveOptions(std::nullptr_t) noexcept {} LockOnLeaveOptions(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ILockOnLeaveOptions(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES Magnetometer : winrt::Windows::Devices::Sensors::IMagnetometer, impl::require { Magnetometer(std::nullptr_t) noexcept {} Magnetometer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IMagnetometer(ptr, take_ownership_from_abi) {} static auto GetDefault(); static auto GetDeviceSelector(); static auto FromIdAsync(param::hstring const& deviceId); }; struct WINRT_IMPL_EMPTY_BASES MagnetometerDataThreshold : winrt::Windows::Devices::Sensors::IMagnetometerDataThreshold { MagnetometerDataThreshold(std::nullptr_t) noexcept {} MagnetometerDataThreshold(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IMagnetometerDataThreshold(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES MagnetometerReading : winrt::Windows::Devices::Sensors::IMagnetometerReading, impl::require { MagnetometerReading(std::nullptr_t) noexcept {} MagnetometerReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IMagnetometerReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES MagnetometerReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IMagnetometerReadingChangedEventArgs { MagnetometerReadingChangedEventArgs(std::nullptr_t) noexcept {} MagnetometerReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IMagnetometerReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES OnlookerDetectionOptions : winrt::Windows::Devices::Sensors::IOnlookerDetectionOptions { OnlookerDetectionOptions(std::nullptr_t) noexcept {} OnlookerDetectionOptions(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IOnlookerDetectionOptions(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES OrientationSensor : winrt::Windows::Devices::Sensors::IOrientationSensor, impl::require { OrientationSensor(std::nullptr_t) noexcept {} OrientationSensor(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IOrientationSensor(ptr, take_ownership_from_abi) {} static auto GetDefault(); static auto GetDefaultForRelativeReadings(); static auto GetDefault(winrt::Windows::Devices::Sensors::SensorReadingType const& sensorReadingtype); static auto GetDefault(winrt::Windows::Devices::Sensors::SensorReadingType const& sensorReadingType, winrt::Windows::Devices::Sensors::SensorOptimizationGoal const& optimizationGoal); static auto GetDeviceSelector(winrt::Windows::Devices::Sensors::SensorReadingType const& readingType); static auto GetDeviceSelector(winrt::Windows::Devices::Sensors::SensorReadingType const& readingType, winrt::Windows::Devices::Sensors::SensorOptimizationGoal const& optimizationGoal); static auto FromIdAsync(param::hstring const& deviceId); }; struct WINRT_IMPL_EMPTY_BASES OrientationSensorReading : winrt::Windows::Devices::Sensors::IOrientationSensorReading, impl::require { OrientationSensorReading(std::nullptr_t) noexcept {} OrientationSensorReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IOrientationSensorReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES OrientationSensorReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IOrientationSensorReadingChangedEventArgs { OrientationSensorReadingChangedEventArgs(std::nullptr_t) noexcept {} OrientationSensorReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IOrientationSensorReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES Pedometer : winrt::Windows::Devices::Sensors::IPedometer, impl::require { Pedometer(std::nullptr_t) noexcept {} Pedometer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IPedometer(ptr, take_ownership_from_abi) {} static auto FromIdAsync(param::hstring const& deviceId); static auto GetDefaultAsync(); static auto GetDeviceSelector(); static auto GetSystemHistoryAsync(winrt::Windows::Foundation::DateTime const& fromTime); static auto GetSystemHistoryAsync(winrt::Windows::Foundation::DateTime const& fromTime, winrt::Windows::Foundation::TimeSpan const& duration); static auto GetReadingsFromTriggerDetails(winrt::Windows::Devices::Sensors::SensorDataThresholdTriggerDetails const& triggerDetails); }; struct WINRT_IMPL_EMPTY_BASES PedometerDataThreshold : winrt::Windows::Devices::Sensors::ISensorDataThreshold { PedometerDataThreshold(std::nullptr_t) noexcept {} PedometerDataThreshold(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ISensorDataThreshold(ptr, take_ownership_from_abi) {} PedometerDataThreshold(winrt::Windows::Devices::Sensors::Pedometer const& sensor, int32_t stepGoal); }; struct WINRT_IMPL_EMPTY_BASES PedometerReading : winrt::Windows::Devices::Sensors::IPedometerReading { PedometerReading(std::nullptr_t) noexcept {} PedometerReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IPedometerReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES PedometerReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IPedometerReadingChangedEventArgs { PedometerReadingChangedEventArgs(std::nullptr_t) noexcept {} PedometerReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IPedometerReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ProximitySensor : winrt::Windows::Devices::Sensors::IProximitySensor { ProximitySensor(std::nullptr_t) noexcept {} ProximitySensor(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IProximitySensor(ptr, take_ownership_from_abi) {} static auto GetDeviceSelector(); static auto FromId(param::hstring const& sensorId); static auto GetReadingsFromTriggerDetails(winrt::Windows::Devices::Sensors::SensorDataThresholdTriggerDetails const& triggerDetails); }; struct WINRT_IMPL_EMPTY_BASES ProximitySensorDataThreshold : winrt::Windows::Devices::Sensors::ISensorDataThreshold { ProximitySensorDataThreshold(std::nullptr_t) noexcept {} ProximitySensorDataThreshold(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ISensorDataThreshold(ptr, take_ownership_from_abi) {} explicit ProximitySensorDataThreshold(winrt::Windows::Devices::Sensors::ProximitySensor const& sensor); }; struct WINRT_IMPL_EMPTY_BASES ProximitySensorDisplayOnOffController : winrt::Windows::Foundation::IClosable { ProximitySensorDisplayOnOffController(std::nullptr_t) noexcept {} ProximitySensorDisplayOnOffController(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IClosable(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ProximitySensorReading : winrt::Windows::Devices::Sensors::IProximitySensorReading { ProximitySensorReading(std::nullptr_t) noexcept {} ProximitySensorReading(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IProximitySensorReading(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES ProximitySensorReadingChangedEventArgs : winrt::Windows::Devices::Sensors::IProximitySensorReadingChangedEventArgs { ProximitySensorReadingChangedEventArgs(std::nullptr_t) noexcept {} ProximitySensorReadingChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IProximitySensorReadingChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES SensorDataThresholdTriggerDetails : winrt::Windows::Devices::Sensors::ISensorDataThresholdTriggerDetails { SensorDataThresholdTriggerDetails(std::nullptr_t) noexcept {} SensorDataThresholdTriggerDetails(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ISensorDataThresholdTriggerDetails(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES SensorQuaternion : winrt::Windows::Devices::Sensors::ISensorQuaternion { SensorQuaternion(std::nullptr_t) noexcept {} SensorQuaternion(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ISensorQuaternion(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES SensorRotationMatrix : winrt::Windows::Devices::Sensors::ISensorRotationMatrix { SensorRotationMatrix(std::nullptr_t) noexcept {} SensorRotationMatrix(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ISensorRotationMatrix(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES SimpleOrientationSensor : winrt::Windows::Devices::Sensors::ISimpleOrientationSensor, impl::require { SimpleOrientationSensor(std::nullptr_t) noexcept {} SimpleOrientationSensor(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ISimpleOrientationSensor(ptr, take_ownership_from_abi) {} static auto GetDefault(); static auto GetDeviceSelector(); static auto FromIdAsync(param::hstring const& deviceId); }; struct WINRT_IMPL_EMPTY_BASES SimpleOrientationSensorOrientationChangedEventArgs : winrt::Windows::Devices::Sensors::ISimpleOrientationSensorOrientationChangedEventArgs { SimpleOrientationSensorOrientationChangedEventArgs(std::nullptr_t) noexcept {} SimpleOrientationSensorOrientationChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::ISimpleOrientationSensorOrientationChangedEventArgs(ptr, take_ownership_from_abi) {} }; struct WINRT_IMPL_EMPTY_BASES WakeOnApproachOptions : winrt::Windows::Devices::Sensors::IWakeOnApproachOptions { WakeOnApproachOptions(std::nullptr_t) noexcept {} WakeOnApproachOptions(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sensors::IWakeOnApproachOptions(ptr, take_ownership_from_abi) {} }; } #endif