mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Latest update for winrt
PiperOrigin-RevId: 452591835
This commit is contained in:
committed by
Copybara-Service
parent
11558b453c
commit
28da839987
+12
-17
@@ -1,4 +1,4 @@
|
||||
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14
|
||||
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
|
||||
|
||||
#pragma once
|
||||
#ifndef WINRT_Windows_Devices_Radios_0_H
|
||||
@@ -6,13 +6,8 @@
|
||||
WINRT_EXPORT namespace winrt::Windows::Foundation
|
||||
{
|
||||
struct EventRegistrationToken;
|
||||
template <typename TResult> struct __declspec(empty_bases) IAsyncOperation;
|
||||
template <typename TSender, typename TResult> struct __declspec(empty_bases) TypedEventHandler;
|
||||
}
|
||||
WINRT_EXPORT namespace winrt::Windows::Foundation::Collections
|
||||
{
|
||||
template <typename T> struct __declspec(empty_bases) IVectorView;
|
||||
}
|
||||
WINRT_EXPORT namespace winrt::Windows::Devices::Radios
|
||||
{
|
||||
enum class RadioAccessStatus : int32_t
|
||||
@@ -83,14 +78,14 @@ namespace winrt::impl
|
||||
template <typename D>
|
||||
struct consume_Windows_Devices_Radios_IRadio
|
||||
{
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Devices::Radios::RadioAccessStatus>) SetStateAsync(winrt::Windows::Devices::Radios::RadioState const& value) const;
|
||||
WINRT_IMPL_AUTO(winrt::event_token) StateChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Radios::Radio, winrt::Windows::Foundation::IInspectable> const& handler) const;
|
||||
auto SetStateAsync(winrt::Windows::Devices::Radios::RadioState const& value) const;
|
||||
auto StateChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Radios::Radio, winrt::Windows::Foundation::IInspectable> const& handler) const;
|
||||
using StateChanged_revoker = impl::event_revoker<winrt::Windows::Devices::Radios::IRadio, &impl::abi_t<winrt::Windows::Devices::Radios::IRadio>::remove_StateChanged>;
|
||||
[[nodiscard]] StateChanged_revoker StateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Radios::Radio, winrt::Windows::Foundation::IInspectable> const& handler) const;
|
||||
WINRT_IMPL_AUTO(void) StateChanged(winrt::event_token const& eventCookie) const noexcept;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Radios::RadioState) State() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Name() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Radios::RadioKind) Kind() const;
|
||||
[[nodiscard]] auto StateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Devices::Radios::Radio, winrt::Windows::Foundation::IInspectable> const& handler) const;
|
||||
auto StateChanged(winrt::event_token const& eventCookie) const noexcept;
|
||||
[[nodiscard]] auto State() const;
|
||||
[[nodiscard]] auto Name() const;
|
||||
[[nodiscard]] auto Kind() const;
|
||||
};
|
||||
template <> struct consume<winrt::Windows::Devices::Radios::IRadio>
|
||||
{
|
||||
@@ -99,10 +94,10 @@ namespace winrt::impl
|
||||
template <typename D>
|
||||
struct consume_Windows_Devices_Radios_IRadioStatics
|
||||
{
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Devices::Radios::Radio>>) GetRadiosAsync() const;
|
||||
WINRT_IMPL_AUTO(hstring) GetDeviceSelector() const;
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Devices::Radios::Radio>) FromIdAsync(param::hstring const& deviceId) const;
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Devices::Radios::RadioAccessStatus>) RequestAccessAsync() const;
|
||||
auto GetRadiosAsync() const;
|
||||
auto GetDeviceSelector() const;
|
||||
auto FromIdAsync(param::hstring const& deviceId) const;
|
||||
auto RequestAccessAsync() const;
|
||||
};
|
||||
template <> struct consume<winrt::Windows::Devices::Radios::IRadioStatics>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user