<!--
{
  "availability" : [
    "iOS: 4.0.0 - 26.0.0",
    "iPadOS: 4.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplication/LaunchOptionsKey/location",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UIApplicationLaunchOptionsLocationKey"
  },
  "title" : "location"
}
-->

# location

A key indicating that the app was launched to handle an incoming location event.

```
static let location: UIApplication.LaunchOptionsKey
```

## Discussion

The value of this key is an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing a Boolean value. You should use the presence of this key as a signal to create a <doc://com.apple.documentation/documentation/CoreLocation/CLLocationManager> object and start location services again. Location data is delivered only to the location manager delegate and not using this key.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)