Companion
object Companion
Functions
Link copied to clipboard
fun newInstance(context: Context, message: Message, messageOptionItems: List<MessageOptionItem>, optionsDialogType: MessageOptionsDialogFragment.OptionsDialogType = OptionsDialogType.MESSAGE_OPTIONS, style: MessageListViewStyle = MessageListViewStyle.createDefault(context), messageBackgroundFactory: MessageBackgroundFactory = MessageBackgroundFactoryImpl(style.itemStyle), attachmentFactoryManager: AttachmentFactoryManager = ChatUI.attachmentFactoryManager, messageListItemViewHolderFactory: MessageListItemViewHolderFactory = MessageListItemViewHolderFactory()
.apply {
setAttachmentFactoryManager(attachmentFactoryManager)
setMessageListItemStyle(style.itemStyle)
setGiphyViewHolderStyle(style.giphyViewHolderStyle)
setAudioRecordViewStyle(style.audioRecordPlayerViewStyle)
setReplyMessageListItemViewStyle(style.replyMessageStyle)
decoratorProvider = object : DecoratorProvider {
override val decorators: List<Decorator> get() = emptyList()
}
}, showAvatarPredicate: MessageListView.ShowAvatarPredicate = DefaultShowAvatarPredicate()): MessageOptionsDialogFragment
Creates a new instance of MessageOptionsDialogFragment.