iOS Chat SDK v4 — LLM docs index (Latest)
Headless Swift chat SDK. PackageCometChatSDK@4. This page is an iOS-SDK-v4-only routing index for AI agents — a scoped alternative to the site-wide/docs/llms.txt.
How to use this index
Each link points to the docs page; append.md to its URL to fetch the clean Markdown twin.
Each page opens with an “AI Integration Quick Reference” block (package · import · key
methods) — read that FIRST, then the body for the full call.
- Convention: any docs page URL +
.md→ raw Markdown. - Fallback: if a
.mdtwin 404s, fetch the same URL without.md(HTML). - Never answer a method signature from memory, and never read the framework binary’s
.swiftinterfaceto decide behaviour — it proves a symbol exists, nothing more.
When to use this index
Two cases:- Headless app — no CometChat UI, you are building your own views on the SDK.
- UI Kit fallback — the app uses the iOS UI Kit v5, but the feature you need ships no UI Kit component (AI agents, campaigns, moderation, adding group members, transient messages, low-level presence, webhooks). Check the kit first (iOS UI Kit v5 index); if there is no component, come here.
API facts an agent must not guess
- Callbacks use
.success/.onError— not Swift’sResult.failure. CometChatExceptiondoes not conform to Swift’sError; readerrorDescription, notlocalizedDescription, and downcast witherror as? CometChatException.- Request objects use the builder pattern (
MessagesRequest.MessagesRequestBuilder), and listeners are registered per-class with a unique identifier you must later remove. - In SwiftUI hosts, qualify SDK types (
CometChatSDK.User,CometChatSDK.Group) — SwiftUI declares its ownGroup.
Getting started
Messaging
- Send Messages
- Receive Messages
- Edit Message
- Delete Message
- Flag Message
- Message Filtering
- Message Structure And Hierarchy
- Threaded Messages
- Transient Messages
- Upload Files & Send Attachments
- Reactions
- Mentions
- Delivery & Read Receipts
- Typing Indicators
Conversations
Users
Groups
- Groups
- Create A Group
- Update A Group
- Delete A Group
- Join A Group
- Leave A Group
- Retrieve Groups
- Retrieve Group Members
- Add Members To A Group
- Kick Member From A Group
- Change Member Scope
- Transfer Group Ownership
Calling
AI
Real-time, connection, and lifecycle
- All Real Time Delegates (Listeners)
- Connection Status
- Connection Behaviour
- Managing Web Socket Connections Manually
Push notifications
- Prepare Your App For Background Updates
- Launch Chat Window On Tap Of Push Notification
- Launch Call Screen On Tap Of Push Notification
- Marking Delivered From Push Notification
- Increment App Icon Badge Count
- Remove Delivered Notifications