---
title: "Instant usage on Android | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/android/pspdfkit-instant/usage/"
md_url: "https://www.nutrient.io/guides/android/pspdfkit-instant/usage.md"
last_updated: "2026-09-24T13:04:29.383Z"
description: "This guide will give you an overview of the Instant API and how to use it for displaying documents from the server. for Nutrient Android SDK."
---

# Instant usage on Android

This guide will give you an overview of the Instant API and how to use it for displaying documents from the server.

## API overview

[`InstantClient`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.instant.client/-instant-client/index.html) represents a connection to Document Engine. An app typically creates one client, but it can create several to connect to multiple Document Engine instances.

Instant downloads and stores PDFs at your app’s request. A `documentId` identifies each PDF. Each PDF can have multiple named layers, each containing a separate set of annotations over the base document. For details, refer to the [Instant layers](https://www.nutrient.io/guides/android/pspdfkit-instant/instant-layers.md) guide.

An `InstantDocumentDescriptor` represents a layer in your app. To create a descriptor, follow these steps:

1. Obtain a JSON Web Token (JWT) for the layer from your server.

2. Call [`getInstantDocumentDescriptorForJwt()`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.instant.client/-instant-client/get-instant-document-descriptor-for-jwt.html) on your [`InstantClient`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.instant.client/-instant-client/index.html).

Use the descriptor to download the PDF and the layer’s annotations. After downloading, create an [`InstantPdfDocument`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.instant.document/-instant-pdf-document/index.html), set the document on an [`InstantPdfFragment`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.instant.ui/-instant-pdf-fragment/index.html), and display the fragment in your app.

Alternatively, provide the Document Engine URL and JWT to [`InstantPdfActivity`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.instant.ui/-instant-pdf-activity/index.html). The activity downloads and opens the document. Instant synchronizes annotation changes across users viewing the same document.

The Instant UI classes extend the standard viewer classes:

- [`InstantPdfFragment`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.instant.ui/-instant-pdf-fragment/index.html) extends [`PdfFragment`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.ui/-pdf-fragment/index.html).

- [`InstantPdfActivity`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.instant.ui/-instant-pdf-activity/index.html) extends [`PdfActivity`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.ui/-pdf-activity/index.html).

Both Instant UI classes display only [`InstantPdfDocument`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.instant.document/-instant-pdf-document/index.html) instances. Passing a standard [`PdfDocument`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.document/-pdf-document/index.html) throws an exception. Likewise, display Instant documents only in activities or fragments that extend the corresponding Instant UI class.
---

## Related pages

- [Adding Instant comments to PDFs on Android](/guides/android/comments/introduction-to-instant-comments.md)
- [PDF collaboration library for Android](/guides/android/instant-synchronization.md)
- [Authenticate your Android app with JWT](/guides/android/instant-synchronization/authentication.md)
- [Frequently asked questions](/guides/android/instant-synchronization/faq.md)
- [Integrating real-time collaboration into your Android application](/guides/android/pspdfkit-instant/getting-started.md)
- [Instant sync and document state on Android](/guides/android/pspdfkit-instant/instant-document-state.md)
- [Create and manage PDF annotation layers on Android](/guides/android/pspdfkit-instant/instant-layers.md)
- [Effortless offline PDF annotation and sync](/guides/android/pspdfkit-instant/offline-support.md)
- [Efficient PDF annotation syncing on Android](/guides/android/pspdfkit-instant/syncing.md)

