CometChatImageBubble
is the content view for a MediaMessage if the media sent is an image.
Methods | Parameters | Description |
---|---|---|
set(imageUrl: String) | String url | It used to set image url which to be rendered in image bubble |
set(caption: String) | String caption | a text to display below the image |
set(style: ImageBubbleStyle) | ImageBubbleStyle style | used to customize appearance of this bubble |
setOnClick(onClick: @escaping (() -> Void)) | @escaping (() -> ()) | custom action on tapping the image |
Methods | Type | Description |
---|---|---|
set(captionTextFont: UIFont) | UIFont | used to set font of the caption of the message |
set(captionTextColor: UIColor) | UIColor | used to set color of the caption of the message |
set(background: UIColor) | UIColor | used to set background color |
set(borderColor: UIColor) | UIColor | used to set a border color |
set(borderWidth: CGFloat) | CGFloat | used to set border |
set(cornerRadius: CometChatCornerStyle) | CometChatCornerStyle | used to set border radius |
set(activityIndicatorTint: UIColor) | UIColor | used to set the activity indicator color |