public static void SetLiKitPromotionDelegateAndCheckPromotions(Promotion.PromotionsAvailable eventCallback, bool checkPromotions) { if (javaUnityApplicasaPromotionManager == null) { javaUnityApplicasaPromotionManager = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaPromotionManager"); } int uniqueActionID = Core.currentCallbackID; Core.currentCallbackID++; setPromotionsAvailable(eventCallback, uniqueActionID); javaUnityApplicasaPromotionManager.CallStatic("ApplicasaPromoSetLiKitPromotionDelegateAndCheck", uniqueActionID, checkPromotions); }
private static extern void setPromotionsAvailable(Promotion.PromotionsAvailable callback, int uniqueActionID);
private static extern void ApplicasaPromoSetLiKitPromotionDelegate(Promotion.PromotionsAvailable eventCallback);
public static void SetLiKitPromotionDelegateAndCheckPromotions(Promotion.PromotionsAvailable eventCallback, bool checkPromotions) { eventCallback(new Promotion.PromotionArray()); }
public static void SetLiKitPromotionDelegateAndCheckPromotions(Promotion.PromotionsAvailable eventCallback, bool checkPromotions) { ApplicasaPromoSetLiKitPromotionDelegateAndCheck(eventCallback, checkPromotions); }
public static void SetLiKitPromotionDelegate(Promotion.PromotionsAvailable eventCallback) { eventCallback(new Promotion.PromotionArray()); }
private static extern void ApplicasaPromoSetLiKitPromotionDelegateAndCheck(Promotion.PromotionsAvailable eventCallback, bool checkPromotions);
public static void SetLiKitPromotionDelegate(Promotion.PromotionsAvailable eventCallback) { ApplicasaPromoSetLiKitPromotionDelegate(eventCallback); }