Language

Vibrator.GetPresetDuration(VibrationEffectPresetType) Method

Definition

Query the estimated duration of the given preset.

[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

Parameters

presetId
VibrationEffectPresetType

Which preset to query for.

Returns

The duration of the preset as a Duration.

Attributes

Remarks

Query the estimated duration of the given preset.

Android reference for android.os.Vibrator.getPresetDuration.

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