AppRemoting.TryGetConnectionState(ConnectionState, DisconnectReason) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides information on the current remoting session, if one exists.
public static bool TryGetConnectionState(out Microsoft.MixedReality.OpenXR.Remoting.ConnectionState connectionState, out Microsoft.MixedReality.OpenXR.Remoting.DisconnectReason disconnectReason);
static member TryGetConnectionState : ConnectionState * DisconnectReason -> bool
Public Shared Function TryGetConnectionState (ByRef connectionState As ConnectionState, ByRef disconnectReason As DisconnectReason) As Boolean
Parameters
- connectionState
- ConnectionState
The current connection state of the remote session.
- disconnectReason
- DisconnectReason
If the connection state is disconnected, this helps explain why.
Returns
Whether the information was successfully retrieved.
Remarks
This functionality needs the "Holographic Remoting remote app" feature in OpenXR project settings to be enabled and returns false otherwise. This functionality always returns false in Holographic PlayMode Remoting.