Using loadDelta in Dropbox iOS

I use dropbox to upload and download files. I want to be able to receive notifications when a file changes in a specific folder (or if this is not possible in the entire Dropbox account) so that the user is notified. I don't seem to find a way to do this separately from using the delta function. I found this code:

-(void)restClient:(DBRestClient *)client loadedDeltaEntries:(NSArray *)entries reset:(BOOL)shouldReset cursor:(NSString *)cursor hasMore:(BOOL)hasMore{ for (DBDeltaEntry *file in entries) { if(!file.metadata.isDirectory){ NSLog(@"File: %@ ", file.metadata.filename ); }else { NSLog(@"Directory: %@ ", file.metadata.filename ); } } } 

.... from this question: Using Delta in Dropbox API with iOS

But he gives errors. I found out that there is such a function as:

 [self.restClient loadDelta:NSString]; 

But I do not seem to have found any examples, and please do not give me a link to the Dropbox site, which does not have a sample code at all.

+4
source share

All Articles