Skip to main content

GeolocationExt

Trait GeolocationExt 

Source
pub trait GeolocationExt<R: Runtime> {
    // Required method
    fn geolocation(&self) -> &Geolocation<R>;
}
Expand description

Extensions to tauri::App, tauri::AppHandle, tauri::WebviewWindow, tauri::Webview and tauri::Window to access the geolocation APIs.

Required Methods§

Source

fn geolocation(&self) -> &Geolocation<R>

Returns the handle to the geolocation APIs.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<R: Runtime, T: Manager<R>> GeolocationExt<R> for T