OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
ui.screen_ui_if.ScreenUiIf Class Reference

Lifecycle and action contract for one navigable screen. More...

Inheritance diagram for ui.screen_ui_if.ScreenUiIf:
frontends.tk.tk_screen.TkScreen ui.screen_ui_stub.ScreenUiStub apps.carUi.screens.car_ui_screen.CarUiScreen apps.carUi.screens.netflix_screen.NetflixScreen apps.carUi.screens.youtube_screen.YouTubeScreen apps.orcUi.frontend.tk.camera_vision_screen.CameraVisionScreen apps.orcUi.frontend.tk.home_screen.HomeScreen apps.orcUi.frontend.tk.navigation_screen.NavigationScreen apps.orcUi.frontend.tk.offroad_screen.OffRoadScreen apps.orcUi.frontend.tk.settings_screen.SettingsScreen apps.orcUi.frontend.tk.vehicle_screen.VehicleScreen frontends.tk.games.games_screen.GamesScreen frontends.tk.lighting.lighting_screen.LightingScreen frontends.tk.media.browser_media_screen.BrowserMediaScreen frontends.tk.media.media_screen.MediaScreen frontends.tk.media.music_visualizer_screen.MusicVisualizerScreen frontends.tk.media.spotify_screen.SpotifyScreen frontends.tk.media.youtube_music_coming_soon_screen.YouTubeMusicComingSoonScreen frontends.tk.radio.radio_screen.RadioScreen frontends.tk.system.diagnostics_screen.DiagnosticsScreen frontends.tk.weather.weather_screen.WeatherScreen

Public Member Functions

ScreenId screen_id (self)
 Return the stable identifier used to navigate to this screen.
 
None show (self)
 Make the screen active and ready to receive UI actions.
 
None hide (self)
 Make the screen inactive and release transient activity.
 
bool handle_ui_action (self, UiAction action)
 Handle a semantic action offered to the active screen.
 

Detailed Description

Lifecycle and action contract for one navigable screen.

Implementations may use any UI toolkit. A screen is a navigation destination and may compose any number of toolkit-specific panels and widgets.

Member Function Documentation

◆ handle_ui_action()

bool ui.screen_ui_if.ScreenUiIf.handle_ui_action (   self,
UiAction  action 
)

Handle a semantic action offered to the active screen.

Parameters
actionSemantic UI action offered to the screen.
Returns
True when handled; False when the parent should handle it.

Reimplemented in frontends.tk.tk_screen.TkScreen, and ui.screen_ui_stub.ScreenUiStub.

◆ screen_id()

ScreenId ui.screen_ui_if.ScreenUiIf.screen_id (   self)

Return the stable identifier used to navigate to this screen.

Returns
Stable screen identifier.

Reimplemented in frontends.tk.tk_screen.TkScreen, and ui.screen_ui_stub.ScreenUiStub.


The documentation for this class was generated from the following file: