AmityCommunityCreationDataBuilderinstance. The mandatory property is
displayName. You can set other properties as per your necessities.
keywordparameter allows you to filter communities based on the community
filterparameter let you filter communities based on the logged-in user membership status
categoryIdparameters let you filter communities based on community categories
sortByparameters let you filter communities based on the order that the communities were created or based on alphabetical order
includeDeletedparameters let you specify if you want to include deleted communities in your query
AmityCommunityUpdateDataBuilderwhich allows you to set properties that you want to update. Then you can use
AmityCommunityRepositoryto update the community.
Note. By default, only the community's original creator or administrators can update/delete the community.
AmityCommunityParticipationclass. It exposes
getMembersmethod which accepts
membershipOptionsparameter can have the following filters:
membershipOptionsparameter will default to
.member. This means that the result for both sample code below is the same.
removeMembers(_:)which can be used to add or remove users from the community.
AmityCommunityModerationclass provides a way to moderate the community by banning or unbanning users.
banMembers(_:)method accepts an array of user ids to ban and
unbanMembers(_:)accepts an array of user ids to unban.
removeRoles(_:)method. These functions accept an array of string as an argument that contains the roles that you want to add or remove from a specific user.
AmityCommunityRepositorywill also be able to manage community categories. When communities are put into a category, you will be able to sort and filter each of the communities in that category. You can access the categories for any communities through
categoriesproperty in each
Note: Categories can only be created and updated from Amity Social Cloud Console.
AmityCommunitymodel allows user to get post count by feed type .
AmityCommunitymodel allows user to get status of
AmityPermission.reviewCommunityPostby following this
publishedby default. if you do not call this function, a post of member will be shown on community feed immediately without reviewing.
deleteCommunitymethod. It accepts the community ID as the parameter.