本文整理汇总了Java中org.haxe.lime.HaxeObject类的典型用法代码示例。如果您正苦于以下问题:Java HaxeObject类的具体用法?Java HaxeObject怎么用?Java HaxeObject使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HaxeObject类属于org.haxe.lime包,在下文中一共展示了HaxeObject类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.haxe.lime.HaxeObject; //导入依赖的package包/类
public static void init(final HaxeObject callback, OuyaFacade ouyaFacade, String APPLICATION_KEY_64 )
{
mOuyaFacade = ouyaFacade;
mCallback = callback;
byte[] APPLICATION_KEY = Base64.decode( APPLICATION_KEY_64, Base64.NO_WRAP );
// Create a PublicKey object from the key data downloaded from the developer portal.
try {
X509EncodedKeySpec keySpec = new X509EncodedKeySpec(APPLICATION_KEY);
KeyFactory keyFactory = KeyFactory.getInstance("RSA");
mPublicKey = keyFactory.generatePublic(keySpec);
} catch (Exception e) {
Log.e("IAP", "Unable to create encryption key", e);
}
}
示例2: filesIntent
import org.haxe.lime.HaxeObject; //导入依赖的package包/类
public static void filesIntent(HaxeObject cb, int tp){
callback = cb;
typeActivity = tp;
// getInstance().startActivity(new Intent(getInstance().getContext(),IntentManagerZ.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
getInstance().startActivityForResult(new Intent(getInstance().getContext(),IntentManagerZ.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK),1);
}
示例3: setupIapCallback
import org.haxe.lime.HaxeObject; //导入依赖的package包/类
static public void setupIapCallback(final HaxeObject hxObj)
{
iapCallback = hxObj;
}