chat.stickerKeyboard

Chat.stickerKeyboard

package chat.stickerKeyboard

fields

Name Description
const STICKER_SIZE: Int
var targetDrawables: mutableMapOf?>()
var targetByteArrays: mutableMapOf?>()

Methods

replaceWithStickers

fun replaceWithStickers(s: Spannable?, context: Context, stickerPackRepository: StickerPackRepository, edittext_chat_message: EditText?, callback: MultiCallback?, size: Int, onMatch: ()->Unit)

parameters

Name Description
s: Spannable?
context: Context
stickerPackRepository: StickerPackRepository
edittext_chat_message: EditText?
callback: MultiCallback?
size: Int
onMatch: ()->Unit

returnValue

Name Description
Unit

clearTarget

fun clearTarget(id: String, context: Context)

parameters

Name Description
id: String
context: Context

returnValue

Name Description
Unit

replaceWithImages

fun replaceWithImages(s: Spannable?, context: Context, callback: MultiCallback?, inEditText: Boolean, id: String, width: Int, height: Int, onMatch: ()->Unit)

parameters

Name Description
s: Spannable?
context: Context
callback: MultiCallback?
inEditText: Boolean
id: String
width: Int
height: Int
onMatch: ()->Unit

returnValue

Name Description
Unit

findStickers

fun String.findStickers(): Matcher

receiver

Name Description
String

returnValue

Name Description
Matcher

findImages

fun String.findImages(): Matcher

receiver

Name Description
String

returnValue

Name Description
Matcher

findIsOnlyStickers

fun String.findIsOnlyStickers(): Matcher

receiver

Name Description
String

returnValue

Name Description
Matcher

countMatches

fun Matcher.countMatches(): Int

receiver

Name Description
Matcher

returnValue

Name Description
Int