Community Post Settings

Introducing AmityCommunityPostSettings with enhanced options to create post.

There are 3 possible options for AmityCommunityPostSettings.

  • AmityCommunityPostSettings.ANYONE_CAN_POST : Anyone can create the post and added to the community feed immediately.

  • AmityCommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED : Allow users to create posts in a community. Then, create another layer of moderation to allow community moderators to decide whether the post should reflect on the community feed.

  • AmityCommunityPostSettings.ADMIN_CAN_POST_ONLY : Allow only community moderators create a post in the community.

You can check community post settings by method getPostSettings() . This method should return AmityCommunityPostSettings.

val community: AmityCommunity
val postSettings: AmityCommunityPostSettings = community.getPostSettings()

Create Community

If you want to create a community and need to review post before they're added to your community feed, you can call the following:

By default, the postSettings value is set to ANYONE_CAN_POST. In this case, member's posts will be displayed in the community feed without any review from admin.

Update Community

If you want to update the community and change post settings, you can call the following:

Post Count with FeedType

AmityCommunity.kt allows user to get post count by feed type.

Permission

If you want to check permission review post on community, you can use this enum.AmityPermission.CREATE_PRIVILEGED_POST by following this:​Write a caption​Also, you can use AmityPermission.REVIEW_COMMUNITY_POST enum to check permission review post on community in the same method.

Also, you can use AmityPermission.REVIEW_COMMUNITY_POST enum to check permission review post on community in the same method.

Post Approval

AmityCommunity.kt allows user to get status of isPostReviewEnabled()class.​

Last updated