Share via


TrainingInterval.MinimumInterval Property

Definition

Sets the minimum time interval between two training runs.

public Java.Time.Duration MinimumInterval { [Android.Runtime.Register("getMinimumInterval", "()Ljava/time/Duration;", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getMinimumInterval", "()Ljava/time/Duration;", "", ApiSince=35)>]
member this.MinimumInterval : Java.Time.Duration

Property Value

Attributes

Remarks

Sets the minimum time interval between two training runs.

This field will only be used when the scheduling mode is #SCHEDULING_MODE_RECURRENT. Only positive values are accepted, zero or negative values will result in IllegalArgumentException.

Please also note this value is advisory, which does not guarantee the job will be run immediately after the interval expired. Federated compute will still enforce a minimum required interval and training constraints to ensure system health. The current training constraints are device on unmetered network, idle and battery not low.

Java documentation for android.adservices.ondevicepersonalization.TrainingInterval.getMinimumInterval().

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