Skip to content

Commit

Permalink
Add documentation to link public APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedRejeb committed Apr 7, 2024
1 parent a71dc10 commit d60d646
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ class RichTextState internal constructor(
/**
* Add a link to the text field.
* The link is going to be added after the current selection.
*
* @param text the text of the link.
* @param url the URL of the link.
*/
fun addLink(
text: String,
Expand Down Expand Up @@ -307,6 +310,8 @@ class RichTextState internal constructor(

/**
* Add a link to the selected text.
*
* @param url the URL of the link.
*/
fun addLinkToSelection(
url: String,
Expand All @@ -327,6 +332,8 @@ class RichTextState internal constructor(

/**
* Update the link of the selected text.
*
* @param url the new URL of the link.
*/
fun updateLink(
url: String,
Expand Down

0 comments on commit d60d646

Please sign in to comment.