PlayFabMultiplayer.JoinLobby
Method (1 of 2)
Join a lobby as the local PlayFab entity.
public static Lobby JoinLobby(PFEntityKey newMember, string connectionString,
IDictionary<string, string> memberKeyValuePairs)
parameter | description |
---|---|
newMember | The local entity joining the lobby. |
connectionString | The connection string used by the entity to join the lobby. |
memberKeyValuePairs | The number of initial member properties for the joiner of the lobby. |
Return Value (1 of 2)
Output lobby object which can be used to queue operations for immediate execution of this operation.
Remarks (1 of 2)
This is an asynchronous operation. Upon successful completion, the title will be provided a OnLobbyMemberAdded
followed by a OnLobbyUpdated
and OnLobbyJoinCompleted
with the OnLobbyJoinCompleted.result
field set to Success
. Upon a failed completion, the title will be provided a OnLobbyJoinCompleted
with the result
field set to a failure.
Method (2 of 2)
Join a lobby as the local PlayFab entity.
public static Lobby JoinLobby(PlayFabAuthenticationContext newMember, string connectionString,
IDictionary<string, string> memberKeyValuePairs)
parameter | description |
---|---|
newMember | The local entity joining the lobby. |
connectionString | The connection string used by the entity to join the lobby. |
memberKeyValuePairs | The number of initial member properties for the joiner of the lobby. |
Return Value (2 of 2)
Output lobby object which can be used to queue operations for immediate execution of this operation.
Remarks (2 of 2)
This is an asynchronous operation. Upon successful completion, the title will be provided a OnLobbyMemberAdded
followed by a OnLobbyUpdated
and OnLobbyJoinCompleted
with the OnLobbyJoinCompleted.result
field set to Success
. Upon a failed completion, the title will be provided a OnLobbyJoinCompleted
with the result
field set to a failure.
See Also
- class Lobby
- class PFEntityKey
- class PlayFabMultiplayer
- namespace PlayFab.Multiplayer
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for