ConversationLifeCycle
Introduction
The life cycle hooks for TIMUIKitConversation.
Parameter introduction
shouldDeleteConversation
Parameter type : Future< bool > Function(String conversationID)
Supported Platform: All
- Parameter description : Before deleting a conversation, or a channel, from the conversation list,
truemeans can delete continually, whilefalsewill not delete. You can make a second confirmation here by a modal, etc.
shouldClearHistoricalMessageForConversation
Parameter type : Future< bool > Function(String conversationID)
Supported Platform: All
- Parameter description : Before clearing the historical message for a specific conversation, provided in parameter,
truemeans can clear continually, whilefalsewill not clear. You can make a second confirmation here by a modal, etc.
conversationListWillMount
Parameter type : Future< List< V2TimConversation? > > Function( List< V2TimConversation? > conversationList)
Supported Platform: All
- Parameter description : Before conversation list will mount or update to conversation page.