Edit

Share via


PlayFabMultiplayer.PlayFabMultiplayerServer.ClaimServerLobby

Method (1 of 2)

Claim ownership of a pre-existing server lobby.

public static Lobby ClaimServerLobby(PFEntityKey server, string lobbyId)
parameter description
server The PlayFab Entity Key of the game server creating the lobby. It's entity type must be "game_server".
lobbyId The ID of the Lobby to claim.

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 OnServerLobbyClaimCompleted with the OnServerLobbyClaimCompleted.result field set to Success. Upon a failed completion, the title will be provided a OnServerLobbyClaimCompleted with the with the OnServerLobbyClaimCompleted.result field set to a failed error code.

While this method is present in the unified, cross-platform header, it is only implemented for Windows and, Xbox. The method will return errors on other platforms.


Method (2 of 2)

Claim ownership of a pre-existing server lobby.

public static Lobby ClaimServerLobby(PlayFabAuthenticationContext server, string lobbyId)
parameter description
server The PlayFab Entity Key of the game server creating the lobby. It's entity type must be "game_server".
lobbyId The ID of the Lobby to claim.

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 OnServerLobbyClaimCompleted with the OnServerLobbyClaimCompleted.result field set to Success. Upon a failed completion, the title will be provided a OnServerLobbyClaimCompleted with the with the OnServerLobbyClaimCompleted.result field set to a failed error code.

While this method is present in the unified, cross-platform header, it is only implemented for Windows and, Xbox. The method will return errors on other platforms.

See Also