InstantClient

The entry point to PSPDFKit Instant, representing a client’s connection to the Instant Server (PSPDFKit Document Engine).

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun create(@NonNull context: Context, @NonNull serverUrl: String): InstantClient
open fun create(@NonNull context: Context, @NonNull serverUrl: URL): InstantClient
open fun create(@NonNull context: Context, @NonNull serverUrl: HttpUrl): InstantClient
Creates Instant Server (PSPDFKit Document Engine) client that is going to connect to server at serverUrl.
Link copied to clipboard
Returns the document descriptor matching the data encoded in the given JWT.
Link copied to clipboard
Returns document descriptors for locally cached documents.
Link copied to clipboard
Downloads and opens document from Instant Server (PSPDFKit Document Engine) synchronously.
Link copied to clipboard
Downloads and opens document from Instant Server (PSPDFKit Document Engine), asynchronously.
Link copied to clipboard
Removes local storage for this client.
Link copied to clipboard
Invalidates all layers of the document with the given ID and removes its local storage.