block-quote On this pagechevron-down
copy Copy chevron-down
Developers chevron-right Migration Guides iOS SDK v6.0.0 Migration Guide This guide is to provide information about breaking changes and how to migrate to the AmitySDK iOS 6.0.0 version.
Manual Installation
AmitySDK 6.x.x version requires RealmSwift.xcframework along with existing frameworks.
Behaviour Changes
Support for Providing custom ID when creating channel is now removed.
Now you can create multiple sub-channels inside a channel. Each Sub Channels acts as a separate container for message. The channel itself would act as a default Sub Channel. You can access this default sub channel id through defaultSubChannelId property in class AmityChannel.
Sending a message in a Channel or Sub Channel now requires subchannelId. If you want to send message in default subchannel (i.e the default channel itself), please use defaultSubChannelId property from AmityChannel.
For sending message in particular AmitySubchannel, you can get its id from subChannelId property.
Interface Changes:
@objc support for all interfaces such as classes, enums, methods, properties are removed. Please create a swift wrapper class to interact with the SDK if your project still uses Objective-C.
Please refer to Using AmitySDK with ObjectiveC section of the documentation for more details.
All Enums with rawType UInt has been changed to Int
AmityCollection
Property | Methods
Changes
Property | Methods
Changes
Property | Methods
Changes
Remarks
init(apiKey:, httpUrl:, socketUrl:_)
Use init(apiKey:_, region: _) instead
Use init(apiKey_, endpoint:_)
login(userId:, displayName: ,authToken:, completion: )
Use login(userId:,displayName: ,authToken:,sessionHandler: ) async instead
AmityContentSettings
Property | Methods
Changes
Remarks
Property | Methods
Changes
Remarks
New property totalDefaultSubChannelUnreadCount: Int is introduced which provides unread count for default subchannel.
AmityChannelBuilderProtocol
Use AmityChannelBuilder instead.
class AmityChannelQueryType
enum AmityChannelQueryType
Property | Methods
Changes
Remarks
Renamed → defaultSubChannelUnreadCount
Renamed → defaultSubChannelHasUnreadMention
AmityChannelParticipation
Property | Methods
Changes
Remarks
Use startReading(subChannelId:) instead
Use stopReading(subChannelId:) instead
Property | Methods
Changes
Remarks
Use AmityReactionRepository instead
AmityMessageRepository
Property | Methods
Changes
Remarks
createCustomMessage(withChannelId:_,...) → String
Use createCustomMessage(options:, completion: ) instead
createTextMessage(withChannelId:_,...) → String
Use createTextMessage(options:, completion:_) instead
createTextMessage(withChannelId:, …, mentionees: , ..)
Use createTextMessage(options:, completion:_) instead
createAudioMessage(withChannelId:_,…) → String
Use createAudioMessage(options:, completion:_) instead
createImageMessage(withChannelId:_,…) → String
Use createImageMessage(options:, completion:_) instead
createFileMessage(withChannelId:_,…) → String
Use createFileMessage(options:, completion:_) instead
createVideoMessage(withChannelId:_,…) → String
Use createVideoMessage(options:, completion:_) instead
AmityMessageEditor
Property | Methods
Changes
Remarks
edittext(_ text: String, completion:....)
Use edittext(_ text: String, metaData, mentionees, completion:....) instead
edittext(_ text: String, metaData, mentionees, completion:....)
Parameter metaData and metionees are now nil by default.
Property | Methods
Changes
Remarks
childrenPosts: [AmityPost]?
childrenPosts: [AmityPost]
getVideoInfo(for quality: AmityVideoDataQuality)
Use getVideoInfo() → AmityVideoData?
Use getVideoInfo() → AmityVideoData?
Use availableResolution() → [AmityVideoResolution] instead
AmityPollRepository
Property | Methods
Changes
Remarks
Use AmityPollCreateOptions
createPoll(_ builder: AmityPollBuilder,:_)
Use createPoll(_ options: AmityPollCreateOptions)
Property | Methods
Changes
AmityPollAnswer
Property | Methods
Changes
AmityPostRepository
Property | Methods
Changes
Remarks
approvePost(withPostId:,: )
declinePost(withPostId:,: )
deletePost(withPostId:,: )
updatePost(withPostId:,: )
AmityFeedRepository
Property | Methods
Changes
Remarks
Use equivalent method from AmityPostRepository
Use equivalent method from AmityPostRepository
Use equivalent method from AmityPostRepository
Use equivalent method from AmityPostRepository
Use equivalent method from AmityPostRepository
Use equivalent method from AmityPostRepository
Use equivalent method from AmityPostRepository
AmityCommunityRepository
Property | Methods
Changes
Remarks
AmityCommunityCreateDataBuilder
AmityCommunityCreateOptions
AmityCommunityUpdateDataBuilder
AmityCommunityCreateOptions
createCommunity(with builder: AmityCommunityBuilder,:_)
createCommunity(with options: AmityCommunityCreateOptions)
updateCommunity(withId:, builder: AmityCommunityBuilder,: )
updateCommunity(withId:, options: AmityCommunityUpdateOptions, : )
getCommunities(displayName:,:_)
Use getCommunities(with options: AmityCommunityQueryOptions)
Property | Methods
Changes
Property | Methods
Changes
Remarks
getCommentWithReferenceId(_:)
Use new method getCommments(options: AmityCommentQueryOptions)
createComment(forReferenceId:_,: _)
Use new method createComment(with options: AmityCommentCreateOptions)
Property | Methods
Changes
Remarks
Property | Methods
Changes
AmityUserFollowManager
Property | Methods
Changes
Remarks
getMyFollowInfo(:,completion: )
Use getMyFollowInfo(_:) → AmityObject which returns Live Object
getUserFollowInfo(:,completion: )
Use userFollowInfo(_:) → AmityObject which returns Live Object