【问题标题】:Adobe AIR Native extension: have multiple context in same Native ExtensionAdobe AIR Native 扩展:在同一个 Native Extension 中有多个上下文
【发布时间】:2015-12-13 08:50:19
【问题描述】:

我正在为 Adob​​e AIR 开发适用于 iOS 和 Android 的原生扩展。 我想生成一个文件 .ane,但我希望我可以使用多个上下文调用我的本机扩展。

Android很简单,只需要在public FREContext CreateContext(String pExtensionName)'函数中测试context参数,并返回context中的一个实例作为参数。

但是 iOS 怎么做呢?

【问题讨论】:

    标签: ios air adobe air-native-extension ane


    【解决方案1】:

    我终于找到了方法,你必须在函数“ContextInitializer”中测试包含上下文名称的变量 ctxType。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-20
      • 2019-09-29
      • 1970-01-01
      • 2016-10-07
      • 1970-01-01
      • 2016-12-07
      相关资源
      最近更新 更多