Flex手机支持原生移动功能? [英] Flex mobile supports native mobile features?

查看:172
本文介绍了Flex手机支持原生移动功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Flex移动版支持应用内购买,推送通知等,可以在所有支持的移动平台上运行(iOS,Android,黑莓Playbook)。
$ 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屋!

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