Documentation
¶
Overview ¶
Provide uniform type identifiers that describe file types for storage or transfer.
Index ¶
- Variables
- type IType
- type Type
- func NewType() Type
- func TypeFrom(ptr unsafe.Pointer) Type
- func Type_ExportedTypeWithIdentifier(identifier string) Type
- func Type_ExportedTypeWithIdentifierConformingToType(identifier string, parentType IType) Type
- func Type_ImportedTypeWithIdentifier(identifier string) Type
- func Type_ImportedTypeWithIdentifierConformingToType(identifier string, parentType IType) Type
- func Type_TypeWithFilenameExtension(filenameExtension string) Type
- func Type_TypeWithFilenameExtensionConformingToType(filenameExtension string, supertype IType) Type
- func Type_TypeWithIdentifier(identifier string) Type
- func Type_TypeWithMIMEType(mimeType string) Type
- func Type_TypeWithMIMETypeConformingToType(mimeType string, supertype IType) Type
- func Type_TypeWithTagTagClassConformingToType(tag string, tagClass string, supertype IType) Type
- func Type_TypesWithTagTagClassConformingToType(tag string, tagClass string, supertype IType) []Type
- func (t_ Type) ConformsToType(type_ IType) bool
- func (t_ Type) Identifier() string
- func (t_ Type) Init() Type
- func (t_ Type) IsDeclared() bool
- func (t_ Type) IsDynamic() bool
- func (t_ Type) IsPublicType() bool
- func (t_ Type) IsSubtypeOfType(type_ IType) bool
- func (t_ Type) IsSupertypeOfType(type_ IType) bool
- func (t_ Type) LocalizedDescription() string
- func (t_ Type) PreferredFilenameExtension() string
- func (t_ Type) PreferredMIMEType() string
- func (t_ Type) ReferenceURL() foundation.URL
- func (t_ Type) Supertypes() foundation.Set
- func (t_ Type) Tags() map[string][]string
- func (t_ Type) Version() foundation.Number
Constants ¶
This section is empty.
Variables ¶
var TypeClass = _TypeClass{objc.GetClass("UTType")}
The class instance for the Type class.
Functions ¶
This section is empty.
Types ¶
type IType ¶
type IType interface { objc.IObject ConformsToType(type_ IType) bool IsSubtypeOfType(type_ IType) bool IsSupertypeOfType(type_ IType) bool Identifier() string IsPublicType() bool Supertypes() foundation.Set Version() foundation.Number ReferenceURL() foundation.URL Tags() map[string][]string PreferredFilenameExtension() string PreferredMIMEType() string IsDynamic() bool LocalizedDescription() string IsDeclared() bool }
An interface definition for the Type class.
type Type ¶
An object that represents a type of data to load, send, or receive. Full Topic
func Type_ExportedTypeWithIdentifier ¶
Creates a type your app owns based on an identifier. Full Topic
func Type_ExportedTypeWithIdentifierConformingToType ¶
Creates a type your app owns based on an identifier and a supertype that it conforms to. Full Topic
func Type_ImportedTypeWithIdentifier ¶
Creates a type your app uses, but doesn’t own, based on an identifier. Full Topic
func Type_ImportedTypeWithIdentifierConformingToType ¶
Creates a type your app uses, but doesn’t own, based on an identifier and a supertype that it conforms to. Full Topic
func Type_TypeWithFilenameExtension ¶
Creates a type that represents the specified filename extension. Full Topic
func Type_TypeWithFilenameExtensionConformingToType ¶
Creates a type that represents the specified filename extension and conforms to an existing type. Full Topic
func Type_TypeWithIdentifier ¶
Creates a type based on an identifier. Full Topic
func Type_TypeWithMIMEType ¶
Creates a type based on a MIME type. Full Topic
func Type_TypeWithMIMETypeConformingToType ¶
Creates a type based on a MIME type and a supertype that it conforms to. Full Topic
func Type_TypeWithTagTagClassConformingToType ¶
Creates a type that represents the specified tag and tag class and which conforms to an existing type. Full Topic
func Type_TypesWithTagTagClassConformingToType ¶
Returns an array of types from the provided tag and tag class. Full Topic
func (Type) ConformsToType ¶
Returns a Boolean value that indicates whether a type conforms to the type. Full Topic
func (Type) Identifier ¶
The string that represents the type. Full Topic
func (Type) IsDeclared ¶
A Boolean value that indicates whether the system declares the type. Full Topic
func (Type) IsDynamic ¶
A Boolean value that indicates whether the system generates the type. Full Topic
func (Type) IsPublicType ¶
A Boolean value that indicates whether the type is in the public domain. Full Topic
func (Type) IsSubtypeOfType ¶
Returns a Boolean value that indicates whether a type is higher in a hierarchy than the type. Full Topic
func (Type) IsSupertypeOfType ¶
Returns a Boolean value that indicates whether a type is lower in a hierarchy than the type. Full Topic
func (Type) LocalizedDescription ¶
A localized description of the type. Full Topic
func (Type) PreferredFilenameExtension ¶
The preferred filename extension for the type. Full Topic
func (Type) PreferredMIMEType ¶
The preferred MIME type for the type. Full Topic
func (Type) ReferenceURL ¶
func (t_ Type) ReferenceURL() foundation.URL
The reference URL for the type. Full Topic
func (Type) Supertypes ¶
func (t_ Type) Supertypes() foundation.Set
The set of types the type directly or indirectly conforms to. Full Topic
func (Type) Tags ¶
The tag specification dictionary of the type. Full Topic
func (Type) Version ¶
func (t_ Type) Version() foundation.Number
The type’s version, if available. Full Topic