Contents

urlsForApplications(toOpen:)

Returns an array of URLs to all available applications that can open the specified content type.

Declaration

func urlsForApplications(toOpen contentType: UTType) -> [URL]

Parameters

  • contentType:

    The content type to open.

Return Value

An array of URLs to available apps that can open the specified contentType. Returns an empty array if no app can open the content type.

Discussion

The system sorts the resulting array according to each app’s suitability to open the contentType. The returned array lists the best match first.

See Also

Requesting Information