Package com.vaadin.flow.component.geolocation
@NullMarked
package com.vaadin.flow.component.geolocation
-
ClassDescriptionFacade for the browser's Geolocation API.Whether the browser can read the user's location right now, and if so what permission state the origin has.Port between the
Geolocationfacade and whatever delivers actual position data — the browser in production, an in-memory test driver in unit tests.Handle to a watcher watch session.Framework internal. Factory SPI that producesGeolocationClientinstances perUI, resolved viaLookupwhen aGeolocationfacade is constructed.A single point in the world, as reported by the browser.A failed location reading: the request did not produce aGeolocationPosition.Typed reasons why a geolocation request can fail.Tuning knobs for a geolocation request — controls the accuracy / battery / speed / freshness trade-off of a singleGeolocation.getPosition(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.geolocation.GeolocationPosition>, com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.geolocation.GeolocationError>)orGeolocation.watchPosition(com.vaadin.flow.component.Component)call.Builder forGeolocationOptions.The actual answer to a geolocation request — either a successful reading or an error.The initial state of a newly started watching session, held byGeolocationWatcher.valueSignal()until the browser reports its first position or error.A successful location reading: the coordinates the browser reported and the moment in time they were taken.Anything a watcher can currently hold — a successful reading, an error, or the initial "waiting for first reading" state.A handle to a geolocation watching session, returned byGeolocation.watchPosition(Component)/Geolocation.watchPosition(Component, GeolocationOptions).