Image Post

Create an image post

To create image post, images must be uploaded first. SDK provides a convenient class AmityFileRepository to handle upload and download images. The repository contains uploadImage method which returns you an AmityImageData for successful upload.
A post can have maximum ten images.
Create AmityFileRepository
Upload an image with AmityFileRepository
Now to create the image post. We can build the post first by using AmityImagePostBuilder. Then use the same createPost method in AmityPostRepository to create image post.
Build and create an image post
To know more about mentions in post, refer to Mention in Post page.
Last modified 5mo ago
Export as PDF
Copy link