pub fn show_ota_view(
view: &mut dyn View,
hub: &Hub,
rq: &mut RenderQueue,
context: &mut Context,
) -> boolExpand description
Attempts to show the OTA update view with validation checks.
This function validates prerequisites before showing the OTA view:
- Checks if WiFi is enabled
If validation fails, a notification is added to the view hierarchy instead.
§Arguments
view- The parent view to add either OTA view or notification tohub- Event hub for sending eventsrq- Render queue for UI updatescontext- Application context containing settings and WiFi state
§Returns
true if the OTA view was successfully shown, false if validation failed
and a notification was shown instead.