IProjectVLobbyScreen interface
The Lobby screen contract: observe the view and redraw on change. Loading and refreshing are handled for you.
Namespace: SilverTiger.ProjectV.Unity.Presentation.Lobby
public interface IProjectVLobbyScreen
Properties
| Property | Type | Description |
|---|---|---|
Current | ProjectVLobbyView | The view right now, built from the last confirmed profile; never null. |
Methods
Observe(Action<ProjectVLobbyView> render)
Calls render with the current view, then again whenever the profile changes. Loads the profile if needed. Before the first load nothing is drawn; show your loading state until the first call.
IDisposable Observe(Action<ProjectVLobbyView> render);
Parameters
| Name | Type | Description |
|---|---|---|
render | Action<ProjectVLobbyView> | Draws the Lobby; called on the Unity main thread. |
Returns
IDisposable: The observation; dispose it when the screen closes.
Exceptions
| Exception | When |
|---|---|
ArgumentNullException | render is null. |