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

Syntax

[Android.Runtime.Register("sleep", "(JI)V", "")]
public static void Sleep (long millis, int nanos)

See Also

Thread.Interrupt

Parameters

millis
The time to sleep in milliseconds.
nanos
Extra nanosecond precision

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 and nanoseconds). 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