IImageViewerDescriptor interface
Defines an interface for image viewer input descriptors used in custom forms. This interface extends IInputDescriptor to include image-specific properties such as the image hash and maximum display height. Image viewer descriptors are used to render image viewer components in the Connector UI. When an image needs to be displayed, the UI invokes ICustomForm.GetInputContentAsync to retrieve the image content in binary form. This content is cached after the initial request and only re-fetched when the ImageHash value changes. If the same hash is returned, the UI assumes the image is unchanged and avoids redundant requests.
public interface IImageViewerDescriptor : IInputDescriptor
Members
| name | description |
|---|---|
| ImageHash { get; set; } | Gets or sets the hash identifier for the image to be displayed. This hash is used by the Connector UI to determine whether new image content should be fetched via the ICustomForm.GetInputContentAsync callback. If the hash changes, the image viewer will request updated content. If the hash remains the same, the UI will reuse cached image content to avoid unnecessary calls to ICustomForm.GetInputContentAsync. |
| MaxHeight { get; set; } | Gets or sets the maximum height in pixels for the displayed image. This property controls the vertical size constraint of the image viewer component on the custom form. |
See Also
- interface IInputDescriptor
- namespace Autodesk.DataExchange.UI.CustomForm.Interfaces