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, true means can delete continually, while false will 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, true means can clear continually, while false will 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.

results matching ""

    No results matching ""