-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87feae3
commit 23220b2
Showing
11 changed files
with
184 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.Versioning; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Metadata; | ||
|
||
namespace MicaForUWP.Helpers | ||
{ | ||
/// <summary> | ||
/// Gets information about the availability of Windows Runtime APIs. | ||
/// </summary> | ||
#if NET | ||
[SupportedOSPlatform("Windows10.0.10240.0")] | ||
#endif | ||
[ContractVersion(typeof(FoundationContract), 0x10000u)] | ||
public static class ApiInfoHelper | ||
{ | ||
#region Properties | ||
|
||
/// <summary> | ||
/// Gets is <see cref="Windows.UI.Core.CoreWindow.ActivationMode"/> supported. | ||
/// </summary> | ||
#if NET | ||
[SupportedOSPlatformGuard("Windows10.0.16299.0")] | ||
#endif | ||
public static bool IsActivationModeSupported { get; } = ApiInformation.IsPropertyPresent("Windows.UI.Core.CoreWindow", "ActivationMode"); | ||
|
||
#endregion | ||
|
||
#region Methods | ||
|
||
/// <summary> | ||
/// Gets is <see cref="Windows.UI.Composition.Compositor.CreateBackdropBrush"/> supported. | ||
/// </summary> | ||
#if NET | ||
[SupportedOSPlatformGuard("Windows10.0.14393.0")] | ||
#endif | ||
public static bool IsCreateBackdropBrushSupported { get; } = ApiInformation.IsMethodPresent("Windows.UI.Composition.Compositor", "CreateBackdropBrush"); | ||
|
||
/// <summary> | ||
/// Gets is <see cref="Windows.UI.Composition.Compositor.CreateHostBackdropBrush"/> supported. | ||
/// </summary> | ||
#if NET | ||
[SupportedOSPlatformGuard("Windows10.0.15063.0")] | ||
#endif | ||
public static bool IsCreateHostBackdropBrushSupported { get; } = ApiInformation.IsMethodPresent("Windows.UI.Composition.Compositor", "CreateHostBackdropBrush"); | ||
|
||
/// <summary> | ||
/// Gets is <see cref="Windows.UI.Composition.Compositor.TryCreateBlurredWallpaperBackdropBrush"/> supported. | ||
/// </summary> | ||
#if NET | ||
[SupportedOSPlatformGuard("Windows10.0.22000.0")] | ||
#endif | ||
public static bool IsTryCreateBlurredWallpaperBackdropBrushSupported { get; } = ApiInformation.IsMethodPresent("Windows.UI.Composition.Compositor", "TryCreateBlurredWallpaperBackdropBrush"); | ||
|
||
#endregion | ||
} | ||
} |
Oops, something went wrong.