Vibrator.GetPresetDuration(VibrationEffectPresetType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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