语言

VibrationEffect.Events 属性

定义

返回构成此效果的 VibrationEffect.Event 对象的列表。

public abstract System.Collections.Generic.IList<Android.OS.VibrationEffect.Event> Events { [Android.Runtime.Register("getEvents", "()Ljava/util/List;", "GetGetEventsHandler", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getEvents", "()Ljava/util/List;", "GetGetEventsHandler", ApiSince=37)>]
member this.Events : System.Collections.Generic.IList<Android.OS.VibrationEffect.Event>

属性值

事件列表。 此值不能为 null。

特性

注解

返回构成此效果的 VibrationEffect.Event 对象的列表。 此效果不得为重复效果。

使用此属性从 VibrationEffect 中检索构成事件,主要用于 VibrationEffect.Builder。

如果通过合成 API 创建了此效果,则每个基元将转换为事件。 每个事件的开始时间是使用基元延迟和所有上述基元的估计持续时间计算的。 这些估计基于 Android 触觉常量中建议的基元持续时间目标。 使用的估计值为:12 毫秒Click,5 毫秒Tick,12 毫秒LowTick,500 毫秒SlowRise,150 毫秒,100 QuickFall毫秒QuickRise,300 Thud毫秒,150 毫秒。Spin

设备之间的实际基元持续时间可能有所不同。

Android 参考。android.os.VibrationEffect.getEvents

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

适用于