PROTOCOLS
Launcher
Defined in fuchsia.session/launcher.fidl
A protocol used to launch sessions.
Launch
Launches the session detailed in configuration.
If a session is currently running, the component associated with the running session will be destroyed.
- configurationdescribes the session to launch.
- error LaunchError.INVALID_ARGSifconfiguration.session_urlis not set.
- error LaunchError.NOT_FOUNDifconfiguration.session_urlcould not be resolved.
- error LaunchError.DESTROY_COMPONENT_FAILEDif an existing session component could not be destroyed. The existing session remains running at this point.
- error LaunchError.CREATE_COMPONENT_FAILEDif the session component could not be started. No session will be running at this point.
Request
| Name | Type | 
|---|---|
| configuration | LaunchConfiguration | 
Response
| Name | Type | 
|---|---|
| payload | Launcher_Launch_Result | 
Lifecycle
Defined in fuchsia.session/lifecycle.fidl
A protocol used to control the session's lifecycle.
Restart
Restarts the session.
This stops the existing session and starts a new session with the same session URL as the previous one.
Returns once the new session component has been created and started.
- error LifecycleError.NOT_FOUNDif there is no existing session.
- error LifecycleError.RESOLVE_COMPONENT_FAILEDif the session URL could not be resolved to a component.
- error LifecycleError.DESTROY_COMPONENT_FAILEDif the session component could not be destroyed. The previous session will continue to exist at this point and the component may be running.
- error LifecycleError.CREATE_COMPONENT_FAILEDif the session component could not be started. No session will be running at this point.
Request
<EMPTY>
Response
| Name | Type | 
|---|---|
| payload | Lifecycle_Restart_Result | 
Start
Starts the session.
Returns after the session component has been created and started.
- error LifecycleError.NOT_FOUNDifsession_urlhas not been provided and there is no configured default session URL.
- error LifecycleError.ALREADY_STARTEDif a session has already been started.
- error LifecycleError.RESOLVE_COMPONENT_FAILEDifsession_urlcould not be resolved to a component.
- error LifecycleError.DESTROY_COMPONENT_FAILEDif an existing session component could not be destroyed. The existing session remains running at this point.
- error LifecycleError.CREATE_COMPONENT_FAILEDif the session component could not be started. No session will be running at this point.
Request
| Name | Type | 
|---|---|
| payload | LifecycleStartRequest | 
Response
| Name | Type | 
|---|---|
| payload | Lifecycle_Start_Result | 
Stop
Stops the session.
Returns after the session component has been destroyed.
- error LifecycleError.NOT_FOUNDif the session has not been started.
- error LifecycleError.DESTROY_COMPONENT_FAILEDif the session component could not be destroyed. The previous session will continue to exist at this point and the component may be running.
Request
<EMPTY>
Response
| Name | Type | 
|---|---|
| payload | Lifecycle_Stop_Result | 
Restarter
Defined in fuchsia.session/restarter.fidl
A protocol used to restart the currently running session.
Restart
Restarts the session.
- error RestartError.NOT_RUNNINGif there is no currently running session to restart.
- error RestartError.DESTROY_COMPONENT_FAILEDif an existing session component could not be destroyed. The existing session remains running at this point.
- error RestartError.CREATE_COMPONENT_FAILEDif the session component could not be started. No session will be running at this point.
Request
<EMPTY>
Response
| Name | Type | 
|---|---|
| payload | Restarter_Restart_Result | 
STRUCTS
Launcher_Launch_Response
Defined in fuchsia.session/launcher.fidl
<EMPTY>
Lifecycle_Restart_Response
Defined in fuchsia.session/lifecycle.fidl
<EMPTY>
Lifecycle_Start_Response
Defined in fuchsia.session/lifecycle.fidl
<EMPTY>
Lifecycle_Stop_Response
Defined in fuchsia.session/lifecycle.fidl
<EMPTY>
Restarter_Restart_Response
Defined in fuchsia.session/restarter.fidl
<EMPTY>
ENUMS
LaunchError flexible
Type: uint32
Defined in fuchsia.session/launcher.fidl
An error that occurs when launching a session.
| Name | Value | Description | 
|---|---|---|
| INVALID_ARGS | 1 | The session's  | 
| NOT_FOUND | 2 | There was an error resolving the session's component URL. | 
| DESTROY_COMPONENT_FAILED | 3 | The session component could not be destroyed. | 
| CREATE_COMPONENT_FAILED | 4 | The session component could not be created. | 
LifecycleError flexible
Type: uint32
Defined in fuchsia.session/lifecycle.fidl
An error that occurs when updating the lifecycle a session.
| Name | Value | Description | 
|---|---|---|
| NOT_FOUND | 1 | The session has not been started or there is no default session URL configured. | 
| ALREADY_STARTED | 2 | The session has already been started. | 
| RESOLVE_COMPONENT_FAILED | 3 | The session component could not be resolved. | 
| CREATE_COMPONENT_FAILED | 4 | The session component could not be created. | 
| DESTROY_COMPONENT_FAILED | 5 | The session component could not be destroyed. | 
RestartError flexible
Type: uint32
Defined in fuchsia.session/restarter.fidl
An error that occurs when restarting a session.
| Name | Value | Description | 
|---|---|---|
| NOT_RUNNING | 1 | There is no currently running session to restart. | 
| NOT_FOUND | 2 | There was an error resolving the session's component URL. | 
| DESTROY_COMPONENT_FAILED | 3 | The session component could not be destroyed. | 
| CREATE_COMPONENT_FAILED | 4 | The session component could not be created. | 
TABLES
LaunchConfiguration
Defined in fuchsia.session/launcher.fidl
Describes a session to launch.
| Ordinal | Field | Type | Description | 
|---|---|---|---|
| 1 | session_url | string:4096 | The component URL of the session. | 
| 2 | config_capabilities | vector<fuchsia.component.decl/Configuration> | Configuration capabilities that will be offered to the session. In the intended use case, the session component would use a particular
configuration capability with  Added: HEAD | 
LifecycleStartRequest
Defined in fuchsia.session/lifecycle.fidl
| Ordinal | Field | Type | Description | 
|---|---|---|---|
| 1 | session_url | string:4096 | The component URL of the session. Optional. If omitted, uses the default configured session URL, if available. | 
UNIONS
Launcher_Launch_Result strict
Defined in fuchsia.session/launcher.fidl
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | response | Launcher_Launch_Response | |
| 2 | err | LaunchError | 
Lifecycle_Restart_Result strict
Defined in fuchsia.session/lifecycle.fidl
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | response | Lifecycle_Restart_Response | |
| 2 | err | LifecycleError | |
| 3 | framework_err | internal | 
Lifecycle_Start_Result strict
Defined in fuchsia.session/lifecycle.fidl
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | response | Lifecycle_Start_Response | |
| 2 | err | LifecycleError | |
| 3 | framework_err | internal | 
Lifecycle_Stop_Result strict
Defined in fuchsia.session/lifecycle.fidl
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | response | Lifecycle_Stop_Response | |
| 2 | err | LifecycleError | |
| 3 | framework_err | internal | 
Restarter_Restart_Result strict
Defined in fuchsia.session/restarter.fidl
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | response | Restarter_Restart_Response | |
| 2 | err | RestartError |