Documentation

Support

Vivox Unreal SDK

Vivox Unreal SDK

Sign out of a game

How to sign out a player from Vivox services.
Read time 1 minuteLast updated 2 days ago

When the game no longer wants a user signed in, it sends an ILoginSession::Logout method call to the Vivox SDK. After the user is signed out, there is no network traffic sent to or received by the Vivox SDK. To determine if a sign out is user initiated you must listen for the EventStateChanged event with LoginState::LogginOut. The LoggingOut state is always raised on a successful Logout() call before reaching LoginState:LoggedOut. If a user moves directly between the sates of LoggedIn to LoggedOut without the LoggingOut state being raised it means the sign out was not user initiated. The following code displays an example of the sign out process:
/* . . . */MyLoginSession.Logout();/* . . . */