OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
weather.weather_screen_controller.WeatherScreenController Class Reference

Publish normalized forecasts and discard callbacks from hidden screens. More...

Inheritance diagram for weather.weather_screen_controller.WeatherScreenController:
ui.weather.weather_screen_ui_if.WeatherScreenRequestHandlerIf ui.weather.weather_request_handler_if.WeatherRequestHandlerIf

Public Member Functions

None set_visible (self, bool visible)
 Update lifecycle.
 
None bind_online_mode (self, mode)
 Observe backend connectivity.
 
None mode_changed (self, bool online)
 Invalidate old work.
 
None request_refresh (self, *bool force=True)
 Refresh the visible screen asynchronously.
 
 close (self)
 Invalidate pending refresh callbacks and disconnect the view.
 

Detailed Description

Publish normalized forecasts and discard callbacks from hidden screens.

Member Function Documentation

◆ bind_online_mode()

None weather.weather_screen_controller.WeatherScreenController.bind_online_mode (   self,
  mode 
)

Observe backend connectivity.

Parameters
modeConnectivity mode source.

◆ mode_changed()

None weather.weather_screen_controller.WeatherScreenController.mode_changed (   self,
bool  online 
)

Invalidate old work.

Parameters
onlineEffective connectivity.

◆ set_visible()

None weather.weather_screen_controller.WeatherScreenController.set_visible (   self,
bool  visible 
)

Update lifecycle.

Parameters
visibleWhether the forecast screen is shown.

Reimplemented from ui.weather.weather_screen_ui_if.WeatherScreenRequestHandlerIf.


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