You can stop the sync process using the sync.stop API.
sync.stop(callback)
The Stop Sync API is supported on the following platforms:
sync.stop( function ()
{
alert(“Sync has been stopped”);
});
Following illustration shows the end-to-end workflow for the stop sync API:
Following are some of the key requirements that need to be enabled for the stop sync process:
If you call the stop.sync API multiple times, an error Session is in Progress
appears and the sync continues.
If you call the stop.sync API when sync is not in progress, a sync cycle is triggered and makes network calls in background.
Copyright © 2013 Kony, Inc. All rights reserved. |