hasDrawableSpan

public Unit hasDrawableSpan(Integer queryStart, Integer queryEnd, @DrawableRes() Integer resId, Function1<Drawable, Bitmap> toBitmap)

Checks if the drawable span displayed in the view

Parameters

queryStart

Index of the character that is the beginning of the range of text to which span is attached

queryEnd

Index of the character that is the end of the range of text to which span is attached

resId

Drawable resource to be matched

toBitmap

Lambda with custom Drawable -> Bitmap converter (default is null)


public Unit hasDrawableSpan(Integer queryStart, Integer queryEnd, Drawable drawable, Function1<Drawable, Bitmap> toBitmap)

Checks if the drawable span displayed in the view

Parameters

queryStart

Index of the character that is the beginning of the range of text to which span is attached

queryEnd

Index of the character that is the end of the range of text to which span is attached

drawable

Drawable to be matched

toBitmap

Lambda with custom Drawable -> Bitmap converter (default is null)


public Unit hasDrawableSpan(Integer spanIndex, @DrawableRes() Integer resId, Function1<Drawable, Bitmap> toBitmap)

Checks if the drawable span displayed in the view

Parameters

spanIndex

Index of span in string's spans array

resId

Drawable resource to be matched

toBitmap

Lambda with custom Drawable -> Bitmap converter (default is null)


public Unit hasDrawableSpan(Integer spanIndex, Drawable drawable, Function1<Drawable, Bitmap> toBitmap)

Checks if the drawable span displayed in the view

Parameters

spanIndex

Index of span in string's spans array

drawable

Drawable to be matched

toBitmap

Lambda with custom Drawable -> Bitmap converter (default is null)