Class

EditingBuffer

The editing buffer This class manages the all editing relate states, editing buffers, selection, styles, etc.

Source set: Common
public class EditingBuffer(
    /** The initial text of this editing buffer */
    text: AnnotatedString,
    /**
     * The initial selection range of this buffer. If you provide collapsed selection, it is treated
     * as the cursor position. The cursor and selection cannot exists at the same time. The
     * selection must points the valid index of the initialText, otherwise IndexOutOfBoundsException
     * will be thrown.
     */
    selection: TextRange,
)

The editing buffer

This class manages the all editing relate states, editing buffers, selection, styles, etc.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: