語言

VibrationAttributes.CreateForUsage(Int32) 方法

定義

建立 VibrationAttributes 一個新的實例,使用量相同。

[Android.Runtime.Register("createForUsage", "(I)Landroid/os/VibrationAttributes;", "", ApiSince=33)]
public static Android.OS.VibrationAttributes CreateForUsage(int usage);
[<Android.Runtime.Register("createForUsage", "(I)Landroid/os/VibrationAttributes;", "", ApiSince=33)>]
static member CreateForUsage : int -> Android.OS.VibrationAttributes

參數

usage
Int32

價值是以下之一:USAGE_UNKNOWN USAGE_ACCESSIBILITY USAGE_ALARM USAGE_COMMUNICATION_REQUEST USAGE_HARDWARE_FEEDBACK USAGE_MEDIA USAGE_NOTIFICATION USAGE_PHYSICAL_EMULATION USAGE_RINGTONE USAGE_TOUCH USAGE_GESTURE_INPUT

傳回

回傳的值為非空值。

屬性

備註

建立 VibrationAttributes 一個新的實例,使用量相同。

的 android.os.VibrationAttributes.createForUsage(int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於