IOS notification notification callback when iTunes file transfer / transfer is complete

I was looking for how to receive callbacks in iOS5 when changing the file system. I found the following sample from the Apple website, but it only notifies this delegate when the file is deleted / created.

DirectoryWatcher class in a DocInteraction sample application

http://developer.apple.com/library/ios/#samplecode/DocInteraction/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010052

Is there an API call I can make to get the "sync complete" event? Please note: the user can transfer large files, and I need to know when the transfer will be completed. In addition, in iOS5, iTunes can sync in the background, which means that your application does not necessarily leave the foreground; therefore this method is not called:

- (void)applicationDidBecomeActive:(UIApplication *)application 
+6
source share
1 answer

I took the DirectoryWatcher code and made some changes to poll the file sizes. https://github.com/hwaxxer/MHDirectoryWatcher

+3
source

Source: https://habr.com/ru/post/899798/