RichTextFormat

A bi-directional format that can both export a RichString to type T and import type T into a RichString.

Parameters

T

The intermediate format type (e.g., String).

Functions

Link copied to clipboard
abstract fun export(richString: RichString): T

Converts the given richString into the target format of type T.

Link copied to clipboard
abstract fun import(input: T): RichString

Converts the given formatted input into a RichString.