LSSetDefaultHandlerForURLScheme

Function LSSetDefaultHandlerForURLScheme 

Source
pub unsafe extern "C-unwind" fn LSSetDefaultHandlerForURLScheme(
    in_url_scheme: &CFString,
    in_handler_bundle_id: &CFString,
) -> i32
👎Deprecated: Use -[NSWorkspace setDefaultApplicationAtURL:toOpenURLsWithScheme:completionHandler:] instead.
Available on crate feature LSInfo only.
Expand description

Sets the user’s preferred handler for the specified URL scheme. The handler is specified as an application bundle identifier.

Parameter inURLScheme: the url scheme to set a default handler for

Parameter inHandlerBundleID: the bundle identifier to be set as the default handler for the given scheme