loadContactPicture

open fun loadContactPicture(    @NonNull context: Context,     @Nullable lifecycle: Lifecycle,     @NonNull imageView: ImageView,     @NonNull contact: ContactItem,     @Nullable defaultContactIconResources: DefaultContactIconResources)

Try to load asynchronously the contact picture in the imageView. If Contact have no picture or the operation failed set the specified placeHolder to the imageView.

Parameters

context

Context The application context

imageView

ImageView : on witch you want to load picture

contact

ContactItem : contact to load his picture

defaultContactIconResources

DefaultContactIconResources: default contact icon resources


open fun loadContactPicture(    @NonNull context: Context,     @Nullable lifecycle: Lifecycle,     @NonNull imageView: ImageView,     @NonNull contact: STWContact,     @Nullable defaultContactIconResources: DefaultContactIconResources)