SyncResult.DelayUntil Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used to indicate to the SyncManager that future sync requests that match the request's Account and authority should be delayed until a time in seconds since Java epoch.
[Android.Runtime.Register("delayUntil")]
public long DelayUntil { get; set; }
[<Android.Runtime.Register("delayUntil")>]
member this.DelayUntil : int64 with get, set
Property Value
The time, in seconds since the Unix epoch, until which matching sync requests should be delayed. System backoff can delay a request beyond this time.
- Attributes
Remarks
Used to indicate to the SyncManager that future sync requests that match the request's Account and authority should be delayed until a time in seconds since Java epoch.
For example, if you want to delay the next sync for at least 5 minutes, then:
result.delayUntil = (System.currentTimeMillis() / 1000) + 5 * 60;
When a sync fails, system backoff can delay a retry beyond DelayUntil.
Java documentation for android.content.SyncResult.delayUntil.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.