Beispiel #1
0
        public static void GetAvailablePromos(Promotion.GetPromotionArrayFinished callback)
        {
            if (javaUnityApplicasaPromotionManager == null)
            {
                javaUnityApplicasaPromotionManager = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaPromotionManager");
            }
            AndroidJavaObject promotionArrayJava = javaUnityApplicasaPromotionManager.CallStatic <AndroidJavaObject>("ApplicasaPromoGetAvailablePromosWithBlock");

            Promotion.PromotionArray promotionArray = new Promotion.PromotionArray();
            promotionArray.Array = promotionArrayJava.GetRawObject();

            AndroidJavaObject[] convertedArray = AndroidJNIHelper.ConvertFromJNIArray <AndroidJavaObject[]>(promotionArray.Array);


            promotionArray.ArraySize = convertedArray.Length;
            convertedArray           = null;

            callback(true, new Error(), promotionArray);
        }
Beispiel #2
0
 public static void GetAvailablePromos(Promotion.GetPromotionArrayFinished callback)
 {
     ApplicasaPromoGetAvailablePromosWithBlock(callback);
 }
Beispiel #3
0
 private static extern void ApplicasaPromoGetAvailablePromosWithBlock(Promotion.GetPromotionArrayFinished callback);
Beispiel #4
0
 public static void GetAvailablePromos(Promotion.GetPromotionArrayFinished callback)
 {
     callback(true, new Error(), new Promotion.PromotionArray());
 }