ViewUtils

open class ViewUtils

The helper class for the drawing views in the UIKit. It is used to draw common UI from each custom component.

Functions

Link copied to clipboard
open fun drawFileIcon(@NonNull imageView: ImageView, @NonNull fileMessage: FileMessage)
open fun drawFileIcon(@NonNull imageView: ImageView, @NonNull fileType: String)
Link copied to clipboard
open fun drawFileMessageIconToReply(@NonNull imageView: ImageView, @NonNull fileMessage: FileMessage)
open fun drawFileMessageIconToReply(@NonNull imageView: ImageView, @NonNull fileType: String)
Link copied to clipboard
open fun drawFilename(@NonNull tvFilename: TextView, @Nullable message: FileMessage, @Nullable uiConfig: MessageUIConfig)
open fun drawFilename(@NonNull tvFilename: TextView, @NonNull fileName: String, isMine: Boolean, @Nullable uiConfig: MessageUIConfig)
Link copied to clipboard
open fun drawNickname(@NonNull tvNickname: TextView, @Nullable message: BaseMessage, @Nullable uiConfig: MessageUIConfig, isOperator: Boolean)
Link copied to clipboard
open fun drawNotificationProfile(@NonNull ivProfile: ImageView, @Nullable message: BaseMessage)
Link copied to clipboard
open fun drawOgtag(@NonNull parent: ViewGroup, @Nullable ogMetaData: OGMetaData)
Link copied to clipboard
open fun drawParentMessageSentAt(@NonNull tvSentAt: TextView, @Nullable message: BaseMessage, @Nullable uiConfig: MessageUIConfig)
Link copied to clipboard
open fun drawProfile(@NonNull ivProfile: ImageView, @Nullable message: BaseMessage)
open fun drawProfile(@NonNull ivProfile: ImageView, @Nullable url: String, @Nullable plainUrl: String)
Link copied to clipboard
open fun drawQuotedMessage(@NonNull replyPanel: BaseQuotedMessageView, @NonNull channel: GroupChannel, @NonNull message: BaseMessage, @Nullable uiConfig: TextUIConfig, @NonNull params: MessageListUIParams)
Link copied to clipboard
open fun drawQuotedMessageThumbnail(@NonNull view: RoundCornerView, @NonNull message: FileMessage, @Nullable requestListener: RequestListener<Drawable>)
Link copied to clipboard
open fun drawReactionEnabled(@NonNull view: EmojiReactionListView, @NonNull channel: BaseChannel, @NonNull channelConfig: ChannelConfig)
Link copied to clipboard
open fun drawSentAt(@NonNull tvSentAt: TextView, @Nullable message: BaseMessage, @Nullable uiConfig: MessageUIConfig)
Link copied to clipboard
open fun drawTextMessage(@NonNull textView: TextView, @Nullable message: BaseMessage, @Nullable uiConfig: MessageUIConfig, enableMention: Boolean)
open fun drawTextMessage(@NonNull textView: TextView, @Nullable message: BaseMessage, @Nullable uiConfig: MessageUIConfig, enableMention: Boolean, @Nullable mentionedCurrentUserUIConfig: TextUIConfig, @Nullable mentionClickListener: OnItemClickListener<User>)
open fun drawTextMessage(@NonNull textView: TextView, @Nullable message: BaseMessage, @Nullable uiConfig: MessageUIConfig, enableMention: Boolean, enableMarkdown: Boolean, @Nullable mentionedCurrentUserUIConfig: TextUIConfig, @Nullable mentionClickListener: OnItemClickListener<User>)
Link copied to clipboard
open fun drawThreadInfo(@NonNull threadInfoView: ThreadInfoView, @NonNull message: BaseMessage, @NonNull messageListUIParams: MessageListUIParams)
Link copied to clipboard
open fun drawThumbnail(@NonNull view: RoundCornerView, @NonNull message: FileMessage)
open fun drawThumbnail(@NonNull view: RoundCornerView, @NonNull requestId: String, @NonNull url: String, @NonNull plainUrl: String, @NonNull fileType: String, @NonNull thumbnails: List<Thumbnail>, @Nullable requestListener: RequestListener<Drawable>, @DimenRes iconSize: Int)
Link copied to clipboard
open fun drawThumbnailIcon(@NonNull imageView: ImageView, @NonNull message: FileMessage)
open fun drawThumbnailIcon(@NonNull imageView: ImageView, @NonNull fileType: String)
Link copied to clipboard
open fun drawTimeline(@NonNull timelineView: TextView, milliseconds: Int)
Link copied to clipboard
open fun drawUnknownMessage(@NonNull view: TextView, isMine: Boolean)
Link copied to clipboard
open fun drawVoiceMessage(@NonNull voiceMessageView: VoiceMessageView, @NonNull message: FileMessage)
Link copied to clipboard
open fun drawVoicePlayerProgress(@NonNull progressView: VoiceProgressView, milliseconds: Int, duration: Int)
Link copied to clipboard
open fun getDisplayableText(@NonNull context: Context, @NonNull message: BaseMessage, @Nullable uiConfig: MessageUIConfig, @Nullable mentionedCurrentUserUIConfig: TextUIConfig, mentionClickable: Boolean, @Nullable mentionClickListener: OnItemClickListener<User>, enabledMention: Boolean): CharSequence

Properties

Link copied to clipboard