permission

open val permission: StateFlow<LocationPermission>(source)

Current foreground location permission.

This value also reflects changes made outside the application when the platform reports them.

The default is always LocationPermission.Granted at LocationAccuracyAuthorization.Unknown. A source where permission is not a concept, such as an external receiver or a network feed, keeps the default and needs no permission handling.