Skip to content
Snippets Groups Projects
Commit 68fc48d3 authored by Pratyush's avatar Pratyush Committed by Daniel Micay
Browse files

add on (doc) loaded callback

parent 3ebdfd0a
No related branches found
No related tags found
No related merge requests found
......@@ -210,6 +210,7 @@ function loadDocument() {
}
loadingTask.promise.then(function (newDoc) {
channel.onLoaded();
pdfDoc = newDoc;
channel.setNumPages(pdfDoc.numPages);
pdfDoc.getMetadata().then(function (data) {
......
......@@ -202,6 +202,10 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
showPasswordPrompt();
}
@JavascriptInterface
public void onLoaded() {
}
@JavascriptInterface
public String getPassword() {
return mEncryptedDocumentPassword != null ? mEncryptedDocumentPassword : "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment