#### [Board](https://docs.dev.board.fun/unity/api/index.html "index")

### [Board.Session](https://docs.dev.board.fun/unity/api/Board.Session.html "Board\.Session")

## BoardSession Class

Provides access to Board’s app session.

```csharp
public static class BoardSession
```

Inheritance [System.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object "System\.Object") 🡒 BoardSession

| Properties |  |
| --- | --- |
| [activeProfile](https://docs.dev.board.fun/unity/api/BoardSession.activeProfile.html "Board\.Session\.BoardSession\.activeProfile") | Gets the system-wide active profile. |
| [players](https://docs.dev.board.fun/unity/api/BoardSession.players.html "Board\.Session\.BoardSession\.players") | Gets the array of active [players](https://docs.dev.board.fun/unity/api/BoardSessionPlayer.html "Board\.Session\.BoardSessionPlayer") in the current session including all [BoardPlayerType](https://docs.dev.board.fun/unity/api/BoardPlayerType.html "Board\.Core\.BoardPlayerType") types. |

| Methods |  |
| --- | --- |
| [PresentAddPlayerSelector()](https://docs.dev.board.fun/unity/api/BoardSession.PresentAddPlayerSelector.md#Board.Session.BoardSession.PresentAddPlayerSelector() "Board\.Session\.BoardSession\.PresentAddPlayerSelector\(\)") | Presents the native player selector to add a new player to the current session. |
| [PresentAddPlayerSelector(int\[\])](https://docs.dev.board.fun/unity/api/BoardSession.PresentAddPlayerSelector.md#Board.Session.BoardSession.PresentAddPlayerSelector(int[]) "Board\.Session\.BoardSession\.PresentAddPlayerSelector\(int\[\]\)") | Presents the native player selector to add a new player to the current session, with optional filtering of which AI types to show. |
| [PresentReplacePlayerSelector(BoardSessionPlayer)](https://docs.dev.board.fun/unity/api/BoardSession.PresentReplacePlayerSelector.md#Board.Session.BoardSession.PresentReplacePlayerSelector(Board.Session.BoardSessionPlayer) "Board\.Session\.BoardSession\.PresentReplacePlayerSelector\(Board\.Session\.BoardSessionPlayer\)") | Presents the native player selector to replace or remove an existing [BoardSessionPlayer](https://docs.dev.board.fun/unity/api/BoardSessionPlayer.html "Board\.Session\.BoardSessionPlayer") from the current session. |
| [PresentReplacePlayerSelector(BoardSessionPlayer, int\[\])](https://docs.dev.board.fun/unity/api/BoardSession.PresentReplacePlayerSelector.md#Board.Session.BoardSession.PresentReplacePlayerSelector(Board.Session.BoardSessionPlayer,int[]) "Board\.Session\.BoardSession\.PresentReplacePlayerSelector\(Board\.Session\.BoardSessionPlayer, int\[\]\)") | Presents the native player selector to replace or remove an existing [BoardSessionPlayer](https://docs.dev.board.fun/unity/api/BoardSessionPlayer.html "Board\.Session\.BoardSessionPlayer") from the current session, with optional filtering of which AI types to show. |
| [ResetPlayers()](https://docs.dev.board.fun/unity/api/BoardSession.ResetPlayers().html "Board\.Session\.BoardSession\.ResetPlayers\(\)") | Resets the session players to the initial state. |
| [SetAIPlayerTypes(BoardAIPlayerType\[\])](https://docs.dev.board.fun/unity/api/BoardSession.SetAIPlayerTypes(BoardAIPlayerType[]).html "Board\.Session\.BoardSession\.SetAIPlayerTypes\(Board\.Session\.BoardAIPlayerType\[\]\)") | Registers the AI player types this game supports. |

| Events |  |
| --- | --- |
| [activeProfileChanged](https://docs.dev.board.fun/unity/api/BoardSession.activeProfileChanged.html "Board\.Session\.BoardSession\.activeProfileChanged") | Occurs when the system-wide active profile changes. |
| [playersChanged](https://docs.dev.board.fun/unity/api/BoardSession.playersChanged.html "Board\.Session\.BoardSession\.playersChanged") | Occurs when the active [players](https://docs.dev.board.fun/unity/api/BoardSessionPlayer.html "Board\.Session\.BoardSessionPlayer") in the session change.
