Class

UIScene.OpenURLOptions

Options that UIKit provides when asking your app to open a URL.

Declaration

class OpenURLOptions : NSObject

Overview

Do not create a UIScene.OpenURLOptions object directly. UIKit creates one for you when your app receives a request to open a URL. Use the information in the object to determine how to respond to the URL.

Topics

Specifying the URL Details

var sourceApplication: String?

The bundle ID of the app that originated the request.

var annotation: Any?

A property-list object containing the annotation data provided by a document interaction controller.

Specifying the Behavior Options

var openInPlace: Bool

A Boolean value indicating whether you should open the URL at its current location instead of copying it to your app's container.

Relationships

Inherits From

Conforms To

See Also

Getting the URL

var url: URL

The URL to open.

Beta
var options: UIScene.OpenURLOptions

Additional information for determining how to open the URL.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software