Compartir a través de


Vibrator.GetPrimitiveDurations(Int32[]) Method

Definition

Query the estimated durations of the given primitives.

[Android.Runtime.Register("getPrimitiveDurations", "([I)[I", "GetGetPrimitiveDurations_arrayIHandler", ApiSince=31)]
public virtual int[] GetPrimitiveDurations (params int[] primitiveIds);
[<Android.Runtime.Register("getPrimitiveDurations", "([I)[I", "GetGetPrimitiveDurations_arrayIHandler", ApiSince=31)>]
abstract member GetPrimitiveDurations : int[] -> int[]
override this.GetPrimitiveDurations : int[] -> int[]

Parameters

primitiveIds
Int32[]

Which primitives to query for.

Returns

Int32[]

The duration of each primitive, with zeroes for primitives that are not supported.

Attributes

Remarks

Query the estimated durations of the given primitives.

The returned array will be the same length as the query array and the value at a given index will contain the duration in milliseconds of the effect at the same index in the querying array.

The duration will be positive for primitives that are supported and zero for the unsupported ones, in correspondence with #arePrimitivesSupported(int...).

Java documentation for android.os.Vibrator.getPrimitiveDurations(int...).

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.

Applies to