AppIntents · IOS API REFERENCE
DisplayRepresentation.Image
struct · iOS 16.0+ · SDK 27.1
struct Image
Members (9)
init · iOS 16.0+init
TypeScriptstatic initSystemNameIsTemplate(name: string, isTemplate?: (boolean) | null): DisplayRepresentation_Image
Swift declarationinit(systemName name: String, isTemplate: Bool? = nil)
Creates an image object that contains the specified system symbol image.
init · iOS 17.0+init
TypeScriptstatic initUrlIsTemplateDisplayStyle(url: string, isTemplate: (boolean) | null, displayStyle: DisplayRepresentation_Image_DisplayStyle): DisplayRepresentation_Image
Swift declarationinit(url: URL, isTemplate: Bool? = nil, displayStyle: DisplayRepresentation.Image.DisplayStyle)
Creates an image from an image file in the local file system, specifying the display style.
init · iOS 16.0+init
TypeScriptstatic initUrlIsTemplate(url: string, isTemplate?: (boolean) | null): DisplayRepresentation_Image
Swift declarationinit(url: URL, isTemplate: Bool? = nil)
Creates an image object from an image file in the local file system.
init · iOS 17.0+init
TypeScriptstatic initUrlWidthHeightIsTemplateDisplayStyle(url: string, width: number, height: number, isTemplate: (boolean) | null, displayStyle: DisplayRepresentation_Image_DisplayStyle): DisplayRepresentation_Image
Swift declarationinit(url: URL, width: Double, height: Double, isTemplate: Bool? = nil, displayStyle: DisplayRepresentation.Image.DisplayStyle)
Creates an image, of the specified size, from an image file in the local file system, specifying
the display style.
init · iOS 16.0+init
TypeScriptstatic initUrlWidthHeightIsTemplate(url: string, width: number, height: number, isTemplate?: (boolean) | null): DisplayRepresentation_Image
Swift declarationinit(url: URL, width: Double, height: Double, isTemplate: Bool? = nil)
Creates an image object, of the specified size, from an image file in the local file system.
init · iOS 17.0+init
TypeScriptstatic initDataIsTemplateDisplayStyle(data: ArrayBuffer, isTemplate: (boolean) | null, displayStyle: DisplayRepresentation_Image_DisplayStyle): DisplayRepresentation_Image
Swift declarationinit(data: Data, isTemplate: Bool? = nil, displayStyle: DisplayRepresentation.Image.DisplayStyle)
Creates an image from the specified data, specifying the display style.
init · iOS 16.0+init
TypeScriptstatic initDataIsTemplate(data: ArrayBuffer, isTemplate?: (boolean) | null): DisplayRepresentation_Image
Swift declarationinit(data: Data, isTemplate: Bool? = nil)
Creates an image object from the specified data.
init · iOS 17.0+init
TypeScriptstatic initNamedIsTemplateDisplayStyle(name: string, isTemplate: (boolean) | null, displayStyle: DisplayRepresentation_Image_DisplayStyle): DisplayRepresentation_Image
Swift declarationinit(named name: String, isTemplate: Bool? = nil, displayStyle: DisplayRepresentation.Image.DisplayStyle)
Creates an image from an image file in the extension’s bundle, specifying the display style.
init · iOS 16.0+init
TypeScriptstatic initNamedIsTemplate(name: string, isTemplate?: (boolean) | null): DisplayRepresentation_Image
Swift declarationinit(named name: String, isTemplate: Bool? = nil)
Creates an image object from an image file in the extension’s bundle.
Skipped declarations
No declarations were skipped in this snapshot.
All AppIntents types →