Share via


Vibrator.AreAllPrimitivesSupported(Int32[]) Method

Definition

Query whether the vibrator supports all of the given primitives.

[Android.Runtime.Register("areAllPrimitivesSupported", "([I)Z", "", ApiSince=30)]
public bool AreAllPrimitivesSupported (params int[] primitiveIds);
[<Android.Runtime.Register("areAllPrimitivesSupported", "([I)Z", "", ApiSince=30)>]
member this.AreAllPrimitivesSupported : int[] -> bool

Parameters

primitiveIds
Int32[]

Which primitives to query for.

Returns

Whether all specified primitives are supported. Empty query defaults to true.

Attributes

Remarks

Query whether the vibrator supports all of the given primitives. If no argument is provided this method will always return true.

If a primitive is not supported by the device, then <em>no vibration</em> will occur if it is played.

Use #arePrimitivesSupported(int...) to get individual results for each primitive.

Java documentation for android.os.Vibrator.areAllPrimitivesSupported(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