Java.Util.Timer.Schedule Method
Schedule a task for repeated fixed-delay execution after a specific delay.

Syntax

[Android.Runtime.Register("schedule", "(Ljava/util/TimerTask;JJ)V", "GetSchedule_Ljava_util_TimerTask_JJHandler")]
public virtual void Schedule (TimerTask task, long delay, long period)

Parameters

task
the task to schedule.
delay
amount of time in milliseconds before first execution.
period
amount of time in milliseconds between subsequent executions.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif delay or period <= 0.
Java.Lang.IllegalStateExceptionif the Timer has been canceled, or if the task has been scheduled or canceled.

Remarks

Schedule a task for repeated fixed-delay execution after a specific delay.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1