isLocalFileUri

fun isLocalFileUri(context: Context, uri: Uri): Boolean

Checks whether or not PSPDFKit can extract a local filesystem path from the uri. If this method returns true PSPDFKit can directly access the document on the filesystem, and can thus achieve faster loading speeds. If the method returns false, use .isOpenableUri to check whether PSPDFKit can still use the uri for document access.

Return

true if PSPDFKit can access the file directly, or false if it needs to use a content resolver for access.

Parameters

context

Context for analyzing the uri.

uri

Uri pointing to a PDF document.