public interface RichTextComponent.ImageResolver

Resolves an image source string (as it appears in the markup, e.g. an <img src> URL or a Markdown image target) to a loaded Image. Return null to render a placeholder.

Methods

public abstract Image resolve(String source)Resolves a source to an image.

Method details

resolve

public abstract Image resolve(String source)
Resolves a source to an image.

Parameters

source String
the source string from the markup

Returns

the image, or null if it cannot be resolved