Interface GeolocationOutcome
- All Superinterfaces:
GeolocationResult,Serializable
- All Known Implementing Classes:
GeolocationError,GeolocationPosition
public sealed interface GeolocationOutcome
extends GeolocationResult
permits GeolocationPosition, GeolocationError
The actual answer to a geolocation request — either a successful reading or
an error. Narrower than
GeolocationResult: the "waiting for first
reading" GeolocationPending state is excluded because a one-shot
request never produces it.
Used as the result type of the internal GeolocationClient.get(com.vaadin.flow.component.geolocation.GeolocationOptions) future,
where the sum-type encoding keeps Pending out of the contract. Application
code rarely references this type directly: Geolocation.getPosition delivers the position or the error through separate
callbacks.