SyncResult.DelayUntil Property

Definition

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

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;

By default, when a sync fails, the system retries later with an exponential back-off with the system default initial delay time, which always wins over #delayUntil -- i.e. if the system back-off time is larger than #delayUntil, #delayUntil will essentially be ignored.

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.

Applies to