Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.

TOPIC:

Document Help 4 years 11 months ago #14745

  • robertlforsyth
  • robertlforsyth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
Using the Cordova code, is there docs or KB on how to manage/disable menu items or set the initial view of the player? Also, on the Android version, there is a popup dialog when loading a PDF across http, but NOT one for iOS. Is there a call for showing a 'loading' dialog/message for iOS?

Thanks in Advance!

- Robert

Please Log in or Create an account to join the conversation.

Document Help 4 years 10 months ago #14747

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi
We've just fix an issue about hiding menu items, please pull from GitHub last commit so it should works well or shift this line from viewDidLoad to viewWillAppear method in RDLoPDFViewController class.
[self createToolbarItems];
For hiding menu items in Cordova you should use setToolbarEnabled in index.js
(Add these lines before RadaeePDFPlugin.open or it will not work)
RadaeePDFPlugin.setToolbarEnabled(
        {
            enabled: false
        },
        function (message) {
            console.log("Success: " + message);
        },
        function (err) {
            console.log("Failure: " + err);
        });
Right now there's no call for showing a loading dialog for iOS but it will be added

Please Log in or Create an account to join the conversation.

Document Help 4 years 10 months ago #14749

  • robertlforsyth
  • robertlforsyth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
Thanks the new build worked to hide the toolbar. Are there any docs for how to customize the toolbar?

- Robert

Please Log in or Create an account to join the conversation.

Document Help 4 years 10 months ago #14750

  • robertlforsyth
  • robertlforsyth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
Another question. I hid the toolbar, but when I set
RadaeePDFPlugin.setToolbarEnabled(
{
enabled: true
},

the toolbar does not appear. Any thoughts? Also, is there a way to close the viewer by using the DoubleTap callback?

Please Log in or Create an account to join the conversation.

Document Help 4 years 10 months ago #14752

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi Robert,
By using setToolbarEnabled you can't hide and show toolbar programmatically: you're going to set a parameter checked before PDF opening.
You could check some RadaeePDF Cordova's methods here that also include toolbar's customization.

Please Log in or Create an account to join the conversation.

Document Help 4 years 10 months ago #14753

  • robertlforsyth
  • robertlforsyth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
I should have been more clear. When I added your call before I opened the doc, the toolbar disappeared. When I removed that call or changed it to enabled:true, the toolbar did not come back. I need the toolbar for the back button (To close the doc), but its not there anymore.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum