Flex手机支持原生移动功能? [英] Flex mobile supports native mobile features?
问题描述
$ b 谢谢当前所有的原生移动功能都是通过AIR来支持的。 本机扩展。
您可以阅读关于AIR本机扩展 here
这是一个相当新的特性,但重要的是,您可以在本地代码SDK和AIR之间创建桥梁应用。这意味着,您的应用程序将能够调用本地SDK,并从本机SDK接收事件。基本上,如果你想在你的Flex / AIR应用程序中展示本地特性,你可以创建本地代码来实现你想要的东西(在大多数情况下只需要很少的代码) ,使用ActionScript界面进行桥接,并将其打包为.ane(空中原生扩展)。这个扩展的行为就像是动作库,如果你感兴趣的话,你可以重新使用你所有的Flex项目。上面提到的链接也提供了一些例子 - 原生通知是其中之一。
由于它相当新功能,只有几个例子,但它不难编写自己的本地扩展为本地功能,你想 - 我自己做,它的工作...(这里是简单的本地扩展教程)
结果是 - 只要你有它的本地扩展,你就可以在你的Flex应用程序中呈现任何本地特性...
Does flex mobile supports In-App purchases, push notification etc that can run on all supported mobile platforms (iOS, Android, Blackberry playbook).
Thanks
Currently "all" native mobile features are "supported" via AIR native extensions.
You can read about AIR native extensions here
It is quite a new feature, but the point is, you can create bridge between native code SDK and your AIR application. It means, your application will be able to make calls to native SDK, and also receive events from native SDK.
Basically, if you want to present native feature in your Flex/AIR application, you create native code to achieve what you want (does require only little coding in most cases), bridge it with ActionScript interface, and package it as .ane (air native extension). This extension behaves like actionscript library you can then reuse for all your Flex projects if interested.
Link mentioned above also presents some examples - native notification is amongst them...
Since its fairly new feature, there are only few examples presented, but its not hard to code your own native extension for native feature you want - i did it myself and it worked... (here is simple native extension tutorial)
So the result is - you can present any native feature in your Flex app, as long as you have native extension for it...
这篇关于Flex手机支持原生移动功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!