Class RemoteSession
Represents the current connection and remote application data.
Inherited Members
Namespace: HoloMetrix.Net.Remote
Assembly: HoloMetrix.Net.Remote.dll
Syntax
public sealed class RemoteSession
Properties
| Improve this Doc View SourceApp
Gets the currently active application.
Declaration
public App App { get; set; }
Property Value
| Type | Description |
|---|---|
| App |
DeveloperKey
Gets the license key for using this HoloMetrix API.
Declaration
public static string DeveloperKey { get; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Use SetKey(string) to apply a license key.
Instance
The currently active remote session. Only one session can be active at once.
Declaration
public static RemoteSession Instance { get; }
Property Value
| Type | Description |
|---|---|
| RemoteSession |
Messenger
Gets the session messenger.
Declaration
public NetworkMessenger Messenger { get; }
Property Value
| Type | Description |
|---|---|
| NetworkMessenger |
Methods
| Improve this Doc View SourceCloseApp()
Request the remote app to exit.
Declaration
public void CloseApp()
CloseSession()
Resets the Instance by calling ResetInstance().
Declaration
public void CloseSession()
GetBatteryReport()
Request the remote device battery report.
Declaration
public void GetBatteryReport()
OnRemoteChanged_AppStatus(RemoteChangedEventArgs<RemoteAppStatus>)
Raises the RemoteChanged_AppStatus event.
Declaration
public void OnRemoteChanged_AppStatus(RemoteChangedEventArgs<RemoteAppStatus> e)
Parameters
| Type | Name | Description |
|---|---|---|
| RemoteChangedEventArgs<RemoteAppStatus> | e | The eventargs to use in raising the event. |
StartAppAsync<T>(string)
Attempt to launch an app on the remote device.
Declaration
public Task StartAppAsync<T>(string launchArgs = null) where T : App, new()
Parameters
| Type | Name | Description |
|---|---|---|
| string | launchArgs | Launch arguments to pass along to the remote application. |
Returns
| Type | Description |
|---|---|
| Task | The launched app. |
Type Parameters
| Name | Description |
|---|---|
| T | The app type to launch. |
Events
| Improve this Doc View SourceAppDisconnected
Event indicating the remote application was closed.
Declaration
public event EventHandler<AppDisconnectedEventArgs> AppDisconnected
Event Type
| Type | Description |
|---|---|
| EventHandler<AppDisconnectedEventArgs> |
AppLaunched
Event indicating the remote application has launched.
Declaration
public event Action AppLaunched
Event Type
| Type | Description |
|---|---|
| Action |
Battery_ReportUpdated
Event indicating a change in the remote device battery report.
Declaration
public event EventHandler<DevicePowerEventArgs> Battery_ReportUpdated
Event Type
| Type | Description |
|---|---|
| EventHandler<DevicePowerEventArgs> |
RemoteChanged_AppStatus
Event indicating a change in the status of the remote application.
Declaration
public event EventHandler<RemoteChangedEventArgs<RemoteAppStatus>> RemoteChanged_AppStatus
Event Type
| Type | Description |
|---|---|
| EventHandler<RemoteChangedEventArgs<RemoteAppStatus>> |