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) {
|
loadingTask.promise.then(function (newDoc) {
|
||||||
|
channel.onLoaded();
|
||||||
pdfDoc = newDoc;
|
pdfDoc = newDoc;
|
||||||
channel.setNumPages(pdfDoc.numPages);
|
channel.setNumPages(pdfDoc.numPages);
|
||||||
pdfDoc.getMetadata().then(function (data) {
|
pdfDoc.getMetadata().then(function (data) {
|
||||||
|
@ -202,6 +202,10 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
|
|||||||
showPasswordPrompt();
|
showPasswordPrompt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JavascriptInterface
|
||||||
|
public void onLoaded() {
|
||||||
|
}
|
||||||
|
|
||||||
@JavascriptInterface
|
@JavascriptInterface
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return mEncryptedDocumentPassword != null ? mEncryptedDocumentPassword : "";
|
return mEncryptedDocumentPassword != null ? mEncryptedDocumentPassword : "";
|
||||||
|
Loading…
Reference in New Issue
Block a user