Beispiel #1
0
        /*
         * // TODO: - (void) showOnView:(UIView *)view Block:(PromotionResultBlock)block - Can't work with UIViews yet;
         */
#else
        public void Show(PromotionResultDelegate callback)
        {
            PromotionResultInfo tempPromotionResultInfo = new PromotionResultInfo();

            tempPromotionResultInfo.type         = PromotionResultDataType.String;
            tempPromotionResultInfo.stringResult = "";
            callback(PromotionAction.Pressed, Applicasa.PromotionResult.Nothing, tempPromotionResultInfo);
        }
Beispiel #2
0
        /*
         * // TODO: - (void) showOnView:(UIView *)view Block:(PromotionResultBlock)block - Can't work with UIViews yet;
         */
#elif UNITY_ANDROID && !UNITY_EDITOR
        public void Show(PromotionResultDelegate callback)
        {
            javaUnityApplicasaPromotion = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaPromotion");
            int uniqueActionID = Core.currentCallbackID;

            Core.currentCallbackID++;
            setPromotionResultDelegate(callback, uniqueActionID);
            javaUnityApplicasaPromotion.CallStatic("ApplicasaPromotionShowWithBlock", innerPromotionJavaObject, uniqueActionID);
        }
 /*
 // TODO: - (void) showOnView:(UIView *)view Block:(PromotionResultBlock)block - Can't work with UIViews yet;
 */
 public void Show(PromotionResultDelegate callback)
 {
     PromotionResultInfo tempPromotionResultInfo = new PromotionResultInfo();
        tempPromotionResultInfo.type=PromotionResultDataType.String;
        tempPromotionResultInfo.stringResult="";
        callback(PromotionAction.Pressed,Applicasa.PromotionResult.Nothing,tempPromotionResultInfo);
 }
 private static extern void setPromotionResultDelegate(PromotionResultDelegate callback, int uniqueActionID);
 /*
 // TODO: - (void) showOnView:(UIView *)view Block:(PromotionResultBlock)block - Can't work with UIViews yet;
 */
 public void Show(PromotionResultDelegate callback)
 {
     javaUnityApplicasaPromotion = new AndroidJavaClass("com.applicasaunity.Unity.ApplicasaPromotion");
     int uniqueActionID=Core.currentCallbackID;
     Core.currentCallbackID++;
     setPromotionResultDelegate(callback, uniqueActionID);
     javaUnityApplicasaPromotion.CallStatic("ApplicasaPromotionShowWithBlock", innerPromotionJavaObject, uniqueActionID);
 }
 public void Show(PromotionResultDelegate callback)
 {
     ApplicasaPromotionShowWithBlock(innerPromotion, callback);
 }
 private static extern void ApplicasaPromotionShowWithBlock(System.IntPtr promotion, PromotionResultDelegate callback);
Beispiel #8
0
 private static extern void setPromotionResultDelegate(PromotionResultDelegate callback, int uniqueActionID);
Beispiel #9
0
 public void Show(PromotionResultDelegate callback)
 {
     ApplicasaPromotionShowWithBlock(innerPromotion, callback);
 }
Beispiel #10
0
 private static extern void ApplicasaPromotionShowWithBlock(System.IntPtr promotion, PromotionResultDelegate callback);