loadImage

inline fun AvatarView.loadImage(data: Any?, crossFadeEnabled: Boolean = true, requestListener: RequestListener<Drawable>? = null, requestOptions: () -> RequestOptions = { RequestOptions() })

Loads an image request data to the AvatarView.

Parameters

data

An image data to be loaded.

crossFadeEnabled

Enables crossFade animation when load an image.

requestListener

A class for monitoring the status of a request while images load.

requestOptions

A receiver to be applied with the RequestOptions.


fun AvatarView.loadImage(data: Any?, requestBuilder: RequestBuilder<*>)

Loads an image request data to the AvatarView.

Parameters

data

An image data to be loaded.

requestBuilder

A generic class that can handle setting options and staring loads for generic resource types.


fun AvatarView.loadImage(data: List<Any?>, crossFadeEnabled: Boolean = true, requestListener: RequestListener<Drawable>? = null, requestOptions: () -> RequestOptions = { RequestOptions() })

Loads a list of image request data to the AvatarView. Up to 4 images will be combined and loaded.

Parameters

data

A list of image data to be loaded.

requestListener

A class for monitoring the status of a request while images load.

requestOptions

A receiver to be applied with the RequestOptions.


fun AvatarView.loadImage(data: List<Any?>, requestBuilder: RequestBuilder<*>)

Loads a list of image request data to the AvatarView. Up to 4 images will be combined and loaded.

Parameters

data

A list of image data to be loaded.

requestBuilder

A generic class that can handle setting options and staring loads for generic resource types.