VibrationEffect.WaveformEnvelopeBuilder.AddControlPoint Method
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.
Adds a new control point to the end of this waveform envelope. Amplitude defines the vibrator's strength at this frequency, ranging from 0 (off) to 1 (maximum achievable strength).
[Android.Runtime.Register("addControlPoint", "(FFJ)Landroid/os/VibrationEffect$WaveformEnvelopeBuilder;", "", ApiSince=36)]
public Android.OS.VibrationEffect.WaveformEnvelopeBuilder AddControlPoint(float amplitude, float frequencyHz, long durationMillis);
[<Android.Runtime.Register("addControlPoint", "(FFJ)Landroid/os/VibrationEffect$WaveformEnvelopeBuilder;", "", ApiSince=36)>]
member this.AddControlPoint : single * single * int64 -> Android.OS.VibrationEffect.WaveformEnvelopeBuilder
Parameters
- amplitude
- Single
The control-point amplitude.
- frequencyHz
- Single
The control-point frequency, in hertz.
- durationMillis
- Int64
The control-point duration, in milliseconds.
Returns
The returned value is non-null.
- Attributes
Remarks
Adds a new control point to the end of this waveform envelope. Amplitude defines the vibrator's strength at this frequency, ranging from 0 (off) to 1 (maximum achievable strength).
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.