Merge pull request #18220 from unoplatform/dev/mazi/controller-is-supported

This commit is contained in:
Martin Zikmund 2024-09-17 16:04:47 +02:00 коммит произвёл GitHub
Родитель 79875195c9 3fc8f7e4ef
Коммит e4d13bca6d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
4 изменённых файлов: 36 добавлений и 4 удалений

Просмотреть файл

@ -0,0 +1,16 @@
using System;
namespace Microsoft.UI.Composition.SystemBackdrops;
public partial class DesktopAcrylicController
#if HAS_UNO_WINUI
: ISystemBackdropController, IDisposable, ISystemBackdropControllerWithTargets, IClosableNotifier
#endif
{
/// <summary>
/// Determines whether the acrylic material is supported on the current operating system.
/// </summary>
/// <remarks>Currently returns false on all targets except for WinUI.</remarks>
/// <returns>True if the acrylic material is supported on the current operating system; otherwise, false.</returns>
public static bool IsSupported() => false;
}

Просмотреть файл

@ -0,0 +1,16 @@
using System;
namespace Microsoft.UI.Composition.SystemBackdrops;
public partial class MicaController
#if HAS_UNO_WINUI
: ISystemBackdropController, IDisposable, ISystemBackdropControllerWithTargets, IClosableNotifier
#endif
{
/// <summary>
/// Determines whether the mica material is supported on the current operating system.
/// </summary>
/// <remarks>Currently returns false on all targets except for WinUI.</remarks>
/// <returns>True if the mica material is supported on the current operating system; otherwise, false.</returns>
public static bool IsSupported() => false;
}

Просмотреть файл

@ -3,7 +3,7 @@
#pragma warning disable 114 // new keyword hiding
namespace Microsoft.UI.Composition.SystemBackdrops
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented]
#endif
public partial class DesktopAcrylicController : global::Microsoft.UI.Composition.SystemBackdrops.ISystemBackdropController, global::System.IDisposable, global::Microsoft.UI.Composition.SystemBackdrops.ISystemBackdropControllerWithTargets, global::Microsoft.UI.IClosableNotifier
@ -180,7 +180,7 @@ namespace Microsoft.UI.Composition.SystemBackdrops
}
#endif
// Forced skipping of method Microsoft.UI.Composition.SystemBackdrops.DesktopAcrylicController.DesktopAcrylicController()
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "IS_UNIT_TESTS", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")]
public static bool IsSupported()
{

Просмотреть файл

@ -3,7 +3,7 @@
#pragma warning disable 114 // new keyword hiding
namespace Microsoft.UI.Composition.SystemBackdrops
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented]
#endif
public partial class MicaController : global::Microsoft.UI.Composition.SystemBackdrops.ISystemBackdropController, global::System.IDisposable, global::Microsoft.UI.Composition.SystemBackdrops.ISystemBackdropControllerWithTargets, global::Microsoft.UI.IClosableNotifier
@ -180,7 +180,7 @@ namespace Microsoft.UI.Composition.SystemBackdrops
}
#endif
// Forced skipping of method Microsoft.UI.Composition.SystemBackdrops.MicaController.MicaController()
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "IS_UNIT_TESTS", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")]
public static bool IsSupported()
{