fuchsia.modular.internal

PROTOCOLS

BasemgrDebug

Defined in fuchsia.modular.internal/basemgr_debug.fidl

A debug interface exposed by basemgr to allow developer tools to control state within the basemgr process.

RestartSession

Restarts the current session. If a user was logged in, this will return when the same user is logged back in. Otherwise, this will return when sessionmgr has been torn down.

Request

NameType

Response

NameType

SelectNextSessionShell

Toggles to the next session defined in the basemgr.config file.

Request

NameType

Response

NameType

LoginAsGuest

Logs in as a guest user.

Request

NameType

Sessionmgr

Defined in fuchsia.modular.internal/sessionmgr.fidl

The basemgr application (there is no Basemgr service) requests an instance of this service in order to launch and display a Sessionmgr.

Initialize

Launches a sessionmgr instance identified by a unique device-local session_id. The uniqueness of session_id must be guaranteed by the caller, because sessionmgr creates an Environment namespace with the given session_id, and this will crash if we try to create an environment with a pre-existing name, because the services sessionmgr tries to access won't be available.

Request

NameType
session_id string
account fuchsia.modular.auth/Account?
session_shell fuchsia.modular/AppConfig
story_shell fuchsia.modular/AppConfig
use_session_shell_for_story_shell_factory bool
ledger_token_manager fuchsia.auth/TokenManager?
agent_token_manager fuchsia.auth/TokenManager?
session_context SessionContext
view_token fuchsia.ui.views/ViewToken

SwapSessionShell

Request

NameType
session_shell fuchsia.modular/AppConfig

Response

NameType

SessionContext

Defined in fuchsia.modular.internal/sessionmgr.fidl

This interface is provided by basemgr to Sessionmgr.

Logout

See detailed comments in SessionShellContext.Logout(). Logs out all the users in this session, then shut down the sessionmgr process.

Request

NameType

Shutdown

Shut down the sessionmgr process. This method should be called if the users of the session should remain logged in. Call Logout() if the intent is to also log out the users from the session.

Request

NameType

GetPresentation

Request

NameType
presentation request<fuchsia.ui.policy/Presentation>

TABLES

StoryData

Defined in fuchsia.modular.internal/story_data.fidl

Metadata and summary information about a single story. Does not contain the data necessary to run a story: see story_model.fidl for that.

OrdinalNameTypeDescription
1 story_info fuchsia.modular/StoryInfo2 Metadata available to the SessionShell.
2 story_name string A client-supplied name for this story.
3 story_options fuchsia.modular/StoryOptions Story metadata and configuration.
4 story_page_id fuchsia.ledger/PageId Page id on the user's ledger which stores story information.