Class GhostTextSuggestion

java.lang.Object
ro.sync.document.GhostTextSuggestion

@API(type=INTERNAL, src=PUBLIC) public class GhostTextSuggestion extends Object
Represents a ghost text suggestion with its content and metadata.
  • Constructor Details

    • GhostTextSuggestion

      public GhostTextSuggestion(String text, int caretPosition)
      Constructor for ghost text suggestion.
      Parameters:
      text - The text to display as ghost text
      caretPosition - The position in the document where the ghost text should be displayed
  • Method Details

    • getText

      public String getText()
      Returns:
      The ghost text to display
    • getCaretPosition

      public int getCaretPosition()
      Returns:
      The position in the document where the ghost text should be displayed