Interface IDeviceService
Connects to a server to receive information on all
Namespace: Unity.DigitalTwins.Live.Sdk.Services.Interfaces
Assembly: solution.dll
Syntax
public interface IDeviceService : IDisposable
Methods
FireLiveDeviceUpdated(LiveDevice)
Fires an event when a
Declaration
void FireLiveDeviceUpdated(LiveDevice liveDevice)
Parameters
Type | Name | Description |
---|---|---|
LiveDevice | liveDevice | The |
GetCachedDevices()
Retrieves all cached
Declaration
IEnumerable<LiveDevice> GetCachedDevices()
Returns
Type | Description |
---|---|
IEnumerable<LiveDevice> | Returns a list of all |
GetDevicesAsync()
Gets all devices
Declaration
Task<IEnumerable<LiveDevice>> GetDevicesAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<LiveDevice>> |
GetSelectedLiveDevices()
Retrieves all selected
Declaration
IEnumerable<LiveDevice> GetSelectedLiveDevices()
Returns
Type | Description |
---|---|
IEnumerable<LiveDevice> | Returns a list of all selected |
TryGetLiveDevice(String, out LiveDevice)
Retrieves a
Declaration
bool TryGetLiveDevice(string deviceId, out LiveDevice liveDevice)
Parameters
Type | Name | Description |
---|---|---|
String | deviceId | The ID used to retrieve the |
LiveDevice | liveDevice | The returned |
Returns
Type | Description |
---|---|
Boolean | Returns true if the operation is successful. |