Documentation Index
Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
AI Integration Quick Reference
AI Integration Quick Reference
Key changes from v3 to v4:
- Chat SDK:
cometchat_sdk(replacescometchat_pro_sdk) - Calls SDK:
cometchat_calls_sdk(replacescometchat_pro_calls_sdk) - Import:
import 'package:cometchat_sdk/cometchat_sdk.dart' - Import Calls:
import 'package:cometchat_calls_sdk/cometchat_calls_sdk.dart'
Update Dependencies
| SDK | v3 Package | v4 Package |
|---|---|---|
| Chat SDK | cometchat_pro_sdk | cometchat_sdk |
| Calls SDK | cometchat_pro_calls_sdk | cometchat_calls_sdk |
pubspec.yaml and add the v4 packages:
Update Import Statements
Find and replace all import statements across your project:| SDK | v3 Import | v4 Import |
|---|---|---|
| Chat SDK | import 'package:cometchat_pro_sdk/cometchat_pro_sdk.dart' | import 'package:cometchat_sdk/cometchat_sdk.dart' |
| Calls SDK | import 'package:cometchat_pro_calls_sdk/cometchat_pro_calls_sdk.dart' | import 'package:cometchat_calls_sdk/cometchat_calls_sdk.dart' |
The API methods, class names, and listener interfaces are unchanged between v3 and v4. Once you update the packages and imports, your existing code should work without further modifications.
Next Steps
Setup SDK
Install and configure the CometChat Flutter SDK
Key Concepts
Learn the core concepts behind CometChat v4