AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
CheckApiTest.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 using UnityEngine;
5 using UnityEngine.UI;
6 
7 public class CheckApiTest : MonoBehaviour
8 {
9  [SerializeField]
10  private Text text = null;
11 
12  public void CheckV5Api()
13  {
14  text.text = "UniversalApiContract\nVersion 5 available? " + HoloToolkit.WindowsApiChecker.UniversalApiContractV5_IsAvailable;
15  Debug.Log(text.text);
16  }
17 
18  public void CheckV4Api()
19  {
20  text.text = "UniversalApiContract\nVersion 4 available? " + HoloToolkit.WindowsApiChecker.UniversalApiContractV4_IsAvailable;
21  Debug.Log(text.text);
22  }
23 
24  public void CheckV3Api()
25  {
26  text.text = "UniversalApiContract\nVersion 3 available? " + HoloToolkit.WindowsApiChecker.UniversalApiContractV3_IsAvailable;
27  Debug.Log(text.text);
28  }
29 }
static bool UniversalApiContractV3_IsAvailable
Is the Universal API Contract v3.0 Available?
void CheckV4Api()
Definition: CheckApiTest.cs:18
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?
void CheckV3Api()
Definition: CheckApiTest.cs:24
void CheckV5Api()
Definition: CheckApiTest.cs:12