Hi all,
How to cancel a 'AGSGDBSyncTask', which is used for fetching a 'AGSGDBGeodatabase' through its 'generateGeodatabaseWithParameters' API ?
I tried getting the 'resumeID' of the sync task and issued a 'cancelResumableTaskJobWithResumeID', but to no avail.
Can someone help me in this regard ?
Solved! Go to Solution.
When you call generateGeodatabaseWithParameters... it returns an id<AGSResumableTaskJob>.
To cancel the job, call the `cancel` method on that object.
The resumeID is to cancel a job that was running when your app crashed or was killed.
When you call generateGeodatabaseWithParameters... it returns an id<AGSResumableTaskJob>.
To cancel the job, call the `cancel` method on that object.
The resumeID is to cancel a job that was running when your app crashed or was killed.
Thanks Gary. I was able to cancel the AGSGDBSyncTask now.