Interface GeolocationClient

All Superinterfaces:
Serializable

@NullMarked public interface GeolocationClient extends Serializable
Framework-internal port between the Geolocation static API and whatever delivers actual position data — the browser in production, an in-memory driver in browserless tests. Application code does not interact with this interface; it is exposed so external test drivers can replace the production client via UIInternals.setGeolocationClient(GeolocationClient).

Threading: all callbacks on this interface (the future returned by get(com.vaadin.flow.component.geolocation.GeolocationOptions), the onUpdate consumer passed to startWatch(com.vaadin.flow.component.Component, com.vaadin.flow.component.geolocation.GeolocationOptions, com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.geolocation.GeolocationResult>), and the onChange consumer passed to subscribeAvailability(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.component.geolocation.GeolocationAvailability>)) must be invoked on the UI thread.