> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFLobbyLeaveLobbyCompletedStateChange

> Details of the LeaveLobbyCompleted PlayFab Multiplayer state change, raised when one or more local users have finished leaving a lobby.

Information specific to the *LeaveLobbyCompleted* type of state change.

## Syntax

```cpp theme={null}
struct PFLobbyLeaveLobbyCompletedStateChange : PFLobbyStateChange {  
    PFLobbyHandle lobby;  
    const PFEntityKey* localUser;  
    void* asyncContext;  
}  
```

### Members

**`lobby`**   PFLobbyHandle\
*must not be null*

The lobby provided to the call associated with this state change.

**`localUser`**   const [PFEntityKey](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfentitykey_clientsdk)\*\
*may be nullptr*

The local user provided to the call associated with this state change. May be null.

If this value is null it signifies that the title requested all local members leave the specified lobby.

**`asyncContext`**   void\*

The async context provided to the call associated with this state change.

## Requirements

**Header:** PFLobby.h

## See also

[PFLobby members](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)


## Related topics

- [PFLobbyLeave](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbyleave.md)
- [PFMultiplayer C/C++ API overview - PFLobby.h](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [PFLobbyStateChangeType](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbystatechangetype.md)
- [PFMultiplayerUninitialize](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayeruninitialize.md)
- [PFLobbyServerLeaveLobbyAsServerCompletedStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyserverleavelobbyasservercompletedstatechange.md)
