iOS SDK v6.8.0 Deprecation Note

Deprecated APIs

AmityCommentRepository:

MethodsRemarks

createComment(options:, completion:)

Use async createComment(options:)instead.

getLatestComment(referenceId:, referenceType:, includeReplies:)

Use async getLatestComment(referenceId:, referenceType:, includeReplies:)instead.

updateComment(commentId:, options:, completion:)

Use async updateComment(commentId:, options:)instead.

deleteComment(commentId:, hardDelete:, completion:)

Use async softDeleteComment(commentId:) or hardDeleteComment(commentId:) instead.

AmityCommentFlagger

Deprecated APIs in AmityCommentFlagger class. Use APIs in AmityCommentRepository instead.

MethodsRemarks

flag(completion:)

Use async flagComment(commentId:)in AmityCommentRepository instead.

unflag(completion:)

Use async unflagComment(commentId:) in AmityCommentRepository instead.

isFlaggedByMe(completion:)

Use async isCommentFlaggedByMe(commentId:) in AmityCommentRepository instead.

AmityUserFollowManager

Deprecated APIs in AmityUserFollowManager class. Use APIs in AmityUserRelationship instead.

MethodsRemarks

followUser(userId:, completion:)

Use async followUser(userId:)in AmityUserRelationship instead.

unfollowUser(userId:, completion:)

Use async unfollowUser(userId:) in AmityUserRelationship instead.

acceptUserRequest(userId:, completion:)

Use async acceptMyFollower(userId:) in AmityUserRelationship instead.

declineUserRequest(userId: , completion:)

Use async declineMyFollower(userId:) in AmityUserRelationship instead.

blockUser(userId:)

Use async blockUser(userId:) in AmityUserRelationship instead.

unblockUser(userId:)

Use async unblockUser(userId:) in AmityUserRelationship instead.

getMyFollowInfo()

Use async getMyFollowInfo() in AmityUserRelationship instead.

getUserFollowInfo(userId:)

Use async getFollowInfo(userId:) in AmityUserRelationship instead.

getMyFollowerList(option:)

Use async getMyFollowers(option:) in AmityUserRelationship instead.

getUserFollowerList(userId:)

Use async getFollowers(userId:)in AmityUserRelationship instead.

getUserFollowingList(userId:)

Use async getFollowings(userId:) in AmityUserRelationship instead.

AmityChannelParticipation

Deprecated APIs in AmityChannelParticipation class. Use APIs in AmityChannelMembership instead.

MethodsRemarks

addMembers(userIds:, completion:)

Use async addMembers(userIds:)in AmityChannelMembership instead.

removeMembers(userIds:, completion:)

Use async removeMembers(userIds:)in AmityChannelMembership instead.

getMembers(filter:, sortBy:, roles:)

Use async getMembers(filter:, sortBy:, roles:) in AmityChannelMembership instead.

searchMembers(displayName:, filterBuilder:, roles:)

Use async searchMembers(displayName:, filterBuilder:, roles:) in AmityChannelMembership instead.

AmityChannelModeration

MethodsRemarks

muteMembers(userIds:, mutePeriodInSeconds:, completion:)

Use async muteMembers(userIds:, mutePeriodInSeconds:) instead.

unmuteMembers(userIds:, completion:)

Use async unmuteMembers(userIds:) instead.

banMembers(userIds:, completion:)

Use async banMembers(userIds:) instead.

unbanMembers(userIds:, completion:)

Use async unbanMembers(userIds:) instead.

addRole(role:, userIds:, completion:)

Use async addRoles(role:, userIds:, completion:) instead.

removeRole(role: , userIds: , completion:)

Use async removeRoles(role:, userIds:, completion:) instead.

AmityMessageEditor

MethodsRemarks

editText(text:, metadata:, mentionees:, completion:)

Use async editMessage(messageId:, text:, metadata:, mentionees:) in AmityMessageRepository instead.

Deprecated APIs in AmityMessageFlagger class. Use APIs in AmityMessageRepository instead.

AmityMessageFlagger

MethodsRemarks

flag(completion:)

Use async flagMessage(messageId:) in AmityMessageRepository instead.

unflag(completion:)

Use async unflagMessage(messageId:) in AmityMessageRepository instead.

isFlaggedByMe(completion:)

Use async isMessageFlaggedByMe( messageId:) in AmityMessageRepository instead.

AmitySubChannelRepository

MethodsRemarks

createSubChannel( subChannelName:, channelId:, completion:)

Use async createSubChannel( subChannelName:, channelId:) instead.

updateSubChannel( subchannelId:, updatedName:, completion:)

Use async updateSubChannel( subchannelId:, updatedName:) instead.

deleteSubChannel(subChannelId:, hardDelete:, completion:)

Use async softDeleteSubChannel( subChannelId:) or hardDeleteSubChannel( subChannelId:) instead.

AmityClient

PropertyRemarks

currentUser

Use user instead.

AmityMessageRepository

MethodsRemarks

deleteMessage(messageId:, completion:)

Use async softDeleteMessage(messageId:) instead.

AmityFeedRepository

MethodsRemarks

getCustomPostRankingGlobalfeed()

Use async getCustomRankingGlobalFeed() instead.

AmitySteamRepository

MethodsRemarks

createVideoStream(title:, description:, thumbnailImage:, meta:, completion:)

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

getStreamById(streamId:)

Use async getStream(streamId:) instead.

getStreamsCollection(query:)

Use async getStreams(query:) instead.

AmityStreamBroadcaster

PropertyRemarks

cameraPosition

Use switchCamera instead.

Last updated

#3026: New Content: Technical FAQ

Change request updated