lingxia-webview 0.6.5

WebView abstraction layer for LingXia framework (Android, iOS, HarmonyOS)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod bridge_transport;
mod schemehandler;
mod webview;

pub(crate) use webview::WebViewInner;
pub(crate) use webview::apply_http_proxy;

pub const BRIDGE_DOWNSTREAM_CSP_SOURCE: &str = bridge_transport::APPLE_BRIDGE_DOWNSTREAM_CSP_SOURCE;
pub const BRIDGE_DOWNSTREAM_URL: &str = bridge_transport::APPLE_BRIDGE_DOWNSTREAM_URL;

#[cfg(target_os = "macos")]
pub fn toggle_webview_devtools_by_swift_ptr(swift_ptr: usize, detached: bool) -> bool {
    webview::toggle_devtools_by_swift_ptr(swift_ptr, detached)
}