語言

IDelayed.GetDelay(TimeUnit) 方法

定義

回傳該物件在指定時間單位內所剩餘的延遲。

[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

參數

unit
TimeUnit

時間單位

傳回

剩下的延遲;零或負值表示延遲已經過去

屬性

備註

回傳該物件在指定時間單位內所剩餘的延遲。

Java 文件 java.util.concurrent.Delayed.getDelay(java.util.concurrent.TimeUnit)

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於