iOS Developer Library

Developer

MobileCoreServices Framework Reference UTType Reference

Options
Deployment Target:

On This Page
Language:

UTType Reference

Inherits From


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import MobileCoreServices

Objective-C

@import MobileCoreServices;

Uniform Type Identifiers (or UTIs) are strings which uniquely identify abstract types. They can be used to describe a file format or an in-memory data type, but can also be used to describe the type of other sorts of entities, such as directories, volumes, or packages.

Type declarations appear in bundle property lists and tell the system several things about a type. Detailed information about the format and declaration of a UTI can be found in Uniform Type Identifiers Overview. A few key concepts that are found in the declaration include:

  • Conformance. Conformance relationships establish a multiple inheritance hierarchy between types. Type property values may be inherited at runtime according to the conformance relationships for each type. When a type's declaration does not include a value for particular type property, then the type's supertypes are searched for a value. Supertypes are searched depth-first, in the order given in the type declaration. This is the only way in which the declared order of the supertypes is significant.

  • Tags. A tag is a string which indicates the definition of the type in some other type identification mechanism, such as a filename extension or MIME type. The namespace of the other type identification mechanism is known as its class. Classes are themselves identified by uniform type identifiers so that the set of valid tag classes is easily extended in the future.

  • Type declarations may include several other properties: a localizable user description of the type, the name of an icon resource in the declaring bundle, a reference URL identifying technical documentation about the type itself, and a version number, which can be incremented as a type evolves. All of these properties are optional.

Functions

  • Creates a uniform type identifier for the type indicated by the specified tag.

    Declaration

    Swift

    func UTTypeCreatePreferredIdentifierForTag(_ inTagClass: CFString!, _ inTag: CFString!, _ inConformingToUTI: CFString!) -> Unmanaged<CFString>!

    Objective-C

    CFStringRef UTTypeCreatePreferredIdentifierForTag ( CFStringRef inTagClass, CFStringRef inTag, CFStringRef inConformingToUTI );

    Parameters

    inTagClass

    The class of the inTag parameter. For more information, see “Type Tag Classes”.

    inTag

    The tag to translate into a uniform type identifier.

    inConformingToUTI

    If not NULL, the returned uniform type identifier must conform to this parameter.

    Return Value

    A new CFStringRef containing a uniform type identifier, or NULL if inTagClass is not a known tag class

    Discussion

    This function is used to translate a type declared using another declaration mechanism (for example, MIME types) into a uniform type identifier. This function searches all UTI declarations for a matching translation. If a conforming parameter is assigned, the search is reduced to the subset of type identifiers that conform to that type.

    If there is more than one possible UTI for the specified tag, the UTI that will be returned is undefined. See UTTypeCreateAllIdentifiersForTag if you need to see all search results.

    If no result is found, this function creates a dynamic type beginning with the dyn prefix. This allows you to pass the UTI around and convert it back to the original tag.

    Import Statement

    Objective-C

    @import MobileCoreServices;

    Swift

    import MobileCoreServices

    Availability

    Available in iOS 3.0 and later

  • Creates an array of all uniform type identifiers for the type indicated by the specified tag.

    Declaration

    Swift

    func UTTypeCreateAllIdentifiersForTag(_ inTagClass: CFString!, _ inTag: CFString!, _ inConformingToUTI: CFString!) -> Unmanaged<CFArray>!

    Objective-C

    CFArrayRef UTTypeCreateAllIdentifiersForTag ( CFStringRef inTagClass, CFStringRef inTag, CFStringRef inConformingToUTI );

    Parameters

    inTagClass

    The class of the inTag parameter. For more information, see “Type Tag Classes”.

    inTag

    The tag to translate into a uniform type identifier.

    inConformingToUTI

    If not nil, all returned uniform type identifiers must conform to this parameter.

    Return Value

    An array of uniform type identifiers, or NULL if inTagClass is not a known tag class

    Discussion

    This function is used to translate a type declared using another declaration mechanism (for example, MIME types) into a uniform type identifier. This function searches all UTI declarations for a matching translation and returns all possible results. If a conforming parameter is assigned, the search is reduced to the subset of type identifiers that conform to that type.

    If no result is found, this function creates a dynamic type beginning with the dyn prefix.

    Import Statement

    Objective-C

    @import MobileCoreServices;

    Swift

    import MobileCoreServices

    Availability

    Available in iOS 3.0 and later

  • Translates a uniform type identifier to a list of tags in a different type classification method.

    Declaration

    Swift

    func UTTypeCopyPreferredTagWithClass(_ inUTI: CFString!, _ inTagClass: CFString!) -> Unmanaged<CFString>!

    Objective-C

    CFStringRef UTTypeCopyPreferredTagWithClass ( CFStringRef inUTI, CFStringRef inTagClass );

    Parameters

    inUTI

    The uniform type identifier to convert.

    inTagClass

    The class of the tags you want to return. For more information, see “Type Tag Classes”.

    Return Value

    An array of tags (as CFStrings), or NULL if there was no translation available to convert the uniform type identifier to the specified class.

    Discussion

    If the type declaration included more than one tag with the specified class, the first tag in the declared tag array is the preferred tag.

    Import Statement

    Objective-C

    @import MobileCoreServices;

    Swift

    import MobileCoreServices

    Availability

    Available in iOS 3.0 and later

  • Returns whether two uniform type identifiers are equal.

    Declaration

    Swift

    func UTTypeEqual(_ inUTI1: CFString!, _ inUTI2: CFString!) -> Boolean

    Objective-C

    Boolean UTTypeEqual ( CFStringRef inUTI1, CFStringRef inUTI2 );

    Parameters

    inUTI1

    A uniform type identifier.

    inUTI2

    The uniform type identifier to compare it to.

    Return Value

    Returns true if the two uniform type identifiers are equivalent.

    Discussion

    If one or both of the identifiers is a dynamic identifier, then the types are equal if either identifier's tag specification is a subset of the other identifier's tag specification.

    Import Statement

    Objective-C

    @import MobileCoreServices;

    Swift

    import MobileCoreServices

    Availability

    Available in iOS 3.0 and later

  • Returns whether a uniform type identifier conforms to another uniform type identifier.

    Declaration

    Swift

    func UTTypeConformsTo(_ inUTI: CFString!, _ inConformsToUTI: CFString!) -> Boolean

    Objective-C

    Boolean UTTypeConformsTo ( CFStringRef inUTI, CFStringRef inConformsToUTI );

    Parameters

    inUTI

    A uniform type identifier to compare.

    inConformsToUTI

    The uniform type identifier to compare it to.

    Return Value

    Returns true if the uniform type identifier is equal to or conforms to the second type.

    Import Statement

    Objective-C

    @import MobileCoreServices;

    Swift

    import MobileCoreServices

    Availability

    Available in iOS 3.0 and later

  • Returns the localized, user-readable type description string associated with a uniform type identifier.

    Declaration

    Swift

    func UTTypeCopyDescription(_ inUTI: CFString!) -> Unmanaged<CFString>!

    Objective-C

    CFStringRef UTTypeCopyDescription ( CFStringRef inUTI );

    Parameters

    inUTI

    A uniform type identifier.

    Return Value

    A localized string describing the type, or NULL if no type description is available.

    Discussion

    The localized string that describes the uniform type is found in the type’s declaration.

    Import Statement

    Objective-C

    @import MobileCoreServices;

    Swift

    import MobileCoreServices

    Availability

    Available in iOS 3.0 and later

  • Returns a uniform type’s declaration.

    Declaration

    Swift

    func UTTypeCopyDeclaration(_ inUTI: CFString!) -> Unmanaged<CFDictionary>!

    Objective-C

    CFDictionaryRef UTTypeCopyDeclaration ( CFStringRef inUTI );

    Parameters

    inUTI

    A uniform type identifier.

    Return Value

    A dictionary that contains the uniform type’s declaration, or NULL if no declaration for that type can be found.

    Discussion

    A uniform type identifier is declared in a bundle’s information property list (info.plist). This function extracts and returns a dictionary that contains the complete declaration of the uniform type identifier. This is useful when your application needs to access properties that does not have a built-in accessor function. For more information on the dictionary format, see Uniform Type Identifiers Overview.

    Import Statement

    Objective-C

    @import MobileCoreServices;

    Swift

    import MobileCoreServices

    Availability

    Available in iOS 3.0 and later

  • Returns the location of a bundle containing the declaration for a type.

    Declaration

    Swift

    func UTTypeCopyDeclaringBundleURL(_ inUTI: CFString!) -> Unmanaged<CFURL>!

    Objective-C

    CFURLRef UTTypeCopyDeclaringBundleURL ( CFStringRef inUTI );

    Parameters

    inUTI

    A uniform type identifier.

    Return Value

    A URL that points to the bundle that holds the uniform type identifier’s declaration, or NULL if a bundle that holds the declaration cannot be located.

    Import Statement

    Objective-C

    @import MobileCoreServices;

    Swift

    import MobileCoreServices

    Availability

    Available in iOS 3.0 and later

Constants

  • These are keys for values found in a UTI dictionary. For more information about UTI dictionaries, see Uniform Type Identifiers Overview.

    Declaration

    Swift

    let kUTExportedTypeDeclarationsKey: CFString! let kUTImportedTypeDeclarationsKey: CFString! let kUTTypeIdentifierKey: CFString! let kUTTypeTagSpecificationKey: CFString! let kUTTypeConformsToKey: CFString! let kUTTypeDescriptionKey: CFString! let kUTTypeIconFileKey: CFString! let kUTTypeReferenceURLKey: CFString! let kUTTypeVersionKey: CFString!

    Objective-C

    const CFStringRef kUTExportedTypeDeclarationsKey; const CFStringRef kUTImportedTypeDeclarationsKey; const CFStringRef kUTTypeIdentifierKey; const CFStringRef kUTTypeTagSpecificationKey; const CFStringRef kUTTypeConformsToKey; const CFStringRef kUTTypeDescriptionKey; const CFStringRef kUTTypeIconFileKey; const CFStringRef kUTTypeReferenceURLKey; const CFStringRef kUTTypeVersionKey;

    Constants

    • kUTExportedTypeDeclarationsKey

      kUTExportedTypeDeclarationsKey

      An array of exported UTI declarations.

      Available in iOS 3.0 and later

    • kUTImportedTypeDeclarationsKey

      kUTImportedTypeDeclarationsKey

      An array of imported UTI declarations.

      Available in iOS 3.0 and later

    • kUTTypeIdentifierKey

      kUTTypeIdentifierKey

      The uniform type identifier for the declared type. This key is required.

      Available in iOS 3.0 and later

    • kUTTypeTagSpecificationKey

      kUTTypeTagSpecificationKey

      A dictionary containing conversions of the uniform type identifier to equivalent tags in other classification schemes. See Type Tag Classes for examples.

      Available in iOS 3.0 and later

    • kUTTypeConformsToKey

      kUTTypeConformsToKey

      The UTIs to which this identifier conforms.

      Available in iOS 3.0 and later

    • kUTTypeDescriptionKey

      kUTTypeDescriptionKey

      A user-visible description of this type (may be localized).

      Available in iOS 3.0 and later

    • kUTTypeIconFileKey

      kUTTypeIconFileKey

      The name of the bundle icon resource to associate with this UTI.

      Available in iOS 3.0 and later

    • kUTTypeReferenceURLKey

      kUTTypeReferenceURLKey

      The URL of a reference document describing this type.

      Available in iOS 3.0 and later

    • kUTTypeVersionKey

      kUTTypeVersionKey

      A version string.

      Available in iOS 3.0 and later

  • These strings identify other tagging classification schemes that a uniform type identifier can be converted to and from.

    Declaration

    Swift

    let kUTTagClassFilenameExtension: CFString! let kUTTagClassMIMEType: CFString!

    Objective-C

    const CFStringRef kUTTagClassFilenameExtension; const CFStringRef kUTTagClassMIMEType;

    Constants

    • kUTTagClassFilenameExtension

      kUTTagClassFilenameExtension

      Indicates that the tag is a filename extension.

      Available in iOS 3.0 and later

    • kUTTagClassMIMEType

      kUTTagClassMIMEType

      Indicates that the tag is a MIME type.

      Available in iOS 3.0 and later

  • These are abstract uniform type identifiers that most other type identifiers are derived from.

    Declaration

    Swift

    let kUTTypeItem: CFString! let kUTTypeContent: CFString! let kUTTypeCompositeContent: CFString! let kUTTypeApplication: CFString! let kUTTypeMessage: CFString! let kUTTypeContact: CFString! let kUTTypeArchive: CFString! let kUTTypeDiskImage: CFString!

    Objective-C

    const CFStringRef kUTTypeItem; const CFStringRef kUTTypeContent; const CFStringRef kUTTypeCompositeContent; const CFStringRef kUTTypeApplication; const CFStringRef kUTTypeMessage; const CFStringRef kUTTypeContact; const CFStringRef kUTTypeArchive; const CFStringRef kUTTypeDiskImage;

    Constants

    • kUTTypeItem

      kUTTypeItem

      The generic abstract type identifier for most things (files, directories).

      Available in iOS 3.0 and later

    • kUTTypeContent

      kUTTypeContent

      The abstract type identifier for anything containing user-viewable document content (documents, pasteboard data, and document packages).

      Available in iOS 3.0 and later

    • kUTTypeCompositeContent

      kUTTypeCompositeContent

      The abstract type identifier for content formats supporting mixed embedded content (i.e., compound documents).

      Available in iOS 3.0 and later

    • kUTTypeApplication

      kUTTypeApplication

      The type identifier for Mac apps.

      Available in iOS 3.0 and later

    • kUTTypeMessage

      kUTTypeMessage

      The abstract type identifier for messages (email, instant message, etc.).

      Available in iOS 3.0 and later

    • kUTTypeContact

      kUTTypeContact

      The abstract type identifier for contact information( for example, a person, group, or organization).

      Available in iOS 3.0 and later

    • kUTTypeArchive

      kUTTypeArchive

      The abstract type identifier for an archive of files and directories.

      Available in iOS 3.0 and later

    • kUTTypeDiskImage

      kUTTypeDiskImage

      The type identifier for a data item mountable as a volume.

      Available in iOS 3.0 and later

  • These are uniform type identifiers for concrete types.

    Declaration

    Swift

    let kUTTypeData: CFString! let kUTTypeDirectory: CFString! let kUTTypeResolvable: CFString! let kUTTypeSymLink: CFString! let kUTTypeMountPoint: CFString! let kUTTypeAliasFile: CFString! let kUTTypeAliasRecord: CFString! let kUTTypeURL: CFString! let kUTTypeFileURL: CFString!

    Objective-C

    const CFStringRef kUTTypeData; const CFStringRef kUTTypeDirectory; const CFStringRef kUTTypeResolvable; const CFStringRef kUTTypeSymLink; const CFStringRef kUTTypeMountPoint; const CFStringRef kUTTypeAliasFile; const CFStringRef kUTTypeAliasRecord; const CFStringRef kUTTypeURL; const CFStringRef kUTTypeFileURL;

    Constants

    • kUTTypeData

      kUTTypeData

      The type identifier for any sort of simple byte stream, including files and in-memory data.

      Available in iOS 3.0 and later

    • kUTTypeDirectory

      kUTTypeDirectory

      The type identifier for a file system directory, including packages and folders.

      Available in iOS 3.0 and later

    • kUTTypeResolvable

      kUTTypeResolvable

      The type identifier for symbolic links and alias files.

      Available in iOS 3.0 and later

    • kUTTypeSymLink

      kUTTypeSymLink

      The type identifier for a symbolic link.

      Available in iOS 3.0 and later

    • kUTTypeMountPoint

      kUTTypeMountPoint

      The type identifier for a root directory of a volume.

      Available in iOS 3.0 and later

    • kUTTypeAliasFile

      kUTTypeAliasFile

      The type identifier for a fully-formed alias file.

      Available in iOS 3.0 and later

    • kUTTypeAliasRecord

      kUTTypeAliasRecord

      The type identifier for raw alias data.

      Available in iOS 3.0 and later

    • kUTTypeURL

      kUTTypeURL

      The type identifier for the bytes of a URL.

      Available in iOS 3.0 and later

    • kUTTypeFileURL

      kUTTypeFileURL

      The type identifier for the text of a "file:" URL.

      Available in iOS 3.0 and later

  • These are the uniform type identifiers for text content.

    Declaration

    Swift

    let kUTTypeText: CFString! let kUTTypePlainText: CFString! let kUTTypeUTF8PlainText: CFString! let kUTTypeUTF16ExternalPlainText: CFString! let kUTTypeUTF16PlainText: CFString! let kUTTypeRTF: CFString! let kUTTypeHTML: CFString! let kUTTypeXML: CFString! let kUTTypeSourceCode: CFString! let kUTTypeCSource: CFString! let kUTTypeObjectiveCSource: CFString! let kUTTypeCPlusPlusSource: CFString! let kUTTypeObjectiveCPlusPlusSource: CFString! let kUTTypeCHeader: CFString! let kUTTypeCPlusPlusHeader: CFString! let kUTTypeJavaSource: CFString!

    Objective-C

    const CFStringRef kUTTypeText; const CFStringRef kUTTypePlainText; const CFStringRef kUTTypeUTF8PlainText; const CFStringRef kUTTypeUTF16ExternalPlainText; const CFStringRef kUTTypeUTF16PlainText; const CFStringRef kUTTypeRTF; const CFStringRef kUTTypeHTML; const CFStringRef kUTTypeXML; const CFStringRef kUTTypeSourceCode; const CFStringRef kUTTypeCSource; const CFStringRef kUTTypeObjectiveCSource; const CFStringRef kUTTypeCPlusPlusSource; const CFStringRef kUTTypeObjectiveCPlusPlusSource; const CFStringRef kUTTypeCHeader; const CFStringRef kUTTypeCPlusPlusHeader; const CFStringRef kUTTypeJavaSource;

    Constants

    • kUTTypeText

      kUTTypeText

      The type identifier for all text-encoded data, including text with markup (HTML, RTF, etc.).

      Available in iOS 3.0 and later

    • kUTTypePlainText

      kUTTypePlainText

      The type identifier for text with no markup and in an unspecified encoding.

      Available in iOS 3.0 and later

    • kUTTypeUTF8PlainText

      kUTTypeUTF8PlainText

      The type identifier for plain text in a UTF-8 encoding.

      Available in iOS 3.0 and later

    • kUTTypeUTF16ExternalPlainText

      kUTTypeUTF16ExternalPlainText

      The type identifier for plain text in a UTF-16 encoding. If the encoded text does not include a byte order mark (BOM), the data has "external representation" byte order (big-endian).

      Available in iOS 3.0 and later

    • kUTTypeUTF16PlainText

      kUTTypeUTF16PlainText

      The type identifier for plain text in a UTF-16 encoding in native byte order. The byte order mark (BOM) is optional. Correspondes to the 'utxt' OSType.

      Available in iOS 3.0 and later

    • kUTTypeRTF

      kUTTypeRTF

      The type identifier for Rich Text Format.

      Available in iOS 3.0 and later

    • kUTTypeHTML

      kUTTypeHTML

      The type identifier for HTML, any version.

      Available in iOS 3.0 and later

    • kUTTypeXML

      kUTTypeXML

      The type identifier for XML data.

      Available in iOS 3.0 and later

    • kUTTypeSourceCode

      kUTTypeSourceCode

      The abstract type identifier for source code (any language).

      Available in iOS 3.0 and later

    • kUTTypeCSource

      kUTTypeCSource

      The type identifier for C source code (.c).

      Available in iOS 3.0 and later

    • kUTTypeObjectiveCSource

      kUTTypeObjectiveCSource

      The type identifier for Objective-C source code (.m).

      Available in iOS 3.0 and later

    • kUTTypeCPlusPlusSource

      kUTTypeCPlusPlusSource

      The type identifier for C++ source code (.cp, etc.).

      Available in iOS 3.0 and later

    • kUTTypeObjectiveCPlusPlusSource

      kUTTypeObjectiveCPlusPlusSource

      The type identifier for Objective-C++ source code.

      Available in iOS 3.0 and later

    • kUTTypeCHeader

      kUTTypeCHeader

      The type identifier for a C header.

      Available in iOS 3.0 and later

    • kUTTypeCPlusPlusHeader

      kUTTypeCPlusPlusHeader

      The type identifier for a C++ header.

      Available in iOS 3.0 and later

    • kUTTypeJavaSource

      kUTTypeJavaSource

      The type identifier for Java source code.

      Available in iOS 3.0 and later

  • Uniform type identifiers for content that includes multiple data types.

    Declaration

    Swift

    let kUTTypePDF: CFString! let kUTTypeRTFD: CFString! let kUTTypeFlatRTFD: CFString! let kUTTypeTXNTextAndMultimediaData: CFString! let kUTTypeWebArchive: CFString!

    Objective-C

    const CFStringRef kUTTypePDF; const CFStringRef kUTTypeRTFD; const CFStringRef kUTTypeFlatRTFD; const CFStringRef kUTTypeTXNTextAndMultimediaData; const CFStringRef kUTTypeWebArchive;

    Constants

    • kUTTypePDF

      kUTTypePDF

      The type identifier for Adobe PDF format.

      Available in iOS 3.0 and later

    • kUTTypeRTFD

      kUTTypeRTFD

      The type identifier for Rich Text Format Directory (RTF with content embedding, on-disk format).

      Available in iOS 3.0 and later

    • kUTTypeFlatRTFD

      kUTTypeFlatRTFD

      The type identifier for Flattened RTFD (pasteboard format).

      Available in iOS 3.0 and later

    • kUTTypeTXNTextAndMultimediaData

      kUTTypeTXNTextAndMultimediaData

      The type identifier for MLTE (Textension) format for mixed text and multimedia data. Corresponds to the 'txtn' OSType.

      Available in iOS 3.0 and later

    • kUTTypeWebArchive

      kUTTypeWebArchive

      The type identifier for the WebKit web archive format

      Available in iOS 3.0 and later

  • Uniform type identifiers for graphics content.

    Declaration

    Swift

    let kUTTypeImage: CFString! let kUTTypeJPEG: CFString! let kUTTypeJPEG2000: CFString! let kUTTypeTIFF: CFString! let kUTTypePICT: CFString! let kUTTypeGIF: CFString! let kUTTypePNG: CFString! let kUTTypeQuickTimeImage: CFString! let kUTTypeAppleICNS: CFString! let kUTTypeBMP: CFString! let kUTTypeICO: CFString!

    Objective-C

    const CFStringRef kUTTypeImage; const CFStringRef kUTTypeJPEG; const CFStringRef kUTTypeJPEG2000; const CFStringRef kUTTypeTIFF; const CFStringRef kUTTypePICT; const CFStringRef kUTTypeGIF; const CFStringRef kUTTypePNG; const CFStringRef kUTTypeQuickTimeImage; const CFStringRef kUTTypeAppleICNS const CFStringRef kUTTypeBMP; const CFStringRef kUTTypeICO;

    Constants

    • kUTTypeImage

      kUTTypeImage

      The abstract type identifier for image data.

      Available in iOS 3.0 and later

    • kUTTypeJPEG

      kUTTypeJPEG

      The type identifier for a JPEG image.

      Available in iOS 3.0 and later

    • kUTTypeJPEG2000

      kUTTypeJPEG2000

      The type identifier for a JPEG-2000 image.

      Available in iOS 3.0 and later

    • kUTTypeTIFF

      kUTTypeTIFF

      The type identifier for a TIFF image.

      Available in iOS 3.0 and later

    • kUTTypePICT

      kUTTypePICT

      The type identifier for a Quickdraw PICT.

      Available in iOS 3.0 and later

    • kUTTypeGIF

      kUTTypeGIF

      The type identifier for a GIF image.

      Available in iOS 3.0 and later

    • kUTTypePNG

      kUTTypePNG

      The type identifier for a PNG image.

      Available in iOS 3.0 and later

    • kUTTypeQuickTimeImage

      kUTTypeQuickTimeImage

      The type identifier for a QuickTime image. Corresponds to the 'qtif' OSType.

      Available in iOS 3.0 and later

    • kUTTypeAppleICNS

      kUTTypeAppleICNS

      The type identifier for Apple icon data.

      Available in iOS 3.0 and later

    • kUTTypeBMP

      kUTTypeBMP

      The type identifier for a Windows bitmap.

      Available in iOS 3.0 and later

    • kUTTypeICO

      kUTTypeICO

      The type identifier for Windows icon data.

      Available in iOS 3.0 and later

  • Uniform type identifier for audio and video content.

    Declaration

    Swift

    let kUTTypeAudiovisualContent: CFString! let kUTTypeMovie: CFString! let kUTTypeVideo: CFString! let kUTTypeAudio: CFString! let kUTTypeQuickTimeMovie: CFString! let kUTTypeMPEG: CFString! let kUTTypeMPEG4: CFString! let kUTTypeMP3: CFString! let kUTTypeMPEG4Audio: CFString! let kUTTypeAppleProtectedMPEG4Audio: CFString!

    Objective-C

    const CFStringRef kUTTypeAudiovisualContent; const CFStringRef kUTTypeMovie; const CFStringRef kUTTypeVideo; const CFStringRef kUTTypeAudio; const CFStringRef kUTTypeQuickTimeMovie; const CFStringRef kUTTypeMPEG; const CFStringRef kUTTypeMPEG4; const CFStringRef kUTTypeMP3; const CFStringRef kUTTypeMPEG4Audio; const CFStringRef kUTTypeAppleProtectedMPEG4Audio;

    Constants

    • kUTTypeAudiovisualContent

      kUTTypeAudiovisualContent

      An abstract type identifier for audio and/or video content.

      Available in iOS 3.0 and later

    • kUTTypeMovie

      kUTTypeMovie

      An abstract type identifier for a media format which may contain both video and audio. Corresponds to what users would label a "movie"

      Available in iOS 3.0 and later

    • kUTTypeVideo

      kUTTypeVideo

      An abstract type identifier for pure video data(no audio).

      Available in iOS 3.0 and later

    • kUTTypeAudio

      kUTTypeAudio

      An abstract type identifier for pure audio data (no video).

      Available in iOS 3.0 and later

    • kUTTypeQuickTimeMovie

      kUTTypeQuickTimeMovie

      The type identifier for a QuickTime movie.

      Available in iOS 3.0 and later

    • kUTTypeMPEG

      kUTTypeMPEG

      The type identifier for a MPEG-1 or MPEG-2 movie.

      Available in iOS 3.0 and later

    • kUTTypeMPEG4

      kUTTypeMPEG4

      The type identifier for a MPEG-4 movie.

      Available in iOS 3.0 and later

    • kUTTypeMP3

      kUTTypeMP3

      The type identifier for MP3 audio.

      Available in iOS 3.0 and later

    • kUTTypeMPEG4Audio

      kUTTypeMPEG4Audio

      The type identifier for a MPEG-4 audio layer (.m4a, or the MIME type audio/MP4).

      Available in iOS 3.0 and later

    • kUTTypeAppleProtectedMPEG4Audio

      kUTTypeAppleProtectedMPEG4Audio

      The type identifier for Apple protected MPEG4 format (.m4p, iTunes music store format).

      Available in iOS 3.0 and later

  • Uniform type identifiers for different directory types.

    Declaration

    Swift

    let kUTTypeFolder: CFString! let kUTTypeVolume: CFString! let kUTTypePackage: CFString! let kUTTypeBundle: CFString! let kUTTypeFramework: CFString!

    Objective-C

    const CFStringRef kUTTypeFolder; const CFStringRef kUTTypeVolume; const CFStringRef kUTTypePackage; const CFStringRef kUTTypeBundle; const CFStringRef kUTTypeFramework;

    Constants

    • kUTTypeFolder

      kUTTypeFolder

      The type identifier for a a user-browsable directory (i.e., not a package).

      Available in iOS 3.0 and later

    • kUTTypeVolume

      kUTTypeVolume

      The type identifier for the root folder of a volume/mount point.

      Available in iOS 3.0 and later

    • kUTTypePackage

      kUTTypePackage

      The type identifier for a packaged directory.

      Available in iOS 3.0 and later

    • kUTTypeBundle

      kUTTypeBundle

      The type identifier for a directory conforming to a CFBundle layout.

      Available in iOS 3.0 and later

    • kUTTypeFramework

      kUTTypeFramework

      The type identifier for directory conforming to an OS X framework.

      Available in iOS 3.0 and later

  • Uniform type identifiers for application types.

    Declaration

    Swift

    let kUTTypeApplicationBundle: CFString! let kUTTypeApplicationFile: CFString!

    Objective-C

    const CFStringRef kUTTypeApplicationBundle; const CFStringRef kUTTypeApplicationFile;

    Constants

    • kUTTypeApplicationBundle

      kUTTypeApplicationBundle

      The type identifier for a bundled application.

      Available in iOS 3.0 and later

    • kUTTypeApplicationFile

      kUTTypeApplicationFile

      The type identifier for a single-file Carbon/Classic application.

      Available in iOS 3.0 and later

  • Uniform type identifiers for contact types.

    Declaration

    Swift

    let kUTTypeVCard: CFString!

    Objective-C

    const CFStringRef kUTTypeVCard;

    Constants

    • kUTTypeVCard

      kUTTypeVCard

      The type identifier for VCard format.

      Available in iOS 3.0 and later

  • Uniform type identifiers for types that do not fit in other categories.

    Declaration

    Swift

    let kUTTypeInkText: CFString!

    Objective-C

    const CFStringRef kUTTypeInkText;

    Constants

    • kUTTypeInkText

      kUTTypeInkText

      The type identifier for Opaque InkText data.

      Available in iOS 3.0 and later