Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Triggers all the lobby related PlayFabMultiplayer.OnMatchmaking* events since the last such call.
public static void ProcessMatchmakingStateChanges()
Remarks
This method provides the Lobby library an opportunity to synchronize state with remote devices or services
Lobby library state exposed by the library can change during this call, so you must be thread-safe in your use of it. For example, invoking ProcessLobbyStateChanges() on your UI thread at the same time a separate worker thread is looping through the list of endpoints returned by GetMembers may result in crashes because ProcessLobbyStateChanges() can alter the memory associated with the member list. ProcessLobbyStateChanges() should be called frequently-- at least once per graphics frame. It's designed to execute and return quickly such that it can be called on your main UI thread with negligible impact. For best results, you should also minimize the time you spend handling state events.
See Also
- class PlayFabMultiplayer
- namespace PlayFab.Multiplayer