View Utils
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
Link copied to clipboard
open fun drawFileMessageIconToReply(@NonNull imageView: ImageView, @NonNull fileMessage: FileMessage)
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
Link copied to clipboard
open fun drawParentMessageSentAt(@NonNull tvSentAt: TextView, @Nullable message: BaseMessage, @Nullable uiConfig: MessageUIConfig)
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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