---
schema_version: "1"
id: c2c867fcac99f34029ddeee07fd6e822a27bbe4ae2c9d736172bf8c9488e30bb
title: Hide End Chat
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/messaging-in-app/guides/android-hide-end-chat.md
canonical_url: https://developer.salesforce.com/docs/service/messaging-in-app/guide/android-hide-end-chat.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0fe2544cd6b1a5fbb574ad05a56e213b5fa87ae4a9c04e69260afa15c5250d0a
products:
  - Enhanced In-App Chat
  - Service Cloud Developer Content
---
# Hide End Chat

Set the `allowEndSession` parameter in the `UIConfiguration` object to `true` to hide the End Chat button from the messaging conversation menu.

**important:** This feature requires version 1.9.0 or later of the Enhanced In-App Chat SDK.


This article applies to the following implementations:

| UI SDK | Core SDK |
| :----: | :------: |
|   ✅   |          |


```
/**
 * Represents conversation options configuration information.
 *
 * @property allowEndSession
 */
@Parcelize
data class ConversationOptionsConfiguration(
    val allowEndSession: Boolean = false // set this to true to show the end chat button
) : Parcelable
```
