EntitiesBuilder

Entities builder which is used in EntitiesFeature

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Entity optional parameters

Functions

Link copied to clipboard
infix fun Pair<Int, Int>.customEmoji(customEmojiId: String)

Declare EntityType.CustomEmoji entity with given customEmojiId.

Link copied to clipboard
fun entity(type: EntityType, offset: Int, length: Int, block: EntitiesBuilder.EntityData.() -> Unit = {})

Add new entity

Link copied to clipboard
infix fun Pair<Int, Int>.language(language: String)

Declare EntityType.Pre entity with given language.

Link copied to clipboard
infix fun Pair<Int, Int>.url(url: String)

Declare EntityType.TextLink entity with given url.

Link copied to clipboard
infix fun Pair<Int, Int>.user(user: User)

Declare EntityType.TextMention entity with given User.