Social+ Docs
About UsDeveloper PortalArchives
  • Social+
  • Announcements
  • Technical FAQ
  • Getting Started
    • Installation and Authentication
      • Install iOS SDK
      • Install Android SDK
      • Install JavaScript SDK (Deprecated)
      • Install TypeScript SDK
      • Install Flutter SDK
      • Install SDK for Ionic
    • Tutorials
  • Social+ SDK
    • Core Concepts
      • Session State
      • User
        • Create User
        • Get User Information
        • Search and Query Users
        • Update User Information
        • Delete User
        • Roles & Permissions
        • User Token Management
        • Flag / Unflag User
      • Files, Images, and Videos
        • File Handling
        • Image Handling
        • Video Handling
      • Push Notifications
        • iOS Push Notification Certificate Setup
        • Android Push Notifications Initialization
        • React Native Push Notifications Initialization
        • Register and Unregister Push Notifications on a Device
        • Push Notification Toggles
          • User Push Notification Settings
          • Channel Push Notification Settings
          • Community Push Notification Settings
      • Mentions
      • Poll
      • Ads
        • Get Ads and Settings
        • Ad Impressions
      • Presence State
        • Heartbeat Sync
        • User Presence
        • Channel Presence
      • Live Objects/Collections
        • iOS Live Objects/Collections
        • Android Live Objects/Collections
        • Javascript Live Objects/Collections
        • TypeScript Live Objects/Collections
        • Flutter Live Objects/Collections
      • Realtime Events
        • Social Realtime Events
        • Chat Realtime Events
      • Error Handling
      • Content Moderation
      • Logging
    • Chat
      • Channels
        • Create Channel
        • Query Channels
        • Get Channel
        • Get Channels
        • Update Channel
        • Join/Leave Channel
        • Subchannel
        • Message Preview
        • Unread Count
          • Channel Unread Count
          • Start / stop message read receipt sync
          • Mark Message as Read
          • Message Delivery Status
          • Observe reading count
        • Read Status & Unread Count (Legacy)
        • Channel Moderation
        • Query Members
        • Search Members
        • Archive Channels
      • Messaging
        • Send a Message
          • Text Message
          • Image Message
          • Audio Message
          • Video Message
          • File Message
          • Custom Message
          • Reply to a Message
        • Query and Filter Messages
        • Get and View a Message
        • Edit and Delete Messages
        • Message Reaction
        • Mention in Messages
        • Flag/Unflag a Message
      • Moderation
        • Roles and Permission
        • Mute/Unmute a List of Channel Members
        • Ban/Unban a List of Channel Members
        • Channel Rate-Limiting
    • Social
      • Posts
        • Create Post
          • Text Post
          • Image Post
          • File Post
          • Video Post
          • Live stream Post
          • Poll Post
          • Custom Post
        • Query Post
        • Get Post
        • Viewing Post Content
        • Edit Post
        • Delete Post
        • Mention in Post
        • Flag / Unflag Post
        • Post Review
        • Post Impression
        • Pinned Post
      • Stories
        • Get Global Story Targets
        • Create Story
        • Get Stories
        • Delete Story
        • Get Story Targets
        • Story Impressions
      • Comments
        • Create Comment
        • Query Comment
        • View Comment
        • Get Comment
        • Get Latest Comment
        • Edit Comment
        • Delete Comment
        • Flag/Unflag
        • Get Comment Reaction Data
        • Mention in Comment
      • Reactions
        • Query Reactions
        • Add / Remove Reaction
      • Feed
        • Custom Post Ranking
        • Query Global Feed
      • Communities
        • Create Community
        • Get Community
        • Query Communities
        • Update Community
        • Delete Community
        • Join/Leave Community
        • Trending and Recommended Communities
        • Query Community Members
        • Community Moderation
        • Community Categories
      • Follow/Unfollow
        • Get Connection Status and Connection Counter
        • Follow/Unfollow User
        • Get Follower/Following List
        • Accept/Decline Follow Request
      • Block and Unblock User
      • Intelligent Search
        • Intelligent Search - Post
        • Intelligent Search - Community
      • Notification tray
        • Get Notification Tray Seen
        • Mark Notification Tray Seen
        • Query Notification Tray Item
        • Mark Notification Tray Item Seen
    • Video
      • iOS
        • View & Play Live Stream
        • Broadcast Live Stream
        • Push Notifications
      • Android
        • View & Play Live Stream
        • Broadcast Live Stream
        • Push Notifications
      • Flutter
        • View & Play Live Stream
        • Push Notifications
      • Web
        • View & Play Live Stream
        • Create Live Stream
        • Push Notifications
      • TypeScript (Beta)
        • RunQuery Pattern
        • Live Stream
      • React Native
        • View & Play Live Stream
        • Broadcast Live Stream
    • Changelogs & Versioning
      • iOS
      • Android
      • TypeScript
      • React Native
      • Flutter (Beta)
      • React Native (Video)
      • JavaScript (Deprecated)
  • Social+ UIKit
    • UIKit 4
      • Installation Guide
        • iOS
        • Android
        • Web React
        • Flutter (Beta)
        • React Native (Beta)
      • Setup and Authentication
        • iOS
        • Android
        • Web React
        • Flutter (Beta)
        • React Native (Beta)
      • Customization
        • Dynamic UI
        • Customization Basics
        • Overriding Navigation Behaviour
      • Social
        • Discover & Search
          • Social Home Page
            • Top Navigation Component
            • Newsfeed Component
            • Empty Newsfeed Component
            • Global Feed Component
            • Create Post Menu Component
            • Community Categories Component
            • Recommended Communities Component
            • Trending Communities Component
          • Global Search Page
            • Top Search Bar Component
            • Community Search Result Component
            • User Search Result Component
          • My Communities Search Page
          • All Categories Page
          • Communities By Category Page
          • Notification Tray
        • Community
          • Community Setup Page
            • Add Category Page
            • Add Member Page
          • Community Profile Page
            • Community Header Component
            • Community Feed Component
            • Community Pin Feed Component
            • Community Image Feed Component
            • Community Video Feed Component
          • Pending Post Page
            • Pending Post Content Component
          • Community Setting Page
            • Community Notification Setting Page
              • Community Posts Notification Page
              • Community Comments Notification Page
              • Community Stories Notification Page
            • Community Post Permissions Page
            • Community Story Setting Page
          • Community Membership Page
        • User
          • User Profile Page
            • User Profile Header Component
            • User Feed Component
            • User Image Feed Component
            • User Video Feed Component
          • Edit User Profile Page
          • Blocked User Page
          • User Relationship Page
          • User Pending Follow Request Page
        • Post
          • Post Details Page
            • Post Content Component
          • Post Composer Page
            • Media Attachment Component
            • Detailed Media Attachment Component
          • Post Target Selection Page
          • Poll Post Composer Page
          • Poll Target Selection Page
        • Livestream
          • Livestream Target Selection Page
          • Livestream Creation Page
          • Livestream Player Page
          • Livestream Terminated Page
        • Story
          • Story Target Tab Component
          • Story Creation Page
            • Story Drafting Page
          • Story Viewing Page
          • Story Target Selection Page
        • Comment & Reaction
          • Comment Tray Component
          • Reaction List Component
        • Content moderation
      • Chat
        • Recent chats (channel list)
          • Chat Home Page
          • Chat List Component
          • Archived Chat List Component
          • Amity Channel Create Conversation Page
        • Conversation Chat
          • AmityChatPage
          • AmityMessageComposer
        • Live Chat
          • Live Chat Page
            • Live Chat Header Component
            • Live Chat Message List Component
              • Reaction List Component
            • Live Chat Compose Bar Component
    • UIKit 3
      • iOS (Deprecated)
        • Overview
        • iOS UIKit Installation Guide
        • Installing UIKit (deprecated)
        • Setup & Authentication
        • Using Themes
        • Social UIKit
          • Using as a whole feature with the default settings
          • Our Components
            • Community Home Page
              • Newsfeed
                • Global Feed
                • My Community Preview
              • Explore Tab
                • Recommended Community
                • Top Trending
                • Categories
            • My Community Page
            • Category List Page
            • Community List by Category Page
            • Community Creation Page
            • Community Profile Edit Page
            • Community Setting Page
              • Community Push Notification Settings Page
                • Community Push Notification Settings - Comment and Reply Relate Event Page
                • Community Push Notification Settings - Post Relate Event Page
            • Post Creation Page
              • Livestream Post
            • Post Detail Page
            • Post Edit Page
            • Comment Creation
            • Comment Edit Page
            • Community Profile Page
              • Community Feed
              • Media Gallery
            • Community Member Page
            • User Profile Page
              • User Feed
            • User Profile Page (2.2)
              • User Feed (2.2)
            • User Setting Page(2.2)
            • User Profile Edit Page
            • Following / Follower User List Page (2.2)
            • Follow Request Page (2.2)
            • Member Selection Page
            • Post Target Selection Page
          • Using Your Own Component
            • Using Your Own Navigation Bar
          • Overriding UIKit Behaviour
            • Feed UI Settings
              • Post Sharing
              • Post Rendering
            • Event Handling
              • Example
          • Roles & Permissions
        • Chat UIKit
          • Using as a Whole Feature with the Default Settings
          • Using Only Some Components
            • Chat Home Page
              • Recent chat
            • Chat Room Page
          • Using your own component
            • Message Bubble
        • Video UIKit
          • Livestream
      • Android (Deprecated)
        • Overview
        • Android UIKit Installation Guide
        • Installing UIKit (deprecated)
        • Setup & Authentication
        • Using Themes
        • Social UIKit
          • Using as a whole feature with the default settings
          • Our Components
            • Community Home Page
              • Newsfeed
                • Global Feed
                • My Community Preview
              • Explore Tab
                • Recommended Community
                • Top Trending Community
                • Categories
            • My Community Page
            • Category List Page
            • Community List By Category Page
            • Community Creation Page
            • Community Profile Edit Page
            • Post Creation Page
              • Livestream Post
            • Post Details Page
            • Post Edit Page
            • Comment Creation
            • Comment Edit Page
            • Community Profile Page (2.5)
              • Community Feed (2.5)
              • Media Gallery
            • Community Member Page
            • User Profile Page
              • User Feed
            • User Profile Page (2.3)
              • User Feed (2.3)
            • User Setting Page (2.3)
            • Following and Follower User List Page(2.3)
            • Follow Request Page (2.3)
            • User Profile Edit Page
            • Member Selection Page
            • Post Target Selection Page
          • Using Your Own Components
            • Using Your Own Navigation Bar
          • Overriding UIKit Behaviour
            • Overriding Global Behaviour
              • Feed UI Settings
                • Post Sharing
                • Post Rendering
            • Event Handling
              • Example
        • Chat UIKit
          • Using as a whole feature with the default settings
          • Using Only Some Components
            • Chat Home Page
              • Recent Chat
            • Chatroom Page
          • Using Your Own Component
            • Message Bubble
      • React (Deprecated)
        • Overview
        • Web UIKit Installation Guide
        • Installing UI Kit (deprecated)
        • Setup & Authentication
        • Using Themes
        • Social UIKit
          • Using as a whole feature with the default settings
          • Our Components
            • Community Home Page
              • Search Communities
              • Newsfeed
                • Global Feed
              • Explore
                • Recommended Communities
                • Top Trending Communities
                • Categories
            • My Community
            • Community List By Category Page
            • Community Creation Page
            • Community Settings
              • Edit Profile Page
              • Members
              • Permissions
            • Post Creation
              • Livestream Post
            • Post Edit
            • Comments
            • Community Profile Page
              • Community Feed
              • Media Gallery
              • Community Members Page
              • Transfer Moderator Role
            • User Profile
              • User Feed
              • Media Gallery
              • Following / Follower User List Page
            • Follow Request Page
            • Profile Settings Page
          • Using Your Own Component
            • Using Your Own Like Button for Posts
          • Overriding UIKit Behaviour
            • Post Rendering
        • Chat UIKit
          • Using as a Whole Feature with the Default Settings
          • Our Components
            • Recent Chat
            • Chat Room
            • Message Bubble
            • Chat Details
        • Event Handling
          • Example
        • Roles & Permissions
      • Flutter (Beta)
        • Overview
        • Flutter UIKit Installation Guide
        • Setup & Authentication
        • Using Themes
        • Social UIKit
          • Using as a whole feature with the default settings
      • React Native (Beta)
        • Setup & Authentication
        • Running the Sample App with Expo
    • Changelogs
      • iOS
      • Android
      • Flutter
      • Web (React)
      • React Native
        • React Native Chat UIKit
        • React Native Social UIKit
  • Analytics & Moderation
    • Social+ Portal
      • Getting Started
      • Application Management
      • Account Management
      • Dashboard
        • Raw Data Export
        • Community-Level Analytics and Social Insights Filtering
      • Changelogs
    • Social+ Console
      • Moderation, Roles & Privileges
      • Chat Management
        • Channel Management
        • Message Management
        • Chat Activities (Beta)
      • Social Management
        • Communities
        • Posts
          • Post Viewing and Management
          • Post Creation
          • Post Pinning and Featuring
        • Comments
          • Comment Viewing and Management
          • Comment Creation and Reply
        • Stories
      • User & Content Management
        • User Social History
      • Admin Access Control
      • Livestream Moderation
      • Premium Ads
        • Setting Up Premium Ads
        • Setting Up Advertiser Profile
      • Settings
        • Image Moderation
        • Push Notifications
        • Security
          • Admin Token Management
        • Brand Settings
      • AI Content Moderation
      • Changelogs
    • Social+ APIs and Services
      • Network Settings
      • Generate User Last Activity Report
      • Pre-Hook Event
  • Developers
    • Developer Kits
    • Beta Features
      • Enhance Moderation
      • Search Posts API
      • Content Search V2 (Deprecated)
      • Webhook Events
      • Notification Tray
      • Block User
      • User Activity
    • Migration Guides
      • FCM legacy API Migration Guide
      • SDK v6.26.0 Unread Count Migration Guide
      • JS SDK to TS SDK Migration Guide
      • Web UIKit v3.0 Migration Guide
      • iOS UIKit V3.0 Migration Guide
      • iOS SDK v7.0.0 Migration Guide
      • iOS SDK v6.0.0 Migration Guide
        • iOS SDK v6.9.0 Deprecation Note
        • iOS SDK v6.8.0 Deprecation Note
        • iOS SDK v6.7.0 Deprecation Note
        • iOS SDK v6.5.0 Deprecation Note
      • Android SDK v7.0.0 Migration Guide
      • Android SDK v6.0.0 Migration Guide
        • Android SDK v.6.20.0 Deprecation Note
        • Android SDK v.6.19.0 Deprecation Note
        • Android SDK v6.10.0 Deprecation Note
        • Android SDK v6.9.0 Deprecation Note
        • Android SDK v6.5.0 Deprecation Note
      • TS SDK v7.0.0 Migration Guide
      • TS SDK v6.0.0 Migration Guide
        • TS SDK v6.4.6 Deprecation Note
        • TS SDK v6.8.0 Deprecation Note
      • Web SDK v5.0.0 Migration Guide
      • Flutter SDK v7.0.0 Migration Guide
      • Flutter SDK beta Migration Guide
        • Flutter SDK v0.21.0 Deprecation Note
    • SDK API Reference
      • Server API Reference
      • iOS SDK API Reference (beta)
      • Android SDK API Reference (beta)
      • Flutter SDK API Reference
  • Miscellaneous
    • Support
      • Code of conduct
      • Managed UI Kit - Deprecation
      • Contribute
      • Security
    • Announcements Archive
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Developers
  2. Migration Guides

iOS SDK v7.0.0 Migration Guide

This guide is to provide information about breaking changes and how to migrate from 6.x.x version to v7.0.0. AmitySDK 7.0.0 is the major release of our SDK.

Last updated 3 months ago

Was this helpful?

Installation

Manual Installation

For those migrating from AmitySDK v5 to v7, manual installation now requires including RealmSwift.xcframework alongside the existing frameworks.

Interface Changes

Class
Changes
Remarks

AmityPostFlagger

Removed

Use apis in AmityPostRepository instead

AmityCommentFlagger

Removed

Use apis in AmityCommentRepository instead

AmityMessageFlagger

Removed

Use apis in AmityMessageRepository instead

AmityUserFlagger

Removed

Use apis in AmityUserFlagger instead

AmityChannelParticipation

Removed

Use apis in AmityChannelMembership class instead

AmityCommunityParticipation

Removed

Use apis in AmityCommunityMembership instead

AmityCommentEditor

Removed

Use apis in AmityCommentRepository instead

AmityMessageEditor

Removed

Use apis in AmityMessageRepository instead

enum AmityCommunityType

Removed

-

AmityUserFollowManager

Removed

Use apis in AmityUserRelationship class instead

StoryTargetSearchInfo

Removed

Renamed to AmityStoryTargetSearchInfo

enum AmityFollowStatus: Int

Removed

No changes needed

AmityClient

Property | Methods
Changes
Remarks

currentUser

Removed

Use user instead

totalUnreadCount: Int

Removed

Use getUserUnread() instead

startUnreadCountSync()

Removed

stopUnreadCountSync()

Removed

startUnreadSync()

Removed

stopUnreadSync()

Removed

syncUnreadCount()

Removed

registerDeviceForPushNotification(withDeviceToken:,completion:_)

Removed

Use registerPushNotification instead

registerDeviceForPushNotification(withDeviceToken:_) async throws

Removed

Use registerPushNotification instead

unregisterDeviceForPushNotification(forUserId:,completion:_)

Removed

Use unregisterPushNotification() instead

unregisterDeviceForPushNotification(forUserId:_) async throws

Removed

Use unregisterPushNotification() instead

unregisterPushNotification(forUserId:_) async

Removed

Use unregisterPushNotification() instead

updateUser(builder:_) async throw

Removed

Use editUser() instead

updateUser(builder:,completion:_)

Removed

Use editUser() instead

AmityStreamRepository

Property | Methods
Changes
Remarks

createVideoStream(withTitle:,description:,thumbnailImage:,meta:,completion:_)

Removed

Use createStream(title:,description:,thumbnailImage:,meta:_) async throws instead

getStreamById(_ streamId:_)

Removed

Use getStream(streamId:_) instead

getStreamsCollection(query:_)

Removed

Use getStreams(query:_) instead

AmityChannel

Property | Methods
Changes
Remarks

messageCount: Int

Removed

Use messageCount from AmitySubChannel instead

participation: AmityChannelParticipation

Removed

Use membership instead

unreadCount: Int

Removed

Use subChannelsUnreadCount instead or unreadCount from AmitySubChannel instead

hasMentioned: Bool

Removed

Use isMentioned instead

defaultSubChannelUnreadCount: Int

Removed

Use subChannelsUnreadCount instead or unreadCount from AmitySubChannel instead

AmitySubChannel

Property | Methods
Changes
Remarks

hasMentioned: Bool

Removed

Use isMentioned instead

startReading()

Removed

Use startMessageReceiptSync method in AmitySubChannelRepository instead

stopReading()

Removed

Use stopMessageReceiptSync method in AmitySubChannelRepository instead

AmityObject

Property | Methods
Changes
Remarks

object: T

Removed

Use snapshot instead

AmityChannelRepository

Property | Methods
Changes
Remarks

totalDefaultSubChannelUnreadCount: Int

Removed

Use getUserUnread() from AmityClient instead

updateChannel(_:)

Removed

Use editChannel() instead.

AmityCommunity

Property | Methods
Changes
Remarks

participation: AmityCommunityParticipation

Removed

Use membership instead

AmityCommentRepository

Property | Methods
Changes
Remarks

deleteComment(withId:_,hardDelete:_,completion:_)

Removed

Use softDeleteComment(commentId:_) async throws -> Bool or hardDeleteComment(commentId:_) async throws -> Bool instead

createComment(with:_,completion:_)

Removed

Use createComment(options:_) async throws instead

updateComment(withId:,options:,completion:_)

Removed

Use editComment(commentId:_,options:_) async throws -> AmityComment instead

updateComment(withId:,options:_) async throws

Removed

Use editComment(commentId:_,options:_) async throws -> AmityComment instead

getLatestComment(withReferenceId:,referenceType:_,includeReplies:_)

Removed

getLatestComment(referenceId:_,referenceType:_,includeReplies:_) async throws -> AmityComment instead

AmityPollRepository

Property | Methods
Changes
Remarks

createPoll(options:,completion:_)

Removed

Use createPoll(options:_) async throws -> String instead

closePoll(withId:,completion:_)

Removed

Use closePoll(pollId:_) async throws -> Bool instead

votePoll(withId:,answerIds:,completion:_)

Removed

Use votePoll(pollId:,answerIds:) async throws -> Bool instead

deletePoll(withId:,completion:_)

Removed

Use deletePoll(pollId:_) async throws -> Bool instead

AmityFeedRepository

Property | Methods
Changes
Remarks

getCustomPostRankingGlobalfeed()

Removed

Use getCustomRankingGlobalFeed() -> AmityCollection<AmityPost> instead.

UserUnread

Property | Methods
Changes
Remarks

hasMentioned

Removed

Use isMentioned instead

AmityPostRepository

Property | Methods
Changes
Remarks

createPost(_ builder:_,targetId:_,targetType:_,completion:_)

Removed

Use dedicated APIs such as createTextPost,createImagePost,createFilePost,createVideoPost,createPollPost and createLiveStreamPost instead.

createPost(_ builder:_,targetId:_,targetType:_) async throws

Removed

Use dedicated APIs such as createTextPost,createImagePost,createFilePost,createVideoPost,createPollPost and createLiveStreamPost instead.

createPost(_ builder:_,targetId:_,targetType:_,metadata:_,mentionees:_,completion:_)

Removed

Use dedicated APIs such as createTextPost,createImagePost,createFilePost,createVideoPost,createPollPost and createLiveStreamPost instead.

createPost(_ builder:_,targetId:_,targetType:_,metadata:_,mentionees:_) async throws

Removed

Use dedicated APIs such as createTextPost,createImagePost,createFilePost,createVideoPost,createPollPost and createLiveStreamPost instead.

updatePost(withId postId:_,builder:_,completion:_)

Removed

Use func editPost(postId:,builder:) async throws -> AmityPost instead.

updatePost(withId postId:_,builder:_,metadata:_,mentionees:_,completion:_)

Removed

Use func editPost(postId:,builder:,metadata:,mentionees:) async throws -> AmityPost instead.

deletePost(withId postId:_,parentId:_,hardDelete:_,completion:_)

Removed

Use softDeletePost(postId:,parentId:) async throws -> Bool to soft delete post and hardDeletePost(postId:,parentId:) async throws -> Bool instead

approvePost(withId postId:_,completion:_)

Removed

Use func approvePost(postId:) async throws -> Bool instead.

declinePost(withId postId:_,completion:_)

Removed

Use func declinePost(postId:) async throws -> Bool instead.

AmityCommunityMembership

Property | Methods
Changes
Remarks

getMembers(membershipOptions:_,roles:_,sortBy:_)

Removed

Use getMembers(filter: AmityCommunityMembership.QueryFilter,roles: [String],sortBy: AmityCommunityMembershipSortOption,includeDeleted: Bool = true) instead

searchMembers(keyword:_,membership membershipOptions:_,roles:_,sortBy:_)

Removed

Use searchMembers(keyword: String,filter: [AmityCommunityMembership.SearchFilter],roles: [String],sortBy: AmityCommunityMembershipSortOption,includeDeleted: Bool = true) instead

searchMembers(keyword:_,filter:_,roles:_) -> AmityCollection<AmityCommunityMember>

Removed

Use searchMembers(keyword: String,filter: [AmityCommunityMembership.SearchFilter],roles: [String],sortBy: AmityCommunityMembershipSortOption,includeDeleted: Bool = true) instead

AmityCommunityModeration

Property | Methods
Changes
Remarks

banMembers(_ userIds:_,completion:_)

Removed

Use func banMembers(userIds:) async throws -> Bool instead.

unbanMembers(_ userIds:_,completion:_)

Removed

Use func unbanMembers(userIds:) async throws -> Bool instead.

addRoles(_ roles:_,userIds:_,completion:_)

Removed

Use func addRoles(roles:,userIds:) async throws -> Bool instead.

removeRoles(_ roles:_,userIds:_,completion:_)

Removed

Use func removeRoles(roles:,userIds:) async throws -> Bool instead.

AmityRegion

Enum
Changes
Remarks

case global

Removed

-

AmityEndpoint

Enum
Changes
Remarks

init(httpUrl:_, rpcURL:_, mqttHost:_, uploadUrl:_)

Removed rpcURL

Use init(httpUrl:_, mqttHost:_, uploadUrl:_)

AmityReaction

Property | Methods
Changes
Remarks

reactorId

Removed

Use userId from creator object.

reactorDisplayName

Removed

Use displayName from creator object.

AmityReactionRepository

Property | Methods
Changes
Remarks

addReaction(_ reaction:_,referenceId contentId:_,referenceType type:_,completion:_)

Removed

Use func addReaction(reaction:,referenceId:,referenceType:) async throws -> Bool instead.

removeReaction(_ reaction:_,referenceId contentId:_,referenceType type:_,completion:_)

Removed

Use func removeReaction(reaction:,referenceId:,referenceType:) async throws -> Bool instead.

AmityCommunityQueryOptions

Property | Methods
Changes
Remarks

init(displayName:_,filter:_,sortBy:_,categoryId:_,includeDeleted:_)

Removed

Use initializer without displayName

AmityCommunityRepository

Property | Methods
Changes
Remarks

createCommunity(with options:_,completion:_)

Removed

Use func createCommunity(with:) async throws -> AmityCommunity instead.

updateCommunity(withId id:_,options:_,completion:_)

Removed

Use func editCommunity(id:,options:) async throws -> AmityCommunity instead.

updateCommunity(withId id:_,options:_) async throws -> AmityCommunity

Removed

Use func editCommunity(id:,options:) async throws -> AmityCommunity instead.

joinCommunity(withId communityId:_,completion:_)

Removed

Use func joinCommunity(withId:) async throws -> Bool instead.

leaveCommunity(withId communityId:_,completion:)_

Removed

Use func leaveCommunity(withId:) async throws -> Bool instead.

searchMembers(communityId:_,displayName:_,membership:_,roles:_,sortBy:_)

Removed

Use searchMembers method from AmityCommunityMembership class instead

searchMembers(communityId:_,keyword:_,membership:_,roles:_,sortBy:_)

Removed

Use searchMembers method from AmityCommunityMembership class instead.

AmityComment

Property | Methods
Changes
Remarks

dataType

Removed

Use dataTypes instead.

AmityUserRepository

Property | Methods
Changes
Remarks

searchUser(_ displayName:_,sortBy:_)

Removed

Use func searchUsers(displayName:,sortBy:) -> AmityCollection<AmityUser> instead.

getViewedUsers(postId: String)

Removed

Use getReachedUsers(viewedType: AmityViewedType,viewId: String) instead.

AmitySubChannelRepository

Property | Methods
Changes
Remarks

createSubChannel(withName:_,inChannel channelId:_,completion:_)

Removed

Use func createSubChannel(subChannelName:,channelId:) async throws -> AmitySubChannel instead

updateSubChannel(withId:_,updatedName:_,completion:_)

Removed

Use func editSubChannel(subchannelId:,updatedName:) async throws -> AmitySubChannel instead.

updateSubChannel(withId:_,updatedName:_) async throws

Removed

Use func editSubChannel(subchannelId:,updatedName:) async throws -> AmitySubChannel instead.

deleteSubChannel(withId:_,hardDelete:_,completion:_)

Removed

Use func softDeleteSubChannel(subChannelId:) async throws -> Bool or func hardDeleteSubChannel(subChannelId:) async throws -> Bool instead

AmityChannelModeration

Property | Methods
Changes
Remarks

muteMembers(_ userIds:_,mutePeriod:_,completion:_)

Removed

Use muteMembers(userIds:,mutePeriodInSeconds:) async throws -> Bool instead.

unmuteMembers(_ userIds:_,completion:_)

Removed

Use func unmuteMembers(userIds:) async throws -> Bool instead.

banMembers(_ userIds:_,completion:_)

Removed

Use func banMembers(userIds:) async throws -> Bool instead.

unbanMembers(_ userIds:_,completion:_)

Removed

Use func unbanMembers(userIds:) async throws -> Bool instead.

addRole(_ role:_,userIds:_,completion:_)

Removed

Use func addRole(role:,userIds:) async throws -> Bool instead.

addRoles(_ role:_,userIds:_) async throws -> Bool

Removed

Use func addRole(role:,userIds:) async throws -> Bool instead.

removeRole(_ role:_,userIds:_,completion:_)

Removed

Use func removeRole(role:,userIds:) async throws -> Bool instead.

removeRoles(_ role:_,userIds:_) async throws -> Bool

Removed

Use func removeRole(role:,userIds:) async throws -> Bool instead.

AmityImageMessageCreateOptions

Property | Methods
Changes
Remarks

imageURL: URL?

Removed

Use attachment property instead.

init(subChannelId:_,imageURL:_,caption:_,fullImage:_, tags:_,parentId:_)

Removed

Use initializer with attachment instead

AmityFileMessageCreateOptions

Property | Methods
Changes
Remarks

fileURL: URL?

Removed

Use attachment property instead.

init(subChannelId:_,fileURL:_,fileName:_,caption:_,tags:_,parentId:_)

Removed

Use initializer with attachment instead

AmityFileMessageCreateOptions

Property | Methods
Changes
Remarks

fileURL: URL?

Removed

Use attachment property instead.

init(subChannelId:_,fileURL:_,fileName:_,caption:_,tags:_,parentId:_)

Removed

Use initializer with attachment instead

AmityAudioMessageCreateOptions

Property | Methods
Changes
Remarks

audioFileURL: URL?

Removed

Use attachment property instead.

init(subChannelId:_,audioFileURL:_,fileName:_,tags:_,parentId:_)

Removed

Use initializer with attachment instead

AmityVideoMessageCreateOptions

Property | Methods
Changes
Remarks

videoFileURL: URL?

Removed

Use attachment property instead.

init(subChannelId:_,videoFileURL:_,fileName:_,tags:_,parentId_)

Removed

Use initializer with attachment instead

AmityMessageRepository

Property | Methods
Changes
Remarks

deleteMessage(withId:_,completion:_)

Removed

Use func softDeleteMessage(withId:) async throws -> Bool instead.

func deleteMessage(withId:_) async throws -> Bool

Removed

Use func softDeleteMessage(withId:) async throws -> Bool instead.

deleteFailedMessage(messageId:_,completion:_)

Removed

Use func softDeleteMessage(withId:) async throws -> Bool instead.

createCustomMessage(options:_,completion:_)

Removed

Use func createCustomMessage(options:) async throws -> AmityMessage instead.

createTextMessage(options:_,completion:_)

Removed

Use func createTextMessage(options:) async throws -> AmityMessage instead.

createImageMessage(options:_,completion:_)

Removed

Use func createImageMessage(options:) async throws -> AmityMessage instead.

createAudioMessage(options:_,completion:_)

Removed

Use func createAudioMessage(options:) async throws -> AmityMessage instead.

createFileMessage(options:_,completion:_)

Removed

Use func createFileMessage(options:) async throws -> AmityMessage instead.

createVideoMessage(options:_,completion:_)

Removed

Use func createVideoMessage(options:) async throws -> AmityMessage instead.

editMessage(withId:_,text:_,metadata:_,mentionees:_) async throws -> Bool

Removed

Use func editTextMessage(messageId:,text:,metadata:,mentionees:) async throws -> Bool instead.

AmityFileRepository

Property | Methods
Changes
Remarks

uploadImage(image:_,progress:_,completion:_)

Removed

Use func uploadImage(image:,progress:) async throws -> AmityImageData instead.

uploadFile(_ file:_,progress:_,completion:_)

Removed

Use func uploadFile(file:,progress:) async throws -> AmityFileData instead.

uploadFile(with:_,fileName:_,progress:_,completion:_)

Removed

Use func uploadFile(url:,fileName:,progress:) async throws -> AmityFileData instead.

uploadVideo(url:_,progress:_,completion:_)

Removed

Use func uploadVideo(with:,progress:) async throws -> AmityVideoData instead.

downloadFile(fromURL:_,completion:_)

Removed

Use func downloadFile(fromURL:) async throws -> URL instead.

AmityUserNotificationsManager

Property | Methods
Changes
Remarks

enable(modules:_,completion:_)

Removed

Use func enable(for:) async throws -> Bool instead.

disable(completion:_)

Removed

Use func disableAllNotifications() async throws -> Bool instead.

getSettingsWithCompletion(completion:_)

Removed

Use func getSettings() async throws -> AmityUserNotificationSettings instead.

Refer to this unread count documentation:

Refer to this unread count documentation:

Refer to this unread count documentation:

Refer to this unread count documentation:

Refer to this unread count documentation:

https://docs.social.plus/social-plus-sdk/chat/channels/unread-count
https://docs.social.plus/social-plus-sdk/chat/channels/unread-count
https://docs.social.plus/social-plus-sdk/chat/channels/unread-count
https://docs.social.plus/social-plus-sdk/chat/channels/unread-count
https://docs.social.plus/social-plus-sdk/chat/channels/unread-count