Skip to main content

Interface: ImageLoadListener

Properties

errorCallback()

errorCallback: (imageId, permanent, reason) => void

Called when an image fails to load. A failure is permanent if no more attempts will be made.

Parameters

imageId: any

permanent: any

reason: any

Returns

void

Defined in

packages/core/src/types/ImageLoadListener.ts:11


getLoaderImageOptions()?

optional getLoaderImageOptions: (imageId) => Record<string, unknown>

Gets the target options for loading a given image, used by the image loader.

Parameters

imageId: any

Returns

Record<string, unknown>

Loader image options to use when loading the image. Note this is often a DICOMLoaderImageOptions, but doesn't have to be.

Throws

exception to prevent further loading of this image

Defined in

packages/core/src/types/ImageLoadListener.ts:19


successCallback()

successCallback: (imageId, image) => void

Called when an image is loaded. May be called multiple times with increasing status values.

Parameters

imageId: any

image: any

Returns

void

Defined in

packages/core/src/types/ImageLoadListener.ts:6