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

JavaScript for Acrobat Reader Mobile API Reference (iOS)

File: App.js

  1. /*************************************************************************
  2. *
  3. * ADOBE CONFIDENTIAL
  4. * ___________________
  5. *
  6. * Copyright 2014 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. {
  27. };
  28. App.prototype =
  29. {
  30. /**
  31. * The language code of the running application.
  32. *
  33. * @property language
  34. * @type {String}
  35. * @readOnly
  36. */
  37. get language()
  38. {
  39. return ARJavaScriptApp.language;
  40. },
  41. /**
  42. * The platform the script is currently executing on.
  43. *
  44. * @property platform
  45. * @type {String}
  46. * @readOnly
  47. */
  48. get platform()
  49. {
  50. return ARJavaScriptApp.platform;
  51. }
  52. };
  53. /**
  54. * Displays an alert dialog box.
  55. *
  56. * @method alert
  57. * @param cMsg {String} A string containing the message to be displayed.
  58. * @return {Number} The type of button that was tapped by the user: 1-OK, 2-Cancel, 3-No, 4-Yes.
  59. */
  60. App.prototype.alert = function(cMsg, nIcon)
  61. {
  62. return ARJavaScriptApp.alert(cMsg + "");
  63. };
  64. /**
  65. * [Unimplemented]
  66. *
  67. * @private
  68. * @method beep
  69. * @param nType {Number}
  70. */
  71. App.prototype.beep = function(nType)
  72. {
  73. // do nothing
  74. };
  75. // register undefined properties on the App.prototype object
  76. registerUndefinedProperty(App.prototype, 'app', 'activeDocs');
  77. registerUndefinedProperty(App.prototype, 'app', 'calculate');
  78. registerUndefinedProperty(App.prototype, 'app', 'constants');
  79. registerUndefinedProperty(App.prototype, 'app', 'focusRect');
  80. registerUndefinedProperty(App.prototype, 'app', 'formsVersion');
  81. registerUndefinedProperty(App.prototype, 'app', 'fromPDFConverters');
  82. registerUndefinedProperty(App.prototype, 'app', 'fs');
  83. registerUndefinedProperty(App.prototype, 'app', 'fullscreen');
  84. registerUndefinedProperty(App.prototype, 'app', 'media');
  85. registerUndefinedProperty(App.prototype, 'app', 'monitors');
  86. registerUndefinedProperty(App.prototype, 'app', 'numPlugIns');
  87. registerUndefinedProperty(App.prototype, 'app', 'openInPlace');
  88. registerUndefinedProperty(App.prototype, 'app', 'plugIns');
  89. registerUndefinedProperty(App.prototype, 'app', 'printColorProfiles');
  90. registerUndefinedProperty(App.prototype, 'app', 'printerNames');
  91. registerUndefinedProperty(App.prototype, 'app', 'runtimeHighlight');
  92. registerUndefinedProperty(App.prototype, 'app', 'runtimeHighlightColor');
  93. registerUndefinedProperty(App.prototype, 'app', 'thermometer');
  94. registerUndefinedProperty(App.prototype, 'app', 'toolbar');
  95. registerUndefinedProperty(App.prototype, 'app', 'toolbarHorizontal');
  96. registerUndefinedProperty(App.prototype, 'app', 'toolbarVertical');
  97. registerUndefinedProperty(App.prototype, 'app', 'viewerType');
  98. registerUndefinedProperty(App.prototype, 'app', 'viewerVariation');
  99. registerUndefinedProperty(App.prototype, 'app', 'viewerVersion');
  100. // instantiate object
  101. 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.