Java.Lang.Thread.Sleep Method
Causes the thread which sent this message to sleep for the given interval of time (given in milliseconds).

Syntax

[Android.Runtime.Register("sleep", "(J)V", "")]
public static void Sleep (long time)

See Also

Thread.Interrupt

Parameters

time
The time to sleep in milliseconds.

Exceptions

TypeReason
Java.Lang.InterruptedExceptionif the current thread has been interrupted. The interrupted status of the current thread will be cleared before the exception is thrown.

Remarks

Causes the thread which sent this message to sleep for the given interval of time (given in milliseconds). The precision is not guaranteed - the Thread may sleep more or less than requested.

[Android Documentation]

Requirements

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