urlForApplication(toOpen:)
Returns the URL to the default app to open the specified content type.
Declaration
func urlForApplication(toOpen contentType: UTType) -> URL?Parameters
- contentType:
The content type to open.
Return Value
The URL of the default app that opens the specified contentType. Returns nil if no app can open the content type.
See Also
Requesting Information
urlForApplication(toOpen:)urlForApplication(withBundleIdentifier:)urlsForApplications(toOpen:)urlsForApplications(toOpen:)urlsForApplications(withBundleIdentifier:)getFileSystemInfo(forPath:isRemovable:isWritable:isUnmountable:description:type:)isFilePackage(atPath:)frontmostApplicationrunningApplicationsmenuBarOwningApplicationgetInfoForFile(_:application:type:)