Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
ekantrowitz
9 years agoNew member | Level 2
objective-c API v2 - getMetaData Problem with Block response
I am converting to objective C API v2. I wrote this route to verify if a file is in a dropbox directory called DA. I get on the NSLog that the file exits, but the BOOL return value of the function ...
mrschulz
8 years agoExplorer | Level 3
Your function does this
set return value to NO
call a block ( which takes some time, asynchronously )
immediately return the return value
The block will not set it to another value until it's done the dropbox API call.
Greg-DB
Dropbox Community Moderator
8 years agoMrschulz's comment is correct, the response block is asynchronous. The result of the API call is only returned in the response block, so you should trigger whatever is relying on that value inside the response block.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!