Udostępnij za pośrednictwem


IDelayed.GetDelay(TimeUnit) Method

Definition

Returns the remaining delay associated with this object, in the given time unit.

[Android.Runtime.Register("getDelay", "(Ljava/util/concurrent/TimeUnit;)J", "GetGetDelay_Ljava_util_concurrent_TimeUnit_Handler:Java.Util.Concurrent.IDelayedInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public long GetDelay (Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("getDelay", "(Ljava/util/concurrent/TimeUnit;)J", "GetGetDelay_Ljava_util_concurrent_TimeUnit_Handler:Java.Util.Concurrent.IDelayedInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDelay : Java.Util.Concurrent.TimeUnit -> int64

Parameters

unit
TimeUnit

the time unit

Returns

the remaining delay; zero or negative values indicate that the delay has already elapsed

Attributes

Remarks

Returns the remaining delay associated with this object, in the given time unit.

Java documentation for java.util.concurrent.Delayed.getDelay(java.util.concurrent.TimeUnit).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to