iOS SDK v6.9.0 Deprecation Note

Deprecated APIs

Deprecated APIs in AmityClient:

MethodRemark

registerDeviceForPushNotification(token:)

Use registerPushNotification( token:) instead.

unregisterDeviceForPushNotification(userId:)

Use unregisterPushNotification(userId:) instead

updateUser(builder:)

Use editUser(builder:) instead.

Deprecated APIs in AmityUserNotificationsManager:

MethodRemark

getSettingsWithCompletion(_ completion:)

Use getSettings() instead.

Deprecated APIs in AmityPostRepository:

MethodRemark

createPost(builder:, targetId:, targetType:)

and

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

Use

createTextPost(builder:, targetId:, targetType:, metadata:, mentionees:) ,

createImagePost(builder:, targetId:, targetType:, metadata:, mentionees:),

createFilePost(builder:, targetId:, targetType:, metadata:, mentionees:),

createPollPost(_ builder:, targetId:, targetType:, metadata:, mentionees:)or

createLiveStreamPost(_ builder:, targetId:, targetType:, metadata:, mentionees:)

instead.

Deprecated APIs in AmityCommunityRepository:

MethodRemark

searchMembers(communityId:, keyword:, membershipOptions: , roles:, sortBy:)

Use searchMembers(communityId:, keyword:, membershipOptions: , roles:, sortBy:) in AmityCommunityMembership instead.

updateCommunity(id:, options:)

Use editCommunity(id:, options:) instead.

Deprecated APIs in AmityChannelRepository:

MethodRemark

updateChannel(builder:)

Use editChannel(builder:) instead.

Deprecated APIs in AmitySubChannelRepository:

MethodRemark

updateSubChannel( subchannelId:, updatedName:)

Use editSubChannel( subchannelId:, updatedName:) instead.

Deprecated APIs in AmityCommentRepository:

MethodRemark

updateComment(commentId:, options:)

Use editComment(commentId:, options:) instead.

Deprecated APIs in AmityChannelModeration:

MethodRemark

addRoles(role:, userIds:)

Use addRole(role:, userIds:) instead.

removeRoles(role:, userIds:)

Use removeRole(role:, userIds:) instead.

Deprecated APIs in AmityMessageRepository:

MethodRemark

editMessage(messageId:, text:, metadata:, mentionees:)

Use editTextMessage(withId:, text:, metadata:, mentionees:) instead.

Deprecated APIs in AmityStreamBroadcaster. Use the `AmityVideoBroadcaster` class instead:

MethodRemark

setup(config:)

Use setup(config:) in AmityVideoBroadcaster instead.

startPublish(existingStreamId:)

Use startPublish(existingStreamId:) in AmityVideoBroadcaster instead.

stopPublish()

Use stopPublish() in AmityVideoBroadcaster instead.

Last updated