Show / Hide Table of Contents

Class RemoteSession

Represents the current connection and remote application data.

Inheritance
object
RemoteSession
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: HoloMetrix.Net.Remote
Assembly: HoloMetrix.Net.Remote.dll
Syntax
public sealed class RemoteSession

Properties

| Improve this Doc View Source

App

Gets the currently active application.

Declaration
public App App { get; set; }
Property Value
Type Description
App
| Improve this Doc View Source

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.

| Improve this Doc View Source

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
| Improve this Doc View Source

Messenger

Gets the session messenger.

Declaration
public NetworkMessenger Messenger { get; }
Property Value
Type Description
NetworkMessenger

Methods

| Improve this Doc View Source

CloseApp()

Request the remote app to exit.

Declaration
public void CloseApp()
| Improve this Doc View Source

CloseSession()

Resets the Instance by calling ResetInstance().

Declaration
public void CloseSession()
| Improve this Doc View Source

GetBatteryReport()

Request the remote device battery report.

Declaration
public void GetBatteryReport()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

AppDisconnected

Event indicating the remote application was closed.

Declaration
public event EventHandler<AppDisconnectedEventArgs> AppDisconnected
Event Type
Type Description
EventHandler<AppDisconnectedEventArgs>
| Improve this Doc View Source

AppLaunched

Event indicating the remote application has launched.

Declaration
public event Action AppLaunched
Event Type
Type Description
Action
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX