One Logo Pool Ball
AppIntents · IOS API REFERENCE

DisplayRepresentation.Image

struct · iOS 16.0+ · SDK 27.1

struct Image

Members (9)

init · iOS 16.0+

init

TypeScript
static initSystemNameIsTemplate(name: string, isTemplate?: (boolean) | null): DisplayRepresentation_Image
Swift declaration
init(systemName name: String, isTemplate: Bool? = nil)

Creates an image object that contains the specified system symbol image.

init · iOS 17.0+

init

TypeScript
static initUrlIsTemplateDisplayStyle(url: string, isTemplate: (boolean) | null, displayStyle: DisplayRepresentation_Image_DisplayStyle): DisplayRepresentation_Image
Swift declaration
init(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

TypeScript
static initUrlIsTemplate(url: string, isTemplate?: (boolean) | null): DisplayRepresentation_Image
Swift declaration
init(url: URL, isTemplate: Bool? = nil)

Creates an image object from an image file in the local file system.

init · iOS 17.0+

init

TypeScript
static initUrlWidthHeightIsTemplateDisplayStyle(url: string, width: number, height: number, isTemplate: (boolean) | null, displayStyle: DisplayRepresentation_Image_DisplayStyle): DisplayRepresentation_Image
Swift declaration
init(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

TypeScript
static initUrlWidthHeightIsTemplate(url: string, width: number, height: number, isTemplate?: (boolean) | null): DisplayRepresentation_Image
Swift declaration
init(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

TypeScript
static initDataIsTemplateDisplayStyle(data: ArrayBuffer, isTemplate: (boolean) | null, displayStyle: DisplayRepresentation_Image_DisplayStyle): DisplayRepresentation_Image
Swift declaration
init(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

TypeScript
static initDataIsTemplate(data: ArrayBuffer, isTemplate?: (boolean) | null): DisplayRepresentation_Image
Swift declaration
init(data: Data, isTemplate: Bool? = nil)

Creates an image object from the specified data.

init · iOS 17.0+

init

TypeScript
static initNamedIsTemplateDisplayStyle(name: string, isTemplate: (boolean) | null, displayStyle: DisplayRepresentation_Image_DisplayStyle): DisplayRepresentation_Image
Swift declaration
init(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

TypeScript
static initNamedIsTemplate(name: string, isTemplate?: (boolean) | null): DisplayRepresentation_Image
Swift declaration
init(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 →