IBM Worklight - 在BlackBerry中使用相机 [英] IBM Worklight - Using the camera in BlackBerry

查看:197
本文介绍了IBM Worklight - 在BlackBerry中使用相机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为BlackBerry开发一个图像扫描应用程序。



我正在使用IBM Worklight框架来执行操作。如果扫描正确的图像,应用程序会将用户转到成功页面。开发此应用程序。



我的问题是:如何在BlackBerry中打开相机进行扫描?



使用Worklight为iOS开发了相同的应用程序。在iOS中,我使用了这种JavaScript语法:

  WL.native.show(arg1,arg2,arg3); 

所以我想知道在BlackBerry的情况下打开相机/ 。

解决方案

为了更清楚,您不要使用 WL.NativePage.show ,以便在iOS设备。为此,您使用Apache Cordova提供的Camera API



WL.NativePage.show用于从WebView转换到本地页面。

然而,您可以使用它传递参数并在本机端执行任何操作,然后返回到WebView ...



WL.NativePage.show仅适用于iOS和Android。 / p>



无论如何,

在BlackBerry WebWorks应用程序(Worklight支持的BlackBerry应用程序类型)中,有几个选项: / p>



Worklight目前支持Cordova 2.3(在Worklight 5.0.6.x中)和Cordova 2.6(在Worklight 6.0中)。


I am developing an image-scanning application for BlackBerry. The application takes the user to a success page if the correct image is scanned and a failure page is shown on scanning an incorrect image.

I am using the IBM Worklight framework for developing this app.

My question is: How can I open camera for scanning in BlackBerry?

I have developed the same application for iOS using Worklight. In iOS I've used this JavaScript syntax:

WL.native.show(arg1, arg2, arg3);

So I want to know what will be the syntax for opening camera/native page in the case of BlackBerry.

解决方案

Just to make things clearer, you do not use WL.NativePage.show in order to use the camera in an iOS device. For that you use the Camera API provided by Apache Cordova.

WL.NativePage.show is meant to transition from a WebView to a native page.
You can, however, of course, use it to pass parameters and do whatever you want on the native side and then return to the WebView...

WL.NativePage.show is available only for iOS and Android.


Anyway,
In BlackBerry WebWorks apps (the type of BlackBerry apps supported in Worklight) you have several options:

Worklight currently supports Cordova 2.3 (in Worklight 5.0.6.x) and Cordova 2.6 (in Worklight 6.0).

这篇关于IBM Worklight - 在BlackBerry中使用相机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆