iOS SDK v6.7.0 Deprecation Note

Deprecated APIs

AmityCommunityRepository:

MethodsRemarks

createCommunity(options:, completion:)

Use async createCommunity( options:)instead.

joinCommunity(communityId:, completion:)

Use async joinCommunity(communityId:)instead.

leaveCommunity(communityId:, completion:)

Use async leaveCommunity(communityId:)instead.

updateCommunity(id:, options:, completion:)

Use async updateCommunity(id:, options:)instead.

AmityCommunityParticipation

Deprecated AmityCommunityParticipation class. Use AmityCommunityMembership instead.

MethodsRemarks

addMembers(userIds:, completion:)

Use async addMembers(userIds:)in AmityCommunityMembership instead.

removeMembers(userIds:, completion:)

Use async removeMembers(userIds:)in AmityCommunityMembership instead.

getMember(userId:)

Use async getMember(userId:) in AmityCommunityMembership instead.

getMembers(membershipOptions: , roles:, sortBy:)

Use async getMembers(membershipOptions: , roles:, sortBy:)in AmityCommunityMembership instead.

AmityCommunityModeration

MethodsRemarks

banMembers(userIds:, completion: )

Use async banMembers(userIds:)instead.

unbanMembers(userIds:, completion:)

Use async unbanMembers(userIds:)instead.

addRoles(roles:, userIds:, completion:)

Use async leaveCommunity(communityId:)instead.

removeRoles(roles:, userIds:, completion:)

Use async removeRoles(roles:, userIds:)instead.

AmityPostRepository

MethodsRemarks

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

Use async createPost(builder:, targetId:, targetType:)instead.

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

Use async createPost(builder:, targetId:, targetType:, metadata:, mentionees:)instead.

updatePost(postId:, builder:, completion:)

Use async editPost(postId:, builder:)instead.

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

Use async editPost(postId:, builder:, metadata:, mentionees:)instead.

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

Use async softDeletePost(postId:, parentId:) or hardDeletePost(postId:, parentId:) instead.

approvePost(postId:, completion:)

Use async approvePost(postId:) instead.

declinePost(postId:, completion:)

Use async declinePost(postId:)instead.

AmityPostFlagger

Deprecated APIs in AmityPostFlagger class. Use APIs in AmityPostRepository instead.

MethodsRemarks

flagPost(completion:)

Use async flagPost(postId:) in AmityPostRepository instead.

unflagPost(completion:)

Use async unflagPost(postId:) in AmityPostRepository instead.

isPostFlaggedByMe(completion:)

Use async isFlaggedByMe(postId:)in AmityPostRepository instead.

AmityUserFlagger

Deprecated APIs in AmityUserFlagger class. Use APIs in AmityUserRepository instead.

MethodsRemarks

flag(completion:)

Use async flagUser(userId:) in AmityUserRepository instead.

unflag(completion:)

Use async unflagUser(userId:) in AmityUserRepository instead.

isFlaggedByMe(completion:)

Use async isUserFlaggedByMe(userId:)in AmityUserRepository instead.

AmityPollRepository

MethodsRemarks

createPoll(options:, completion:)

Use async createPoll(options:)instead.

closePoll(pollId:, completion:)

Use async closePoll(pollId:)instead.

votePoll(pollId:, answerIds:, completion:)

Use async votePoll(pollId:, answerIds:)instead.

deletePoll(pollId:, completion:)

Use async deletePoll(pollId:)instead.

Last updated