OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
system.system_lifecycle_controller.SystemLifecycleController Class Reference

Record lifecycle intent and execute it only after application cleanup. More...

Inheritance diagram for system.system_lifecycle_controller.SystemLifecycleController:
ui.system.lifecycle_request_handler_if.SystemLifecycleRequestHandlerIf

Public Member Functions

SystemLifecycleAction requested_action (self)
 Return the most recent deferred lifecycle request.
None request_restart_ui (self)
 Record a UI restart request without replacing the process yet.
None request_poweroff (self)
 Record a host poweroff request without touching the OS yet.
None clear (self)
 Discard any pending lifecycle action.
bool execute_requested_action (self)
 Execute the deferred action after application-owned resources close.

Detailed Description

Record lifecycle intent and execute it only after application cleanup.

Member Function Documentation

◆ execute_requested_action()

bool system.system_lifecycle_controller.SystemLifecycleController.execute_requested_action ( self)

Execute the deferred action after application-owned resources close.

Returns True when an action was dispatched. A restart replaces the current process and therefore does not normally return.


The documentation for this class was generated from the following file:
  • controllers/system/system_lifecycle_controller.py