<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplication/LaunchOptionsKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIApplicationLaunchOptionsKey"
  },
  "title" : "UIApplication.LaunchOptionsKey"
}
-->

# UIApplication.LaunchOptionsKey

The keys you use to access values in the launch options dictionary that the system passes to your app at initialization.

```
struct LaunchOptionsKey
```

## Overview

These keys are passed to the options dictionary that’s passed to the [`application(_:willFinishLaunchingWithOptions:)`](/documentation/UIKit/UIApplicationDelegate/application(_:willFinishLaunchingWithOptions:)) and [`application(_:didFinishLaunchingWithOptions:)`](/documentation/UIKit/UIApplicationDelegate/application(_:didFinishLaunchingWithOptions:)) methods of the app delegate.

## Topics

### Accessing launch options

[`UIApplicationLaunchOptionsBluetoothCentralsKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/bluetoothCentrals)

A key indicating that the app was relaunched to handle Bluetooth-related events.

[`UIApplicationLaunchOptionsBluetoothPeripheralsKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/bluetoothPeripherals)

A key indicating that the app should continue actions associated with its Bluetooth peripheral objects.

[`UIApplicationLaunchOptionsCloudKitShareMetadataKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/cloudKitShareMetadata)

A key indicating that the app received a CloudKit share invitation.

[`UIApplicationLaunchOptionsEventAttributionKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/eventAttribution)

UserInfo contains a [`UIEventAttribution`](/documentation/UIKit/UIEventAttribution) to go along with a URL open on launch

[`UIApplicationLaunchOptionsLocationKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/location)

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

[`UIApplicationLaunchOptionsNewsstandDownloadsKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/newsstandDownloads)

A key indicating that the app was launched to process newly downloaded Newsstand assets.

[`UIApplicationLaunchOptionsRemoteNotificationKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/remoteNotification)

A key indicating that a remote notification is available for the app to process.

[`UIApplicationLaunchOptionsShortcutItemKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/shortcutItem)

A key indicating that the app was launched in response to the user selecting a Home screen quick action.

[`UIApplicationLaunchOptionsSourceApplicationKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/sourceApplication)

A key indicating that another app requested the launch of your app.

[`UIApplicationLaunchOptionsURLKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/url)

A key indicating that the app was launched so that it could open the specified URL.

[`UIApplicationLaunchOptionsUserActivityDictionaryKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/userActivityDictionary)

A key indicating a dictionary associated with an activity that the user wants to continue.

[`UIApplicationLaunchOptionsUserActivityTypeKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/userActivityType)

A key indicating the type of user activity that the user wants to continue.

[`UIApplicationLaunchOptionsAnnotationKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/annotation)

A key indicating that the URL passed to your app contained custom annotation data from the source app.

[`UIApplicationLaunchOptionsLocalNotificationKey`](/documentation/UIKit/UIApplication/LaunchOptionsKey/localNotification)

A key indicating that the app was launched to handle a local notification.

### Creating a launch options key

[`init(rawValue:)`](/documentation/UIKit/UIApplication/LaunchOptionsKey/init(rawValue:))

Creates a launch options key with the specified raw value.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)