AvatarCoil
AvatarCoil provides a ImageLoader, AvatarBitmapFactory, and ImageHeadersProvider that can be fully customized for loading avatar image:
imageLoader be used to load Avatar payload internally. You can customize with your own ImageLoaderFactory or AvatarImageLoaderFactory by using setImageLoader function.
AvatarBitmapFactory will creates avatar bitmaps when AvatarFetcher fetches the Avatar payload successfully. The loaded bitmaps will be operated by the factory and they will be loaded as BitmapDrawable to the io.getstream.avatarview.AvatarView.
ImageHeadersProvider be used to provide image header. If you're using your own CDN, you can set the AvatarCoil.imageHeadersProvider to load image data with your own header.
Properties
Functions
Returns an AvatarBitmapFactory.
Sets a custom AvatarBitmapFactory.
Sets a ImageLoaderFactory to provide your own ImageLoader.