Skip to content

Geolocator permission status

GeolocatorPermissionStatus #

Bases: Enum

Represent the possible location permissions.

ALWAYS = 'always' #

Permission to access the device's location is allowed even when the app is running in the background.

DENIED = 'denied' #

Permission to access the device's location is denied.

The app should try to request permission using the [Geolocator.request_permission][flet_geolocator.geolocator.Geolocator.request_permission] method.

DENIED_FOREVER = 'deniedForever' #

Permission to access the device's location is permanently denied.

When requesting permissions, the permission dialog will not be shown until the user updates the permission in the app settings.

UNABLE_TO_DETERMINE = 'unableToDetermine' #

Permission status cannot be determined.

This status is only returned by the [Geolocator.request_permission][flet_geolocator.geolocator.Geolocator.request_permission] method on the web platform for browsers that did not implement the Permissions API. See: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API

WHILE_IN_USE = 'whileInUse' #

Permission to access the device's location is allowed only while the app is in use.