Skip to main content

Crate lingxia_browser

Crate lingxia_browser 

Source

Structs§

BrowserAddressInputContext
BrowserAddressInputError
BrowserAddressInputRequest
BrowserAddressInputResponse
BrowserAddressNavigation
BrowserAddressState
BrowserAddressSuggestion
BrowserElementInfo
BrowserNavigationPolicyRequest
BrowserNavigationPolicyResponse
BrowserRect
BrowserTabInfo
BrowserWaitResult
NetworkCaptureSnapshot
A point-in-time view of the capture buffer.
NetworkEntry
One captured network request and its response (when it completed).
WebViewCookie
WebViewCookieSetRequest

Enums§

BrowserAddressAction
BrowserAddressInputTrigger
BrowserAddressValueKind
BrowserAutomationError
BrowserNavigationPolicyDecision
BrowserNavigationTarget
BrowserWaitCondition
LxAppError
NetworkBody
Response body of a captured entry.
WebViewCookieSameSite

Constants§

BUILTIN_BROWSER_APPID

Traits§

BrowserNativeInputHost

Functions§

activate
automation_current_tab
Current tab selected by browser automation. Standalone surface tabs can be selected here without changing the product browser’s active tab.
classify_navigation
classify_navigation_json
clear_active
Clear active browser state when the host leaves browser UI entirely.
clear_cookies
clear_network_capture
clear_site_data
click
close
current_tab
current_url
delete_cookie
discard
Discard a tab’s WebView to free memory while keeping its sidebar entry.
evaluate_javascript
extract_url_scheme
Extract the (lowercased) scheme from a URL-like string, or None if the text before the first : is not a valid scheme.
fill
go_back
go_forward
is_lingxia_startup_url
Whether a lingxia:// URL maps to the startup/newtab page or another internal browser page.
list_all_cookies
list_cookies
mark_active
Sync the Rust-side active tab when the SDK switches to an already-live tab.
network_entries
normalize_url_for_wait_compare
open
open_aside_for_app
Open a tab in the API-managed aside browser group.
open_for_app
open_standalone_for_app
Open a standalone browser tab hosted outside the product browser chrome. This supports docked asides and URL surfaces. New-window requests load inline in the same WebView rather than spawning a main-area tab.
present
Mark tab_id active and ask the host shell to bring it onscreen.
press
prune_stale_owner_tabs
Retire browser tabs owned by previous sessions of an lxapp.
query
query_with_max_text
reactivate
Recreate a discarded tab’s WebView, reload its URL, and activate it.
register_native_input_host
reload
scroll
scroll_to
set_cookie
set_tab_present_handler
Registers a process-wide observer used to bring a browser tab onscreen.
set_tabs_changed_handler
Registers a process-wide observer invoked whenever the browser tab set or tab metadata changes: tab opened/closed, active tab switched, or a tab’s URL/title updated. Intended for shell UIs that mirror the tab list (e.g. sidebar tab rows); the previous handler (if any) is replaced.
start_download
start_network_capture
stop_network_capture
tab_favicon
PNG-encoded favicon of tab_id’s current page, if the platform webview reported one (see WebViewDelegate::on_favicon_changed). Kept out of BrowserTabInfo so the serialized tab projection stays byte-free; shell sidebars query it per tab when mirroring the tab list.
tab_is_aside
Whether tab_id belongs to the API-managed aside browser group.
tab_is_standalone
Whether tab_id is hosted outside the product browser chrome, such as a docked aside or URL surface. It remains visible to browser automation.
tab_path
tabs
take_screenshot
type_text
update_tab
wait
wait_for_navigation
wait_for_url
wait_for_url_contains

Type Aliases§

BrowserPageMetadataHandler
(url, title) observer; title is empty when no title has been reported for that URL yet.