VibrationEffect.Events Property
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.
Returns a list of VibrationEffect.Event objects that make up this effect.
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>
Property Value
A list of events. This value cannot be null.
- Attributes
Remarks
Returns a list of VibrationEffect.Event objects that make up this effect. This effect must NOT be a repeating effect.
Use this property to retrieve the constituent events from a VibrationEffect, primarily for use with VibrationEffect.Builder.
If this effect was created via the Composition API, then each primitive will be converted into an event. The start time for each event is calculated using the primitive delay and an estimated duration for all preceding primitives. These estimates are based on the recommended primitive duration targets from Android Haptics Constants. The estimates used are: 12 ms for Click, 5 ms for Tick, 12 ms for LowTick, 500 ms for SlowRise, 150 ms for QuickRise, 100 ms for QuickFall, 300 ms for Thud, and 150 ms for Spin.
Actual primitive durations may differ between devices.
Android reference for android.os.VibrationEffect.getEvents.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.