Function

LSGetHandlerOptionsForContentType(_:)

Gets the handler options for the specified content type.

Declaration

func LSGetHandlerOptionsForContentType(_ inContentType: CFString!) -> LSHandlerOptions

Parameters

inContentType

The content type for which the handler options are to be obtained. The content type is a uniform type identifier (UTI).

Return Value

The handler option that is set for the specified content type. For possible values, see LSHandlerOptions.

Discussion

Thread-safe since OS X v10.4.

See Also

Working With Role Handlers

func LSCopyAllRoleHandlersForContentType(CFString, LSRolesMask) -> Unmanaged<CFArray>?

Locates an array of application bundle identifiers for applications capable of handling a specified content type with the specified roles.

func LSCopyDefaultRoleHandlerForContentType(CFString, LSRolesMask) -> Unmanaged<CFString>?

Returns the application bundle identifier of the user’s preferred default handler for the specified content type with the specified role.

func LSSetDefaultRoleHandlerForContentType(CFString, LSRolesMask, CFString) -> OSStatus

Sets the user’s preferred default handler for the specified content type in the specified roles.

func LSSetHandlerOptionsForContentType(CFString!, LSHandlerOptions) -> OSStatus

Sets the handler option for the specified content type.

Deprecated
func LSCopyAllHandlersForURLScheme(CFString) -> Unmanaged<CFArray>?

Locates application bundle identifiers for applications capable of handling the specified URL scheme.

Deprecated
func LSCopyDefaultHandlerForURLScheme(CFString) -> Unmanaged<CFString>?

Returns the application bundle identifier of the user’s preferred default handler for the specified URL scheme.

Deprecated
func LSSetDefaultHandlerForURLScheme(CFString, CFString) -> OSStatus

Sets the user’s preferred default handler for the specified URL scheme.