Vibrator.GetPresetDuration(VibrationEffectPresetType) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
查詢給定預設的預估持續時間。
[Android.Runtime.Register("getPresetDuration", "(I)Ljava/time/Duration;", "GetGetPresetDuration_IHandler", ApiSince=37)]
public virtual Java.Time.Duration GetPresetDuration(Android.OS.VibrationEffectPresetType presetId);
[<Android.Runtime.Register("getPresetDuration", "(I)Ljava/time/Duration;", "GetGetPresetDuration_IHandler", ApiSince=37)>]
abstract member GetPresetDuration : Android.OS.VibrationEffectPresetType -> Java.Time.Duration
override this.GetPresetDuration : Android.OS.VibrationEffectPresetType -> Java.Time.Duration
參數
- presetId
- VibrationEffectPresetType
要查詢哪個預設。
傳回
預設作為 . 的持續時間Duration
- 屬性
例外狀況
不支援預設。
備註
查詢給定預設的預估持續時間。
Android 參考資料。android.os.Vibrator.getPresetDuration
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。