TheDocumentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
CometChatAvatar component displays user and group avatars. For users and groups , it displays either an image or the user’s avatar and falls back to the first two letters of the username.
Methods
| Methods | Description |
|---|---|
set(cornerRadius : CGFloat) | Sets the cornerRadius |
set(borderColor : UIColor) | Sets the borderColor |
set(backgroundColor : UIColor) | Sets the backgroundColor |
set(borderWidth : CGFloat) | Sets the borderWidth |
setAvatar(avatarUrl: String) | Sets the avatarUrl |
setAvatar(avatarUrl: String, with name: String) | Sets the avatarUrl with user name initials |
set(outerView: Bool) | Enables the outerView |
| set(font : UIFont) | Sets the font for Initials |
| set(fontColor: UIColor) | Sets the text color for Initials |
Usage of Methods
- Swift
- Swift