# Post Creation Page

<figure><img src="/files/qCzV45tgftLhkLtytrrk" alt=""><figcaption><p>The default state of post creation</p></figcaption></figure>

## **Types of Post Creations:**

## Text&#x20;

![example of text post ](/files/-MX6zRrXGJbMfhwbbZWh)

<figure><img src="/files/f9LBR2fkighoM2bE1f2D" alt=""><figcaption><p>Mention users in a post</p></figcaption></figure>

![Example of hyperlink generated from URL input ](/files/-MX6zXQ1yji37bhv_y8u)

## Text and Images

![](/files/-MX6zbsHEfgIFRtG4_I8)

#### &#x20;User can select images from 2 sources.&#x20;

### Device Camera

<figure><img src="/files/GzxXHPz2oWrmEpuwlRQk" alt=""><figcaption><p>System will launch the device camera view</p></figcaption></figure>

### Device Image Gallery

![](/files/-MX6zmxO1cCCXz4lPsNi)

## Text and Files

![](/files/-MX6ztUOg48jNAibAkX3)

<figure><img src="/files/sSctJw6Yes6Qu1VooPJd" alt=""><figcaption></figcaption></figure>

## Text and Videos

<figure><img src="/files/OrVgubIcCrnczFIKMUmv" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/6v2bY8meZuLrfa26Ms7f" alt=""><figcaption></figcaption></figure>

## Polls

<figure><img src="/files/DxGkPhBUw65jfzJvizwN" alt=""><figcaption><p>Poll post</p></figcaption></figure>

<figure><img src="/files/0QrkDawztoCvYoaCdxov" alt=""><figcaption><p>Mention users in a poll post</p></figcaption></figure>

### Livestream

To create a live stream post and for a detailed discussion on the live stream features, refer to [Livestream post](/~/changes/5GVz91dkzloMulIORPZq/amity-uikit/android/community/using-only-some-components/post-creation-page/livestream-post.md) documentation.

<figure><img src="/files/scGpk2nxYwJxWmunQeSW" alt=""><figcaption><p>Mention users in a livestream post</p></figcaption></figure>

## Features&#x20;

| Feature         | Description                                                                                                                                                                                                                                                                            |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Post creation   | User can create post by adding content such as text, images, videos and files.                                                                                                                                                                                                         |
| Mention in post | <p>Mention users in post by typing @ to activate mention suggestion and selecting their names in the suggestion list. Up to 30 users can be mentioned per post.</p><p></p><p>An alert will be shown if character count is greater than 50000 or mentions count is greater than 30.</p> |

## Usage

**Create a Fragment**

&#x20;User can create a post either on a community feed or user's own feed.

**Attachment options**

&#x20;We currently support three types of attachment option when creating a post. These are:

1. `AmityPostAttachmentItem.PHOTO`&#x20;
2. `AmityPostAttachmentItem.VIDEO` &#x20;
3. `AmityPostAttachmentItem.FILE` . &#x20;

You can optionally choose to allow these attachment options by using the method `allowPostAttchments`. By default the fragment includes all attachment options.

**Create a post on community feed**&#x20;

```
//for text, image, file, video post
AmityPostCreatorFragment.newInstance()
    .onCommunityFeed(community or communityId)
     //optional
     .allowPostAttachments(
           listOf(
                   AmityPostAttachmentOptionItem.PHOTO,
                   AmityPostAttachmentOptionItem.VIDEO,
                   AmityPostAttachmentOptionItem.FILE
               )
           )
    .build()
    
//for poll post    
AmityPollPostCreatorFragment.newInstance()
    .onCommunityFeed(community or communityId)
    .build()
```

**Create a post on user's own feed**&#x20;

```
//for text, image, file, video post
AmityPostCreatorFragment.newInstance()
     .onMyFeed()
     //optional
     .allowPostAttachments(
           listOf(
                   AmityPostAttachmentOptionItem.PHOTO,
                   AmityPostAttachmentOptionItem.VIDEO,
                   AmityPostAttachmentOptionItem.FILE
               )
           )
     .build()
   
//for poll post      
AmityPollPostCreatorFragment.newInstance()
     .onMyFeed()
     .build()
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.social.plus/~/changes/5GVz91dkzloMulIORPZq/amity-uikit/android/community/using-only-some-components/post-creation-page.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
