One Logo Pool Ball
UniformTypeIdentifiers · IOS API REFERENCE

UTTypeReference

class · iOS 14.0+ · SDK 27.1

class UTTypeReference

Members (26)

init · iOS 14.0+

init

TypeScript
static initExportedAs(identifier: string): UTTypeReference
Swift declaration
init(exportedAs identifier: String)
init · iOS 14.0+

init

TypeScript
static initExportedAsConformingTo(identifier: string, parentType: UTType): UTTypeReference
Swift declaration
init(exportedAs identifier: String, conformingTo parentType: UTType)
init · iOS 14.0+

init

TypeScript
static initImportedAs(identifier: string): UTTypeReference
Swift declaration
init(importedAs identifier: String)
init · iOS 14.0+

init

TypeScript
static initImportedAsConformingTo(identifier: string, parentType: UTType): UTTypeReference
Swift declaration
init(importedAs identifier: String, conformingTo parentType: UTType)
init · iOS 14.0+

init

TypeScript
static initFilenameExtension(filenameExtension: string): (UTTypeReference) | null
Swift declaration
convenience init?(filenameExtension: String)
init · iOS 14.0+

init

TypeScript
static initFilenameExtensionConformingTo(filenameExtension: string, supertype: UTType): (UTTypeReference) | null
Swift declaration
convenience init?(filenameExtension: String, conformingTo supertype: UTType)
init · iOS 14.0+

init

TypeScript
static init(identifier: string): (UTTypeReference) | null
Swift declaration
convenience init?(_ identifier: String)
init · iOS 27.0+

init

TypeScript
static initIdentifierAllowUndeclared(identifier: string, allowUndeclared: boolean): (UTTypeReference) | null
Swift declaration
convenience init?(identifier: String, allowUndeclared: Bool)
init · iOS 14.0+

init

TypeScript
static initMimeType(mimeType: string): (UTTypeReference) | null
Swift declaration
convenience init?(mimeType: String)
init · iOS 14.0+

init

TypeScript
static initMimeTypeConformingTo(mimeType: string, supertype: UTType): (UTTypeReference) | null
Swift declaration
convenience init?(mimeType: String, conformingTo supertype: UTType)
init · iOS 14.0+

init

TypeScript
static initTagTagClassConformingTo(tag: string, tagClass: string, supertype?: (UTType) | null): (UTTypeReference) | null
Swift declaration
convenience init?(tag: String, tagClass: String, conformingTo supertype: UTType?)
static · iOS 14.0+

types

TypeScript
static types(tag: string, tagClass: string, supertype?: (UTType) | null): Array<UTType>
Swift declaration
class func types(tag: String, tagClass: String, conformingTo supertype: UTType?) -> [UTType]
method · iOS 14.0+

conforms

TypeScript
conforms(type: UTType): boolean
Swift declaration
func conforms(to type: UTType) -> Bool
method · iOS 14.0+

isSubtype

TypeScript
isSubtype(type: UTType): boolean
Swift declaration
func isSubtype(of type: UTType) -> Bool
method · iOS 14.0+

isSupertype

TypeScript
isSupertype(type: UTType): boolean
Swift declaration
func isSupertype(of type: UTType) -> Bool
get · iOS 14.0+

isDeclared

TypeScript
get isDeclared(): boolean
Swift declaration
var isDeclared: Bool { get }
get · iOS 14.0+

isDynamic

TypeScript
get isDynamic(): boolean
Swift declaration
var isDynamic: Bool { get }
get · iOS 14.0+

identifier

TypeScript
get identifier(): string
Swift declaration
var identifier: String { get }
get · iOS 14.0+

localizedDescription

TypeScript
get localizedDescription(): (string) | null
Swift declaration
var localizedDescription: String? { get }
get · iOS 14.0+

preferredFilenameExtension

TypeScript
get preferredFilenameExtension(): (string) | null
Swift declaration
var preferredFilenameExtension: String? { get }
get · iOS 14.0+

preferredMIMEType

TypeScript
get preferredMIMEType(): (string) | null
Swift declaration
var preferredMIMEType: String? { get }
get · iOS 14.0+

isPublic

TypeScript
get isPublic(): boolean
Swift declaration
var isPublic: Bool { get }
get · iOS 14.0+

referenceURL

TypeScript
get referenceURL(): (string) | null
Swift declaration
var referenceURL: URL? { get }
get · iOS 14.0+

supertypes

TypeScript
get supertypes(): Array<UTType>
Swift declaration
var supertypes: Set<UTType> { get }
get · iOS 14.0+

tags

TypeScript
get tags(): Record<string, Array<string>>
Swift declaration
var tags: [String : [String]] { get }
get · iOS 14.0+

version

TypeScript
get version(): (_Foundation_NSNumber) | null
Swift declaration
var version: NSNumber? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UTTypeReference.init()

inherited init: cannot prove legal (class declares 16 custom initializers)

All UniformTypeIdentifiers types →