# User Presence

Besides configuring to receive user presence events in the [State plugin](/chat/docs/sdk/android/v6/client/guides/state-layer-overview/),
you can also customize how user presence is displayed in the UI for both, the currently logged-in user and other users.

The `UserPresence` class allows you to configure the online indicator and whether a user should be counted as an online member.

## Usage

When using the Compose UI Components, you can customize the user presence in the `ChatTheme` composable.

```kotlin
ChatTheme(
    userPresence = UserPresence(
        // Customize the user presence of the current user.
        currentUser = UserPresence.DisplayOptions(
            showOnlineIndicator = true,
            countAsOnlineMember = true,
        ),
        // Customize the user presence of other users.
        otherUsers = UserPresence.DisplayOptions(
            showOnlineIndicator = true,
            countAsOnlineMember = true,
        ),
    ),
) {
    // Your UI content
}
```

<admonition type="note">
    The default configuration has all the options enabled for both the current user and other users.
</admonition>

## Example

Some examples of how the user presence can be configured:

| Show online indicator ✅<br/>Count as online user ❌                                                 | Show online indicator ❌<br/>Count as online user ❌                                                  |
| ---------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| ![](@chat-sdk/android/v6/_assets/user_presence_showonlineindicator_true_countasonlineuser_false.png) | ![](@chat-sdk/android/v6/_assets/user_presence_showonlineindicator_false_countasonlineuser_false.png) |

| Show online indicator ✅<br/>Count as online user ✅                                                | Show online indicator ❌<br/>Count as online user ✅                                                 |
| --------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| ![](@chat-sdk/android/v6/_assets/user_presence_showonlineindicator_true_countasonlineuser_true.png) | ![](@chat-sdk/android/v6/_assets/user_presence_showonlineindicator_false_countasonlineuser_true.png) |


---

This page was last updated at 2026-04-17T17:33:30.573Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/android/v6/compose/general-customization/user-presence/](https://getstream.io/chat/docs/sdk/android/v6/compose/general-customization/user-presence/).