Contents

urlsForApplications(withBundleIdentifier:)

Returns an array of URLs to all available applications that can open the specified bundle identifier.

Declaration

func urlsForApplications(withBundleIdentifier bundleIdentifier: String) -> [URL]

Parameters

  • bundleIdentifier:

    The bundle identifier for the apps to open.

Return Value

An array of URLs to available apps that can open the specified bundleIdentifier. Returns an empty array if no app associates with the bundle identifier.

Discussion

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

See Also

Requesting Information