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
{
8
public
class
DiscoveryClientAdapter
:
DiscoveryClientListener
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
}
HoloToolkit.Sharing.DiscoveryClientListener
Definition:
DiscoveryClientListener.cs:13
System
HoloToolkit.Sharing.DiscoveryClientAdapter.OnRemoteSystemLost
override void OnRemoteSystemLost(DiscoveredSystem remoteSystem)
Definition:
DiscoveryClientAdapter.cs:21
HoloToolkit.Sharing.DiscoveredSystem
Definition:
DiscoveredSystem.cs:13
HoloToolkit.Sharing.DiscoveryClientAdapter.DiscoveredEvent
Action< DiscoveredSystem > DiscoveredEvent
Definition:
DiscoveryClientAdapter.cs:10
HoloToolkit
HoloToolkit.Sharing.DiscoveryClientAdapter
Definition:
DiscoveryClientAdapter.cs:8
HoloToolkit.Sharing.DiscoveryClientAdapter.LostEvent
Action< DiscoveredSystem > LostEvent
Definition:
DiscoveryClientAdapter.cs:11
HoloToolkit.Sharing.DiscoveryClientAdapter.OnRemoteSystemDiscovered
override void OnRemoteSystemDiscovered(DiscoveredSystem remoteSystem)
Definition:
DiscoveryClientAdapter.cs:13
Assets
HoloToolkit
Sharing
Scripts
SDK
DiscoveryClientAdapter.cs
Generated by
1.8.12