本文整理匯總了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;
}