Java.Util.Timer.Schedule Method
Schedule a task for single execution.

Syntax

[Android.Runtime.Register("schedule", "(Ljava/util/TimerTask;Ljava/util/Date;)V", "GetSchedule_Ljava_util_TimerTask_Ljava_util_Date_Handler")]
public virtual void Schedule (TimerTask task, Date when)

Parameters

task
the task to schedule.
when
time of execution.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif when.getTime() .
Java.Lang.IllegalStateExceptionif the Timer has been canceled, or if the task has been scheduled or canceled.

Remarks

Schedule a task for single execution. If when is less than the current time, it will be scheduled to be executed as soon as possible.

[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