Skip to main content

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​

PropertyTypeDescription
CurrentProjectVLobbyViewThe 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

NameTypeDescription
renderAction<ProjectVLobbyView>Draws the Lobby; called on the Unity main thread.

Returns

IDisposable: The observation; dispose it when the screen closes.

Exceptions

ExceptionWhen
ArgumentNullExceptionrender is null.