lingxia 0.11.1

LingXia - Cross-platform LxApp (lightweight application) framework for Android, iOS, macOS, HarmonyOS, and Windows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub(crate) fn load_error_document(url: &str) -> String {
    let title = lingxia_platform::i18n::text("webview.load_error_title", "Couldn't load this page");
    let message = lingxia_platform::i18n::text(
        "webview.load_error_message",
        "Check your connection and try again.",
    );
    let retry_label = lingxia_platform::i18n::text("webview.retry", "Retry");
    lingxia_webview::render_load_error_page(lingxia_webview::LoadErrorPage {
        title: &title,
        message: &message,
        retry_label: &retry_label,
        retry_url: url,
    })
}