Start a new topic

How to get all users in android in a blocking manner

I'm trying to get all the users in the Users collection but having no luck at all, could you please help me to achieve this in a blocking manner?


Take a look at the `User` class javadocs-- it shows a master list of all available methods.

You probably want the retrieveBlocking method, with an empty query--

myClient.user().retrieveBlocking(new Query()).execute();

edited to remove callback parameter, was thinking async sorry about that!

Thanks for your help, altough your answer is wrong because there are no a blocking method with that signature (you're taking an async one), i've figured out to solve my problem using:

`User[] users = myClient.user().retrieveBlocking(new Query()).execute();`

Thanks again for your help

Login or Signup to post a comment