isLocalFileUri

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

Checks whether or not Nutrient can extract a local filesystem path from the uri. If this method returns true Nutrient 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 Nutrient can still use the uri for document access.

Return

true if Nutrient 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.