This page contains Flutter SDK code examples for Security extensions. For feature documentation, setup instructions, and extension settings, see Security Extensions.
How to Use Extensions with SDK
Enable in Dashboard
Login to CometChat Dashboard, select your app, then go to Chat & Messaging → Features and enable the extension. Implement SDK methods
Use the code examples below to schedule messages for automatic deletion.
Build your UI
Update your UI to indicate which messages will disappear and when.
Disappearing Messages
Send messages that automatically disappear after a specified time interval.
Schedule Message for Deletion
The value of timeInMS should be less than 1 year from the current time.