简体   繁体   English

是否可以使用适用于iOS的Epson ePOS SDK插件为ionic 3创建cordova?

[英]Is it possible to plugin create cordova for ionic 3 with Epson ePOS SDK for iOS?

I never created a Cordova plugin, so I would like just know if it's possible to create Cordova plugin for ionic 3 (only ios) with this https://download.epson-biz.com/modules/pos/index.php?page=soft&scat=58 . 我从未创建过Cordova插件,所以我只想知道是否可以通过https://download.epson-biz.com/modules/pos/index.php?page为ionic 3(仅限ios)创建Cordova插件。 = soft&scat = 58 And can you tell me please what file I need to use for creating a Cordova plugin (only for printing some text). 您能告诉我我需要什么文件来创建Cordova插件(仅用于打印一些文本)。 I will put it in git after creating because I need it and show it to some people who need it. 创建后,我将其放入git中,因为我需要它并向需要它的人展示。 I just understand the JavaScript part of it but not objective-c... Thank you. 我只了解其中的JavaScript部分,但不了解目标语言...谢谢。

Really nice idea. 真是个好主意。 You can start by using below link. 您可以使用以下链接开始。 Good luck! 祝好运!

iOS Plugin Development Guide iOS插件开发指南

This section provides details for how to implement native plugin code on the iOS platform. 本节提供有关如何在iOS平台上实现本机插件代码的详细信息。 Before reading this, see [Plugin Development Guide][plugin-dev] for an overview of the plugin's structure and its common JavaScript interface. 在阅读本文之前,请参阅[插件开发指南] [plugin-dev],以获取插件结构及其通用JavaScript接口的概述。 This section continues to demonstrate the sample echo plugin that communicates from the Cordova webview to the native platform and back. 本节将继续演示示例回声插件,该插件将从Cordova Webview到本机平台进行通信。

An iOS plugin is implemented as an Objective-C class that extends the CDVPlugin class. iOS插件被实现为对CDVPlugin类进行扩展的Objective-C类。 For JavaScript's exec method's service parameter to map to an Objective-C class, each plugin class must be registered as a tag in the named application directory's config.xml file. 为了使JavaScript的exec方法的service参数映射到Objective-C类,每个插件类都必须在标记的应用程序目录的config.xml文件中作为标记注册。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM