Interface TextWithHighlights.Builder

    • Method Detail

      • text

        TextWithHighlights.Builder text​(String text)

        The text to display to the user.

        Parameters:
        text - The text to display to the user.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • highlights

        TextWithHighlights.Builder highlights​(Collection<Highlight> highlights)

        The beginning and end of the text that should be highlighted.

        Parameters:
        highlights - The beginning and end of the text that should be highlighted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • highlights

        TextWithHighlights.Builder highlights​(Highlight... highlights)

        The beginning and end of the text that should be highlighted.

        Parameters:
        highlights - The beginning and end of the text that should be highlighted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.