setDocument

open fun setDocument(@NonNull serverUrl: String, @NonNull jwt: String)

Loads a new Instant document in this activity and replaces the existing one. This method may only be called if onSaveInstanceState has not been called or an exception will be thrown, since after that call state loss could occur.

Parameters

serverUrl

Instant Server (PSPDFKit Document Engine) url.

jwt

JWT used to authenticate access to the document.