Package-level declarations

Types

Link copied to clipboard
object Linkify

Utility for linkifying message text: scans a TextView for URLs, email addresses, and mention tokens (@user, @channel, @here, role mentions) referenced by a Message, and applies clickable spans for each.

Link copied to clipboard
class ListenerDelegate<L : Any>(initialValue: L, wrap: (realListener: () -> L) -> L) : ReadWriteProperty<Any?, L>

A property delegate to be used with listeners.

Link copied to clipboard

Functions

Link copied to clipboard
fun ImageView.load(data: Any?, placeholderDrawable: Drawable?, transformation: StreamImageLoader.ImageTransformation = ImageTransformation.None, onStart: () -> Unit = {}, onComplete: () -> Unit = {}): Disposable
fun ImageView.load(data: Any?, @DrawableRes placeholderResId: Int? = null, transformation: StreamImageLoader.ImageTransformation = ImageTransformation.None, onStart: () -> Unit = {}, onComplete: () -> Unit = {}): Disposable
Link copied to clipboard
suspend fun ImageView.loadAndResize(data: Any?, placeholderDrawable: Drawable?, transformation: StreamImageLoader.ImageTransformation = ImageTransformation.None, onStart: () -> Unit = {}, onComplete: () -> Unit = {})

Loads an image into a drawable and then applies the drawable to the container, resizing it based on the scale types and the given configuration.

Link copied to clipboard
fun ImageView.loadVideoThumbnail(uri: Uri?, @DrawableRes placeholderResId: Int? = null, transformation: StreamImageLoader.ImageTransformation = ImageTransformation.None, onStart: () -> Unit = {}, onComplete: () -> Unit = {}): Disposable