Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(url: &str) -> bool
Expand description

Route a navigation URL to the most recently opened matching channel. Returns true when a channel took it, in which case the navigation must be cancelled. Managed WebViews dispatch automatically in handle_navigation; this is public for platform surfaces backed by a bare native WebView, whose navigation delegates must offer the URL themselves. Called for every navigation, so the no-channel path is one atomic load.