Package-level declarations
Functions
Drains stream and opens what comes out. The stream is closed either way.
Opens a content uri, which is what the system file picker (ACTION_OPEN_DOCUMENT) and share intents actually hand you. A content:// Uri has no file path, so this reads it through Context.getContentResolver.
Opens data you already hold, e.g. from a network call or the pasteboard.
Opens an NSURL. A file URL is read straight off disk; anything else is left to Foundation, so a file:// bookmark from UIDocumentPickerViewController works, and a remote URL blocks the calling thread. For remote documents prefer the kitepdf-net artifact, which fetches asynchronously.
Drains stream and opens what comes out. The stream is closed either way.
Reads the file at path and opens it as whichever format it is.
Reads the file at path and opens it as whichever format it is.
Reads the file at path and opens it as whichever format it is.
Reads the file at path and opens it as whichever format it is.