Board

Board.Session.BoardSession

BoardSession.PresentAddPlayerSelector Method

Overloads  
PresentAddPlayerSelector() Presents the native player selector to add a new player to the current session.
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.

BoardSession.PresentAddPlayerSelector() Method

Presents the native player selector to add a new player to the current session.

public static System.Threading.Tasks.Task<bool> PresentAddPlayerSelector();

Returns

System.Threading.Tasks.Task<System.Boolean>
A task that completes with true if a player was added; otherwise, false if the selector was dismissed

Exceptions

System.InvalidOperationException
If the native player selector failed to open.

Remarks

Any resulting changes to players will trigger the playersChanged event.

BoardSession.PresentAddPlayerSelector(int[]) Method

Presents the native player selector to add a new player to the current session, with optional filtering of which AI types to show.

public static System.Threading.Tasks.Task<bool> PresentAddPlayerSelector(int[] aiTypeIndices);

Parameters

aiTypeIndices System.Int32[]

Indices into the registered AI types to show, or null for all.

Returns

System.Threading.Tasks.Task<System.Boolean>
A task that completes with true if a player was added; otherwise, false if the selector was dismissed.

Exceptions

System.InvalidOperationException
If the native player selector failed to open.

Remarks

Any resulting changes to players will trigger the playersChanged event. If aiTypeIndices is null, all registered AI types are shown. On older OS versions, AI types are not shown (graceful degradation).