CreateMLComponents · IOS API REFERENCE
ModelMetadata
struct · iOS 17.0+ · SDK 27.1
struct ModelMetadata
User info keys that specify useful information about a model.
Members (11)
init · iOS 17.0+init
TypeScriptstatic init(description?: string, version?: string, author?: string, license?: string, creatorDefined?: Record<string, string>): ModelMetadata
Swift declarationinit(description: String = "", version: String = "", author: String = "", license: String = "", creatorDefined: [String : String] = [:])
Creates model metadata.
get · iOS 17.0+description
TypeScriptget description(): string
Swift declarationvar description: String
A short description of what the model does and/or its purpose.
set · iOS 17.0+description
TypeScriptset description(value: string)
Swift declarationvar description: String
A short description of what the model does and/or its purpose.
get · iOS 17.0+creatorDefined
TypeScriptget creatorDefined(): Record<string, string>
Swift declarationvar creatorDefined: [String : String]
Creator-defined custom metadata.
set · iOS 17.0+creatorDefined
TypeScriptset creatorDefined(value: Record<string, string>)
Swift declarationvar creatorDefined: [String : String]
Creator-defined custom metadata.
get · iOS 17.0+author
TypeScriptget author(): string
Swift declarationvar author: String
The author of this model.
set · iOS 17.0+author
TypeScriptset author(value: string)
Swift declarationvar author: String
The author of this model.
get · iOS 17.0+license
TypeScriptget license(): string
Swift declarationvar license: String
License information for the model.
set · iOS 17.0+license
TypeScriptset license(value: string)
Swift declarationvar license: String
License information for the model.
get · iOS 17.0+version
TypeScriptget version(): string
Swift declarationvar version: String
A version number encoded as a string.
set · iOS 17.0+version
TypeScriptset version(value: string)
Swift declarationvar version: String
A version number encoded as a string.
Skipped declarations
No declarations were skipped in this snapshot.
All CreateMLComponents types →