Calling methods with no callback

0 votes
Hello

I just want to confirm something as I didn't find it in documentation (Android)

There are always 2 types of methods for every call. For example in user service, you can createUser which takes Callback as parameter OR createUser with no callback.

Does that mean that the "no callback" means it is a blocking method?

If yes then that means, I will have to call it  using async task?

If  I use the call without callback,  how do I identify the Success case vs Exception case?

 

I hope my question is clear. If there is a documentation about this then please let me know ( I can't seem to find javadoc on your website)

 

Thank you
asked Dec 6, 2014 in App42 Cloud API-BaaS by AndroidFolk (107 points)

1 Answer

0 votes
 
Best answer
Your understanding is correct. For using sync/blocking method you have to put this in separate thread/async task.

You have to put that in try catch block and catch App42Exception to know if method has failed.

Let me know if this helps.

Ajay
answered Dec 6, 2014 by ajay123 (899 points)
selected Dec 6, 2014 by AndroidFolk
Thank you! That helps
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...