Cancelling a 'AGSGDBSyncTask'

2993
2
Jump to solution
07-29-2014 11:44 PM
ShankaralingamG
New Contributor

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 ?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
GaryMorris1
Occasional Contributor

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.

View solution in original post

2 Replies
GaryMorris1
Occasional Contributor

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.

ShankaralingamG
New Contributor

Thanks Gary. I was able to cancel the AGSGDBSyncTask now.

0 Kudos