---
title: CLAuthorizationStatus.authorizedWhenInUse
framework: corelocation
role: symbol
role_heading: Case
path: corelocation/clauthorizationstatus/authorizedwheninuse
---

# CLAuthorizationStatus.authorizedWhenInUse

The user authorized the app to start location services while it is in use.

## Declaration

```swift
case authorizedWhenInUse
```

## Discussion

Discussion This authorization allows you to use all location services and receive location events only when your app is in use. To continue using location services in the background, enable Continuous Background Location Updates and start the services while the app is in use.

## See Also

### Getting the authorization status

- [CLAuthorizationStatus.notDetermined](corelocation/clauthorizationstatus/notdetermined.md)
- [CLAuthorizationStatus.restricted](corelocation/clauthorizationstatus/restricted.md)
- [CLAuthorizationStatus.denied](corelocation/clauthorizationstatus/denied.md)
- [authorized](corelocation/clauthorizationstatus/authorized.md)
- [CLAuthorizationStatus.authorizedAlways](corelocation/clauthorizationstatus/authorizedalways.md)
