Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24224

Hyperlooop: Android - 3rd Party Android Library not correctly mapped

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android, Hyperloop
    • Environment:

      MacOS 10.12.1 (16B2555)
      Appcelerator Studio 4.8.0.201611121409

      Description

      Trying to print to a bluetooth printer with the Zebra SDK from Android via Hyperloop, but the mappings seem incomplete.

      I am able to connect to the printer but when I try to get and instance of ZebraPrinter and then print an image with that instance I am told the method does not exist even though it should be(its inherited, but is clearly documented by Zebra). This also seems to be true of other inherited methods as well, I have tried a few others to see what works and what doesn't.

      the documentation:
      http://link-os.github.io/PC/v2.9.2275/documentation/com/zebra/sdk/printer/ZebraPrinter.html

      var ZComm = require('com.zebra.sdk.comm.*'),
      ZPrinter = require('com.zebra.sdk.printer.*'),
      ZDevice = require('com.zebra.sdk.device.*');
       
      var theBtMacAddress = "XX:XX:XX:XX:XX:XX";
       
      function print(e) {
          var thePrinterConn = new ZComm.BluetoothConnection(theBtMacAddress);
          thePrinterConn.open();
          var printer = ZPrinter.ZebraPrinterFactory.getInstance(thePrinterConn);
          printer.printImage('/testPage.png', 0, 0);
          thePrinterConn.close();
      }
       
       
      $.index.open();
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              cliff_stander Mike Stancliffe
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10345
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code