pub unsafe extern "C-unwind" fn LSCopyApplicationURLsForURL(
in_url: &CFURL,
in_role_mask: LSRolesMask,
) -> Option<CFRetained<CFArray>>
LSInfo
and LaunchServices
and LSConstants
only.Expand description
Returns an array of URLs to applications that offer the requested role(s) for the input item.
Parameter inURL
: The CFURLRef of the item for which all suitable applications
are desired. If the URL is a file URL, it is treated as a
document, and applications are selected based on the document’s
type information. Otherwise, applications are selected based on
the URL’s scheme.
Parameter inRoleMask
: The role(s) which must intersect with the role provided by an
application for the specified item in order for the application
to be included in the result. Pass kLSRolesAll if any role is
acceptable.
Returns: An array of CFURLRefs, one for each application which can open inURL with at least one of the roles in inRoleMask, or NULL if no applications can open the item. When an array is returned, you must eventually release it.
The order of the resulting array is undefined. If you need the default application for the specified URL, use LSCopyDefaultApplicationURLForURL.