语言

Vibrator.IsPresetSupported(VibrationEffectPresetType) 方法

定义

查询振动器是否支持给定的预设。

[Android.Runtime.Register("isPresetSupported", "(I)Z", "GetIsPresetSupported_IHandler", ApiSince=37)]
public virtual bool IsPresetSupported(Android.OS.VibrationEffectPresetType presetId);
[<Android.Runtime.Register("isPresetSupported", "(I)Z", "GetIsPresetSupported_IHandler", ApiSince=37)>]
abstract member IsPresetSupported : Android.OS.VibrationEffectPresetType -> bool
override this.IsPresetSupported : Android.OS.VibrationEffectPresetType -> bool

参数

presetId
VibrationEffectPresetType

要查询的预设。

返回

是否支持预设。

特性

注解

查询振动器是否支持给定的预设。

Android 参考。android.os.Vibrator.isPresetSupported

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于