AI Integration Quick Reference
AI Integration Quick Reference
Real-time Presence
Configure presence subscription inAppSettings during SDK initialization. The AppSettingsBuilder provides three subscription options:
If none of these methods are called, no presence events will be delivered.
You must configure presence subscription in
AppSettings during
CometChat.init() before any presence events will be delivered. See Setup
SDK for details.UserListener to receive presence events:
- User Listener
- TypeScript
You will receive an object of the
User class in the listener methods.
We recommend you remove the listener once the activity or view is not in use.
We suggest adding this method when not in use.
- Remove User Listener
Each callback receives a
User object with presence information.
Relevant fields to access on returned users:
Remove the listener when no longer needed:
- TypeScript
- JavaScript
User List Presence
When fetching users viaUsersRequest, each User object includes presence fields:
Next Steps
Retrieve Users
Fetch user lists with filtering and pagination.
User Management
Create and update users programmatically.
Connection Status
Monitor SDK connection to CometChat servers.
All Real-time Listeners
Overview of all available real-time listeners.