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

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

问题描述

flex mobile 是否支持可在所有支持的移动平台(iOS、Android、Blackberry playbook)上运行的应用内购买、推送通知等.

Does flex mobile supports In-App purchases, push notification etc that can run on all supported mobile platforms (iOS, Android, Blackberry playbook).

谢谢

推荐答案

目前所有"原生移动功能通过 AIR 原生扩展支持".

Currently "all" native mobile features are "supported" via AIR native extensions.

您可以在此处阅读有关 AIR 原生扩展的信息

这是一个相当新的功能,但重点是,您可以在本机代码 SDK 和您的 AIR 应用程序之间创建桥梁.这意味着,您的应用程序将能够调用原生 SDK,也可以接收来自原生 SDK 的事件.

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.

基本上,如果您想在您的 Flex/AIR 应用程序中呈现本机功能,您可以创建本机代码来实现您想要的功能(在大多数情况下只需要很少的编码),将其与 ActionScript 接口桥接,并将其打包为 .ane(空气本地扩展).此扩展的行为类似于 actionscript 库,如果您感兴趣,您可以将其重用于所有 Flex 项目.

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)

结果是 - 你可以在你的 Flex 应用程序中呈现任何原生特性,只要你有它的原生扩展......

So the result is - you can present any native feature in your Flex app, as long as you have native extension for it...

这篇关于Flex mobile 支持原生移动功能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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