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§
Sourcefn request_position(&self, _webview: WebView, request: PositionRequest)
fn request_position(&self, _webview: WebView, request: PositionRequest)
A request for a single position fix.
Sourcefn start_watch(&self, _webview: WebView, watch: PositionWatch)
fn start_watch(&self, _webview: WebView, watch: PositionWatch)
A request to start delivering continuous position updates.
Sourcefn stop_watch(&self, _webview: WebView, _id: &GeolocationWatchId)
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.