# Channel Unread Count

## Channel unread count

The SDK provides a simple way for clients to retrieve the unread count for a channel. To view the unread count for a channel, we can get it from a channel object. This count represents the number of messages that you have not yet read in that channel.

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/eada692cbdc71ba0c191a30ba0c5de9f>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/amythee/8505762b042deef4386c156f21828f7f>" %}
{% endtab %}

{% tab title="TypeScript" %}
{% embed url="<https://gist.github.com/amythee/29014cf92fd7a8ad58f8c06e54a5c5e8>" %}
{% endtab %}
{% endtabs %}

#### Check unread count support for channel

To check if a channel supports the Unread Count feature, you can use the following code:

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/a39bd0734313e9fe15bd860d57c13301>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/amythee/436f9aecf5cc2312676e430b22267df7>" %}
{% endtab %}

{% tab title="TypeScript" %}
{% embed url="<https://gist.github.com/amythee/bfc68d89e077a0ddbdefdeb29aa24e19>" %}
{% endtab %}
{% endtabs %}

#### Channel Mention Status

To get the mention status of the current user in a channel, developers can use the following code.

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/ce27ed17e596a0e7b701575666858803>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/amythee/11f1bdcd3191f6feed43b57c301e7346>" %}
{% endtab %}
{% endtabs %}

#### Subchannel Mention Status

To get the mention status of the current user in a sub channel, developers can use the following code.

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/afda77cd80db82a5f9c303290cbe443f>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/amythee/5d47c39913b0440dbe898ae807562f8e>" %}
{% endtab %}
{% endtabs %}


---

# 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-sdk/chat/channels/unread-count/channel-unread-count.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.
