Skip to content

Docs/docs(ios): Add sample payloads and fix API signatures in iOS SDK & UIKit documentation#266

Open
aryakulkarni-cometchat wants to merge 3 commits intomainfrom
docs/ios-sdk-uikit-improvements
Open

Docs/docs(ios): Add sample payloads and fix API signatures in iOS SDK & UIKit documentation#266
aryakulkarni-cometchat wants to merge 3 commits intomainfrom
docs/ios-sdk-uikit-improvements

Conversation

@aryakulkarni-cometchat
Copy link

Summary

This PR enhances the iOS SDK and UIKit documentation with comprehensive sample payloads and fixes incorrect API method signatures discovered during sample app development.

Changes

iOS SDK Documentation (51 files)

Sample Payloads Added:

  • Added JSON response payloads showing success/failure responses for all SDK methods
  • Payloads include realistic data models (User, Group, Message, Call, etc.)

API Signature Fixes:

  • retrieve-conversations.mdx: Changed .set(conversationType:) to .setConversationType(conversationType:)
  • retrieve-groups.mdx: Fixed getGroup callback to use non-optional Group return type

Categories Updated:

  • Authentication & Connection
  • Users Management
  • Groups Management
  • Messaging (send, receive, edit, delete, threads)
  • Calling (default, direct, standalone, recording)
  • Push Notifications
  • AI Features (agents, moderation)
  • Real-time Delegates & Listeners

iOS UIKit Documentation (2 files)

Method Signature Fixes in methods.mdx:

  • CometChatUIKit.logout(onSuccess:onError:)CometChatUIKit.logout(user:result:)

Method Signature Fixes in property-changes.mdx:

  • Users: set(trailView:)set(trailingView:)
  • Users: set(subtitleView:)set(subtitle:)
  • Groups: set(trailView:)set(trailingView:)
  • Groups: SetSubTitleViewset(subtitle:)

Enhancements:

  • Added Quick Reference sections for AI Agents

Verification

All changes verified against actual CometChat iOS SDK source code and tested with a complete sample application that builds and runs successfully.

Files Changed

  • SDK: 51 files in sdk/ios/
  • UIKit: 2 files in ui-kit/ios/

…documentation

- Added JSON response payloads to 51 iOS SDK documentation files
- Fixed API method signatures:
  - retrieve-conversations.mdx: Changed .set(conversationType:) to .setConversationType(conversationType:)
  - retrieve-groups.mdx: Fixed getGroup callback to use non-optional Group return type

Files updated: authentication, users, groups, messaging, calling, push notifications, AI features, delegates
- Fixed logout method signature: CometChatUIKit.logout(onSuccess:onError:) → CometChatUIKit.logout(user:result:)
- Fixed Users component methods: set(trailView:) → set(trailingView:), set(subtitleView:) → set(subtitle:)
- Fixed Groups component methods: set(trailView:) → set(trailingView:), SetSubTitleView → set(subtitle:)
- Added Quick Reference sections for AI Agents

All changes verified against actual SDK source code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant