Share via


AppRemoting.Disconnect Method

Definition

Disconnects the remote app (Client/Server) from the remote player (Client/Server) and stops the active XR session.

public static void Disconnect ();
static member Disconnect : unit -> unit
Public Shared Sub Disconnect ()

Remarks

Disconnects network connection between remote app and remote player, stops ConnectToPlayer, Connect(RemotingConfiguration) and Listen(RemotingListenConfiguration, Action) coroutines. It does not stop StartListeningForPlayer(RemotingListenConfiguration) coroutine, use StopListening() instead. `Disconnect` is not equivalent to the completion of `ConnectToPlayer` coroutine, please use a wrapper coroutine, as explained in ConnectToPlayer to identify completion.

Applies to