Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.
Forum Discussion
Raheel S.
9 years agoExplorer | Level 3
API v2 - Longpoll Objective C
Hello,
I want a good example of a using ListFolderLongpoll, I am getting cursor errors and find little documentation as to how to receive changes notification.
I am using ObjC SDK V2.
2 Replies
- Greg-DB9 years ago
Dropbox Community Moderator
Hi Raheel, you can find the documentation for listFolderLongpoll itself here.
Using it would look like this:
// cursor should be the Files.ListFolderResult.cursor as retrieved by the last call to listFolderContinue DropboxClientsManager.authorizedClient?.files.listFolderLongpoll(cursor: cursor).response(completionHandler: { (result, error) in if ((result) != nil) { if (result?.changes)! { // There are changes, so call listFolderContinue to retrieve them } else { // listFolderLongpoll didn't report changes, so call listFolderLongpoll again } } else if ((error) != nil) { // Perform whatever error handling you want here } })
- Raheel S.9 years agoExplorer | Level 3
Thanks Greg, I just figured that out.
The new SDK is getting some used to.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,039 PostsLatest Activity: 2 days ago
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 or Facebook.
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!