Skip to main content

GeolocationDelegate

Trait GeolocationDelegate 

Source
pub trait GeolocationDelegate {
    // Provided methods
    fn request_position(&self, _webview: WebView, request: PositionRequest) { ... }
    fn start_watch(&self, _webview: WebView, watch: PositionWatch) { ... }
    fn stop_watch(&self, _webview: WebView, _id: &GeolocationWatchId) { ... }
}
Expand description

A delegate responsible for acquiring the device’s geographic position.

Provided Methods§

Source

fn request_position(&self, _webview: WebView, request: PositionRequest)

A request for a single position fix.

Source

fn start_watch(&self, _webview: WebView, watch: PositionWatch)

A request to start delivering continuous position updates.

Source

fn stop_watch(&self, _webview: WebView, _id: &GeolocationWatchId)

A request to stop delivering updates for a watch previously passed to GeolocationDelegate::start_watch(), and to drop the corresponding PositionWatch.

Implementors§