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
20
UniversalApiContractV5_IsAvailable
=
false
;
21
UniversalApiContractV4_IsAvailable
=
false
;
22
UniversalApiContractV3_IsAvailable
=
false
;
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
}
HoloToolkit.WindowsApiChecker.UniversalApiContractV3_IsAvailable
static bool UniversalApiContractV3_IsAvailable
Is the Universal API Contract v3.0 Available?
Definition:
WindowsApiChecker.cs:39
HoloToolkit.WindowsApiChecker
Helper class for determining if a Windows API contract is available.
Definition:
WindowsApiChecker.cs:11
HoloToolkit.WindowsApiChecker.UniversalApiContractV5_IsAvailable
static bool UniversalApiContractV5_IsAvailable
Is the Universal API Contract v5.0 Available?
Definition:
WindowsApiChecker.cs:29
HoloToolkit.WindowsApiChecker.UniversalApiContractV4_IsAvailable
static bool UniversalApiContractV4_IsAvailable
Is the Universal API Contract v4.0 Available?
Definition:
WindowsApiChecker.cs:34
HoloToolkit
Assets
HoloToolkit
Utilities
Scripts
WindowsApiChecker.cs
Generated by
1.8.12