AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
DiscoveryClientAdapter.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 System;
5 
6 namespace HoloToolkit.Sharing
7 {
9  {
10  public event Action<DiscoveredSystem> DiscoveredEvent;
11  public event Action<DiscoveredSystem> LostEvent;
12 
13  public override void OnRemoteSystemDiscovered(DiscoveredSystem remoteSystem)
14  {
15  if (this.DiscoveredEvent != null)
16  {
17  this.DiscoveredEvent(remoteSystem);
18  }
19  }
20 
21  public override void OnRemoteSystemLost(DiscoveredSystem remoteSystem)
22  {
23  if (this.LostEvent != null)
24  {
25  this.LostEvent(remoteSystem);
26  }
27  }
28  }
29 }
override void OnRemoteSystemLost(DiscoveredSystem remoteSystem)
override void OnRemoteSystemDiscovered(DiscoveredSystem remoteSystem)