create

open fun create(@NonNull context: Context, @NonNull serverUrl: URL): InstantClient
open fun create(@NonNull context: Context, @NonNull serverUrl: HttpUrl): InstantClient
open fun create(@NonNull context: Context, @NonNull serverUrl: String): InstantClient

Creates Instant Server (PSPDFKit Document Engine) client that is going to connect to server at serverUrl.

Parameters

context

The context to use

serverUrl

Instant Server (PSPDFKit Document Engine) url.

Throws

when creating the client fails. This can happen due to permission errors or disk corruption