StarPrinter Library implementation question
#5 opened on Oct 31, 2017
Repository metrics
- Stars
- (32 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
For the specific Star printer that I'm using, it takes in bitmap (UIImage for iOS) instead of text data. StarIO_Extension.framework has the implementation for these raster printers, so I'm trying to add it to this plugin so I can . I dropped the .framework file in the platforms/ios folder and was able to build the project, but when I run the command "TNS_TYPESCRIPT_DECLARATIONS_PATH="$(pwd)/typings" tns build ios" to output all the Clang modules, I'm not seeing any of the implementations for any of the framework functions.
I noticed for your plugin, there is a StarPrinter.d.ts file which has all the declarations from the StarPrinter header files, but I don't have that for mine - do I have to write that myself for the StarIO_Extension framework?
I'm pretty new to developing custom {N} plugins (especially without CocoaPods) so any guidance would be appreciated.
Another possibility I was looking into to get around having to import this framework would be converting the UIImage directly to a byte stream that I can send to the printer, similar to the .appendData and .appendBytes functions you have in your star-printer.ios.ts. I tried a few things for that but with no luck, so I'm not sure which would be the easier route to take.