Alberto Iglesias Well-Known Member Licensed User Longtime User Jul 27, 2017 #1 Anyone knows if is possible create callbacks in Block, like java and objectioveC does? In just one block I can send the callback funcion and receive when arrive Example in Java: B4X: MyRequestFunction("http://....",new ICallbacks() { @Override public void onResponse(JSONObject response) { //Success !!! } @Override public void onError(VolleyError response) { //Error !!! } }); thanks in advance!
Anyone knows if is possible create callbacks in Block, like java and objectioveC does? In just one block I can send the callback funcion and receive when arrive Example in Java: B4X: MyRequestFunction("http://....",new ICallbacks() { @Override public void onResponse(JSONObject response) { //Success !!! } @Override public void onError(VolleyError response) { //Error !!! } }); thanks in advance!
DonManfred Expert Licensed User Longtime User Jul 27, 2017 #2 https://www.b4x.com/android/forum/threads/b4x-okhttputils2-with-wait-for.79345/#content ?? Upvote 0
Alberto Iglesias Well-Known Member Licensed User Longtime User Jul 27, 2017 #3 ohhhhhh. I using a version 6.0.0.... I think need to buy a new one for this, right? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 27, 2017 #4 Wait For was added in v7.0. Note that it is much more powerful than Java callbacks. Upvote 0
Alberto Iglesias Well-Known Member Licensed User Longtime User Jul 27, 2017 #5 OK. My plan is renew my licenses (B4a and B4i) at starting this next month. Upvote 0