You don't need to create a SWLobby object manually. NetworkClient automatically creates one if you provided a valid API_KEY. All the Lobby APIs can be accessed using the NetworkClient.Lobby instance.
public class SWLobby
ID of the local player.
Indicates whether the local player is the room owner.
Cached room custom data of the player's current room in the Lobby server.
You need to call the NetworkClient.Lobby.GetRoomCustomData() method to get the custom data. The fetches custom data is cached and updated afterwards.
null if the local player is not in a room. null if NetworkClient.Lobby.GetRoomCustomData() has not been called or the room custom data has not been changed.
Local player's roomId. null if the local player is not in a room.
SWLobby's methods are discussed in details in the following pages.