add on (doc) loaded callback
This commit is contained in:
parent
3ebdfd0a11
commit
68fc48d3a9
@ -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 : "";
|
||||
|
Loading…
Reference in New Issue
Block a user