AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
WindowsApiChecker.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 namespace HoloToolkit
5 {
11  public static class WindowsApiChecker
12  {
13  static WindowsApiChecker()
14  {
15 #if !UNITY_EDITOR && UNITY_WSA
16  UniversalApiContractV5_IsAvailable = Windows.Foundation.Metadata.ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 5);
17  UniversalApiContractV4_IsAvailable = Windows.Foundation.Metadata.ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 4);
18  UniversalApiContractV3_IsAvailable = Windows.Foundation.Metadata.ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 3);
19 #else
23 #endif
24  }
25 
29  public static bool UniversalApiContractV5_IsAvailable { get; private set; }
30 
34  public static bool UniversalApiContractV4_IsAvailable { get; private set; }
35 
39  public static bool UniversalApiContractV3_IsAvailable { get; private set; }
40  }
41 }
static bool UniversalApiContractV3_IsAvailable
Is the Universal API Contract v3.0 Available?
Helper class for determining if a Windows API contract is available.
static bool UniversalApiContractV5_IsAvailable
Is the Universal API Contract v5.0 Available?
static bool UniversalApiContractV4_IsAvailable
Is the Universal API Contract v4.0 Available?