1
0

native.js 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. var __native = {
  2. /** @type {function():boolean} */
  3. isDebug: function() {},
  4. /** @type {function()} */
  5. logout: function() {},
  6. /** @type {function(number)} */
  7. readSmsPermission: function(callbackId) {},
  8. /** @type {function():string} */
  9. getSms: function() {},
  10. /** @type {function():string} */
  11. getStatic: function() {},
  12. /** @type {function(string)} */
  13. setCurrentChannel: function(chanId) {},
  14. /** @type {function(string, boolean, boolean)} */
  15. setTitle: function(title, favEnabled, isFavorite) {},
  16. /** @type {function():(string|null)} */
  17. getPreviousChannel: function() {},
  18. /** @type {function(number, string, number)} */
  19. TCPConnect: function(sockId, address, port) {},
  20. /** @type {function(number, string)} */
  21. TCPWrite: function(sockId, msg) {},
  22. /** @type {function(number)} */
  23. TCPClose: function(sockId) {},
  24. /** @type {function(string, string, number, string, (string|null), number)} */
  25. sendHttpRequest: function(method, url, timeo, expectedResponseType, postPayload, callbackId) {}
  26. };
  27. /** @type {boolean} */
  28. var IS_LOCAL;