Launch Options Keys

Keys used to access values in the launch options dictionary passed to the application(_:willFinishLaunchingWithOptions:) and application(_:didFinishLaunchingWithOptions:) methods of the app delegate.

Symbols

Constants

static let url: UIApplicationLaunchOptionsKey

The presence of this key indicates that the app was launched in order to open a URL. The value of this key is an NSURL object containing the URL to open.

static let sourceApplication: UIApplicationLaunchOptionsKey

The presence of this key identifies the app that requested the launch of your app. The value of this key is an NSString object that represents the bundle ID of the app that made the request.

static let remoteNotification: UIApplicationLaunchOptionsKey

The presence of this key indicates that a remote notification is available for the app to process. The value of this key is an NSDictionary containing the payload of the remote notification. See the description of application(_:didReceiveRemoteNotification:) for further information about handling remote notifications.

static let annotation: UIApplicationLaunchOptionsKey

The presence of this key indicates that custom data was provided by the app that requested the opening of the URL. The value of this key is a property-list object containing the custom data. The same object is also passed to the annotation parameter of the application(_:open:sourceApplication:annotation:) method. The contents of this property-list object are specific to the app that made the request.

static let location: UIApplicationLaunchOptionsKey
static let newsstandDownloads: UIApplicationLaunchOptionsKey

The presence of this key indicates that newly downloaded Newsstand assets are available for your app. The value of this key is an array of string identifiers that identify the NKAssetDownload objects corresponding to the assets. Although you can use the identifiers for cross-checking purposes, you should obtain the definitive array of NKAssetDownload objects (representing asset downloads in progress or in error) through the downloadingAssets property of the NKLibrary object representing the Newsstand app’s library.

static let bluetoothCentrals: UIApplicationLaunchOptionsKey

The presence of this key indicates that the app previously had one or more CBCentralManager objects and was relaunched by the Bluetooth system to continue actions associated with those objects. The value of this key is an NSArray object containing one or more NSString objects.

static let bluetoothPeripherals: UIApplicationLaunchOptionsKey

The presence of this key indicates that the app previously had one or more CBPeripheralManager objects and was relaunched by the Bluetooth system to continue actions associated with those objects. The value of this key is an NSArray object containing one or more NSString objects.

static let shortcutItem: UIApplicationLaunchOptionsKey

Contains a UIApplicationShortcutItem object, representing the Home screen quick action that the user selected to launch or activate your app.

static let userActivityDictionary: UIApplicationLaunchOptionsKey

The presence of this key indicates that the app was launched in order to continue a user activity. The value of this key is an NSDictionary object containing the key userActivityType, whose value is an NSString object identifying the activity type.

static let userActivityType: UIApplicationLaunchOptionsKey

This key is used in the subdictionary which is the value of shortcutItem. The value of this key is an NSString object identifying the activity type.