Language

CombinedVibration.ParallelCombination.AddVibrator Method

Definition

Add or replace a one shot vibration effect to be performed by the specified vibrator.

[Android.Runtime.Register("addVibrator", "(ILandroid/os/VibrationEffect;)Landroid/os/CombinedVibration$ParallelCombination;", "", ApiSince=31)]
public Android.OS.CombinedVibration.ParallelCombination AddVibrator(int vibratorId, Android.OS.VibrationEffect effect);
[<Android.Runtime.Register("addVibrator", "(ILandroid/os/VibrationEffect;)Landroid/os/CombinedVibration$ParallelCombination;", "", ApiSince=31)>]
member this.AddVibrator : int * Android.OS.VibrationEffect -> Android.OS.CombinedVibration.ParallelCombination

Parameters

vibratorId
Int32

The id of the vibrator that should perform this effect.

effect
VibrationEffect

The effect this vibrator should play. This value cannot be null.

Returns

The ParallelCombination object to enable adding multiple effects in one chain. This value cannot be null.

Attributes

Remarks

Add or replace a one shot vibration effect to be performed by the specified vibrator.

Java documentation for android.os.CombinedVibration.ParallelCombination.addVibrator(int, android.os.VibrationEffect).

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