One Logo Pool Ball
AppIntents · IOS API REFERENCE

URLRepresentableIntent

protocol · iOS 18.0+ · SDK 27.1

protocol URLRepresentableIntent : AppIntent

An interface you add to an app intent type so the system can handle it like a universal link. If your app already supports universal links for content, use this protocol to express your app intent types as URLs. When your app intent supports this protocol, the system can use the provided URL to process it. For example, if your app intent supports this protocol and the ``OpenIntent`` protocol, the system opens the contained item by sending the URL to your app’s URL handling code, allowing you to omit the ``AppIntent/perform()`` method in your type. Having a URL representation for your app intent also makes it easier to share its contents with Siri, Shortcuts, and other system features. > Important: This protocol requires your app to support universal links. You can’t use this protocol with a custom URL scheme or other approaches. For information about how to add support for universal links, see <doc://com.apple.documentation/documentation/Xcode/allowing-apps-and-websites-to-link-to-your-content>. Construct URLs using static text and the content of your app intent’s properties. For information on how to create the URL representation, see ``IntentURLRepresentation``.

Members (4)

method · iOS 18.0+

perform

Swift declaration
func perform() async throws -> Never
method · iOS 18.0+

perform

Swift declaration
func perform() async throws -> Never
get · iOS 18.0+

urlRepresentation

Swift declaration
var urlRepresentation: URL? { get async }
method · iOS 18.0+

perform

Swift declaration
func perform() async throws -> Never

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

URLRepresentableIntent.urlRepresentation

Static protocol requirements cannot be called through an instance.

URLRepresentableIntent.urlRepresentation

Static protocol requirements cannot be called through an instance.

All AppIntents types →