---
title: promptDeclined
framework: corelocation
role: symbol
role_heading: Type Property
path: corelocation/clerror-swift.struct/promptdeclined
---

# promptDeclined

A constant that indicates the user didn’t grant the requested temporary authorization.

## Declaration

```swift
static var promptDeclined: CLError.Code { get }
```

## Discussion

Discussion If the prompt was shown to the user, who declined, or if an error prevented the prompt from being displayed, then requestTemporaryPreciseLocationAuthorization(withPurposeKey:completion:) throws this error.

## See Also

### Getting general errors

- [locationUnknown](corelocation/clerror-swift.struct/locationunknown.md)
- [denied](corelocation/clerror-swift.struct/denied.md)
- [network](corelocation/clerror-swift.struct/network.md)
- [headingFailure](corelocation/clerror-swift.struct/headingfailure.md)
- [rangingUnavailable](corelocation/clerror-swift.struct/rangingunavailable.md)
- [rangingFailure](corelocation/clerror-swift.struct/rangingfailure.md)
- [CLError.Code](corelocation/clerror-swift.struct/code.md)
