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.
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 listFolderContinueDropboxClientsManager.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 }})
Thanks Greg, I just figured that out.
The new SDK is getting some used to.