AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
PairingAdapter.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 
5 namespace HoloToolkit.Sharing
6 {
12  {
13  public event System.Action SuccessEvent;
14  public event System.Action<PairingResult> FailureEvent;
15 
16  public PairingAdapter() { }
17 
18  public override void PairingConnectionSucceeded()
19  {
20  if (this.SuccessEvent != null)
21  {
22  this.SuccessEvent();
23  }
24  }
25 
26  public override void PairingConnectionFailed(PairingResult result)
27  {
28  if (this.FailureEvent != null)
29  {
30  this.FailureEvent(result);
31  }
32  }
33  }
34 }
Allows users of the pairing API to register to receive pairing event callbacks without having their c...
System.Action< PairingResult > FailureEvent
override void PairingConnectionFailed(PairingResult result)
override void PairingConnectionSucceeded()