---
schema_version: "1"
id: 8bdfb379064b05982f0110de4afa707ccb0d766826b50dadec0ca83136f4ef31
title: Hide Attachments
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-attachments.md
canonical_url: https://developer.salesforce.com/docs/service/messaging-in-app/guide/android-hide-attachments.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2029f4ec48af3d536afd71ae6d1d03928300cb4e55e31572646b4fe6ac9fe39a
products:
  - Enhanced In-App Chat
  - Service Cloud Developer Content
---
# Hide Attachments

Use the [`AttachmentConfiguration` parameter in the `UIConfiguration` class](https://salesforce-async-messaging.github.io/messaging-in-app-android/sdk/core/com.salesforce.android.smi.core.data.domain.remoteConfiguration/-attachment-configuration/index.html) to hide the attachment option from the input options.

This article applies to the following implementations:

| UI SDK | Core SDK |
| :----: | :------: |
|   ✅   |          |

**important:** This feature requires version 1.7.0 or later of the Enhanced In-App Chat SDK.


```
// Hide the attachment option from the input options. Setting the endUserToAgent property to true hides the attachment option from the end user.
@Parcelize
data class AttachmentConfiguration(
    val endUserToAgent: Boolean = true
) : Parcelable
```
