Skip to main content
Version: v4

Status Indicator

This component is of the class UImageView. It's customisable to display the status of the user's presence as online, offline using colour codes or can be used to display type of a group as password protected, public or private using a custom image.


Methods

MethodsDescription
set(cornerRadius: CGFloat)Sets the cornerRadius for CometChatStatusIndicator class
set(borderColor: UIColor)Sets the borderColor for CometChatStatusIndicator class
set(borderWidth: CGFloat)Sets the borderWidth for CometChatStatusIndicator class
set(backgroundColor: UIColor)Sets the color for CometChatStatusIndicator class
set(icon: UIImage, with tintColor: UIColor)Sets the image forCometChatStatusIndicator`` class

Usage

statusIndicator.set(borderWidth:8)
.set(borderColor: [UIColor lightGreen])
.set(backgroundColor: [UIColor:green])
statusIndicator.set(icon: UIImage(named: "lock.png"))