Java.Util.Concurrent.IScheduledExecutorService.ScheduleWithFixedDelay Method
Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next.

Syntax

[Android.Runtime.Register("scheduleWithFixedDelay", "(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;", "GetScheduleWithFixedDelay_Ljava_lang_Runnable_JJLjava_util_concurrent_TimeUnit_Handler:Java.Util.Concurrent.IScheduledExecutorServiceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IScheduledFuture ScheduleWithFixedDelay (Java.Lang.IRunnable command, long initialDelay, long delay, TimeUnit unit)

Parameters

command
the task to execute
initialDelay
the time to delay first execution
delay
the delay between the termination of one execution and the commencement of the next
unit
the time unit of the initialDelay and delay parameters

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Util.Concurrent.RejectedExecutionExceptionif the task cannot be scheduled for execution
Java.Lang.NullPointerExceptionif command is null
Java.Lang.IllegalArgumentExceptionif delay less than or equal to zero

Remarks

Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next. If any execution of the task encounters an exception, subsequent executions are suppressed. Otherwise, the task will only terminate via cancellation or termination of the executor.

[Android Documentation]

Requirements

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