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

Applies to