Enterprise Tookit for Acrobat Products > Mobile > (Android | iOS)

JavaScript for Acrobat Reader Mobile API Reference (Android)

File: App.js

  1. /*************************************************************************
  2. *
  3. * ADOBE CONFIDENTIAL
  4. * ___________________
  5. *
  6. * Copyright 2012 Adobe Systems Incorporated
  7. * All Rights Reserved.
  8. *
  9. * NOTICE: All information contained herein is, and remains
  10. * the property of Adobe Systems Incorporated and its suppliers,
  11. * if any. The intellectual and technical concepts contained
  12. * herein are proprietary to Adobe Systems Incorporated and its
  13. * suppliers and are protected by trade secret or copyright law.
  14. * Dissemination of this information or reproduction of this material
  15. * is strictly forbidden unless prior written permission is obtained
  16. * from Adobe Systems Incorporated.
  17. *
  18. **************************************************************************/
  19. /**
  20. * A static JavaScript object that represents the Acrobat application. It defines a number
  21. * of Acrobat-specific functions plus a variety of utility routines and convenience functions.
  22. *
  23. * @class App
  24. */
  25. function App() { };
  26. App.prototype =
  27. {
  28. /**
  29. * The platform the script is currently executing on.
  30. *
  31. * @property platform
  32. * @type {String}
  33. * @readOnly
  34. */
  35. get platform()
  36. {
  37. return window._app.getPlatform();
  38. },
  39. /**
  40. * The language code of the running application.
  41. *
  42. * @property language
  43. * @type {String}
  44. * @readOnly
  45. */
  46. get language()
  47. {
  48. return window._app.getLanguage();
  49. }
  50. };
  51. /**
  52. * Displays an alert dialog box.
  53. *
  54. * @method alert
  55. * @param cMsg {String} A string containing the message to be displayed.
  56. */
  57. App.prototype.alert = function(cMsg, nIcon)
  58. {
  59. return window._app.alert(cMsg + "", nIcon);
  60. };
  61. /**
  62. * [Unimplemented]
  63. *
  64. * @private
  65. * @method beep
  66. * @param nType {Number}
  67. */
  68. App.prototype.beep = function(nType)
  69. {
  70. return window._app.beep(nType);
  71. };
  72. //register undefined properties on the App.prototype object
  73. registerUndefinedProperty(App.prototype, 'app', 'activeDocs');
  74. registerUndefinedProperty(App.prototype, 'app', 'calculate');
  75. registerUndefinedProperty(App.prototype, 'app', 'constants');
  76. registerUndefinedProperty(App.prototype, 'app', 'focusRect');
  77. registerUndefinedProperty(App.prototype, 'app', 'formsVersion');
  78. registerUndefinedProperty(App.prototype, 'app', 'fromPDFConverters');
  79. registerUndefinedProperty(App.prototype, 'app', 'fs');
  80. registerUndefinedProperty(App.prototype, 'app', 'fullscreen');
  81. registerUndefinedProperty(App.prototype, 'app', 'media');
  82. registerUndefinedProperty(App.prototype, 'app', 'monitors');
  83. registerUndefinedProperty(App.prototype, 'app', 'numPlugIns');
  84. registerUndefinedProperty(App.prototype, 'app', 'openInPlace');
  85. registerUndefinedProperty(App.prototype, 'app', 'plugIns');
  86. registerUndefinedProperty(App.prototype, 'app', 'printColorProfiles');
  87. registerUndefinedProperty(App.prototype, 'app', 'printerNames');
  88. registerUndefinedProperty(App.prototype, 'app', 'runtimeHighlight');
  89. registerUndefinedProperty(App.prototype, 'app', 'runtimeHighlightColor');
  90. registerUndefinedProperty(App.prototype, 'app', 'thermometer');
  91. registerUndefinedProperty(App.prototype, 'app', 'toolbar');
  92. registerUndefinedProperty(App.prototype, 'app', 'toolbarHorizontal');
  93. registerUndefinedProperty(App.prototype, 'app', 'toolbarVertical');
  94. registerUndefinedProperty(App.prototype, 'app', 'viewerType');
  95. registerUndefinedProperty(App.prototype, 'app', 'viewerVariation');
  96. registerUndefinedProperty(App.prototype, 'app', 'viewerVersion');
  97. // instantiate object
  98. var app = new App();

© 2013-15 Adobe Systems, Inc. All rights reserved. Use of these APIs including, the download of software, submission of comments, ideas, feature requests and techniques, and Adobe's rights to use such submitted materials, is governed by the Adobe.com Terms of Use and the Adobe Privacy Policy.