load Contact Picture
open fun loadContactPicture( @NonNull context: Context, @Nullable lifecycle: Lifecycle, @NonNull imageView: ImageView, @NonNull contact: ContactItem, @Nullable defaultContactIconResources: DefaultContactIconResources)
Content copied to clipboard
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
image View
ImageView : on witch you want to load picture
contact
ContactItem : contact to load his picture
default Contact Icon Resources
DefaultContactIconResources: default contact icon resources
open fun loadContactPicture( @NonNull context: Context, @Nullable lifecycle: Lifecycle, @NonNull imageView: ImageView, @NonNull contact: STWContact, @Nullable defaultContactIconResources: DefaultContactIconResources)
Content copied to clipboard