AppRemoting.StartConnectingToPlayer(RemotingConnectConfiguration) 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.
Starts connecting with given Holographic Remoting remote app (Client) configuration and initializes XR.
public static void StartConnectingToPlayer(Microsoft.MixedReality.OpenXR.Remoting.RemotingConnectConfiguration connectConfiguration);
static member StartConnectingToPlayer : Microsoft.MixedReality.OpenXR.Remoting.RemotingConnectConfiguration -> unit
Public Shared Sub StartConnectingToPlayer (connectConfiguration As RemotingConnectConfiguration)
Parameters
- connectConfiguration
- RemotingConnectConfiguration
The set of parameters to use for remoting.
Remarks
This remote app (Client) will try and connect to a remote player (Server) listening for incoming connections. After a successful connection, the XR experience will be started. Apps can use ConnectionState to monitor the ongoing connection and use ReadyToStart to drive future connections. This method will return quickly and is safe for use in UI threads.