CometChatStatusIndicator is a customized component which indicates whether user is online or offline. You can customize the borderColor, borderSize, and backgroundColor of this component.

How to integrate CometChatStatusIndicator ?
SinceCometChatStatusIndicator is a custom view, it can be added directly in the layout file or you can use it in Java. CometChatStatusIndicator includes various attributes and methods to customize its UI.
Usage in XML
- XML
Methods
Customization
This Methods are use to do modify the appearance of CometChatStatusIndicator| Methods | Type | Description |
|---|---|---|
| setCornerRadius | int | Used to set the cornerRadius |
| setBorderColor | @ColorInt int | Used to set the borderColor |
| setBackgroundColor | @ColorInt int | Used to set the backgroundColor |
| setBackgroundImage | @DrawableRes int | Used to set the background image |
| setBorderWidth | int | Used to set the borderWidth |
- Java
- Kotlin
