Skip to main content

GeolocationStatus

Namespace: BlazorNative.Core

The wire-mirrored outcome of a geolocation request. Denial (1/2/3), unavailability (4) and error (5) are all VALUES — never an exception, never a hang. The numeric values are the ABI contract; do not reorder.

public enum GeolocationStatus

Inheritance ObjectValueTypeEnumGeolocationStatus
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields

NameValueDescription
Granted0Permission held; a fix was obtained (the payload carries it).
Denied1Denied THIS time; a later request MAY prompt again.
DeniedPermanently2"Don't ask again" / iOS .denied — only a Settings change lifts it.
Restricted3Parental controls / MDM — the user CANNOT grant it.
LocationUnavailable4Permission is fine, but location services are off or no fix is available.
Error5Unexpected host error (a caught native throw).