語言

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於