> For the complete documentation index, see [llms.txt](https://docs.zipy.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zipy.ai/zipy-for-mobile/android-setup/input-masking-and-custom-masking.md).

# Input Masking & Custom Masking

Zipy's Input Masking feature ensures that all input field data on the screen is automatically masked during session recordings. This powerful feature prevents sensitive information from being visible in the recordings, safeguarding user privacy and maintaining compliance with data security standards.

Key benefits:

* Masks sensitive information to prevent unauthorized viewing
* Automatically protects input fields like passwords and personal data
* Maintains compliance with data security standards
* Ensures user privacy in session recordings

The SDK provides two types of masking:

1. **Automatic Input Masking**: Built-in protection for standard input fields
2. **Custom UI Masking**: Using `zipy_block` for additional UI elements

### Using ZipyBlock

When screenshots are captured, the masked elements will appear as black rectangles in the screenshot while remaining fully visible to the user during normal app usage.

Add the tag to do custom masking in xml files\
android:tag="zipy\_block"

```xml
<Button
    android:id="@+id/btnGetSessionUrl"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Get Session URL"
    android:tag="zipy_block"
    android:layout_marginBottom="8dp" />
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.zipy.ai/zipy-for-mobile/android-setup/input-masking-and-custom-masking.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.
