UTTypeReference
An object that represents a type of data to load, send, or receive.
Declaration
class UTTypeReferenceOverview
The UTTypeReference object may represent files on disk, abstract data types with no on-disk representation, or entirely unrelated hierarchical classification systems, such as hardware. Each instance has a unique identifier, and helpful properties, preferredFilenameExtension and preferredMIMEType.
The UTTypeReference object may provide additional information related to the type. For example, it may include a localized user-facing description, a reference URL to technical documentation about the type, or its version number. You can look up types by their conformance to get either a type or a list of types that are relevant to your use case.
To define your own types in your app’s Info.plist, see Defining file and data types for your app.
Topics
Looking up a type
Creating a type
init(_:)init(mimeType:)init(mimeType:conformingTo:)init(filenameExtension:)init(filenameExtension:conformingTo:)init(tag:tagClass:conformingToType:)init(exportedAs:)init(exportedAs:conformingTo:)init(importedAs:)init(importedAs:conformingTo:)
Identifying a type
Obtaining tags
Obtaining additional type information
Checking a type’s relationship to another type
Describing a type
Type Properties
Initializers
init(MIMEType:)init(MIMEType:conformingToType:)init(coder:)init(filenameExtension:conformingToType:)init(identifier:)init(tag:tagClass:conformingTo:)