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.

var options: UIScene.OpenURLOptions

Additional information for determining how to open the URL.