- request
- SyncRequest object containing information about sync to cancel.
Remove the specified sync. This will cancel any pending or active syncs. If the request is for a periodic sync, this call will remove any future occurrences. It is possible to cancel a sync using a SyncRequest object that is not the same object with which you requested the sync. Do so by building a SyncRequest with the same adapter, frequency, and extras bundle.
If a periodic sync is specified, the caller must hold the permission NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#WRITE_SYNC_SETTINGS.