VibrationEffect.WaveformEnvelopeBuilder.SetInitialFrequencyHz(Single) Method

Definition

Sets the initial frequency for the waveform in Hertz. The effect will start vibrating at this frequency when it transitions to the amplitude and frequency defined by the first control point.

[Android.Runtime.Register("setInitialFrequencyHz", "(F)Landroid/os/VibrationEffect$WaveformEnvelopeBuilder;", "", ApiSince=36)]
public Android.OS.VibrationEffect.WaveformEnvelopeBuilder SetInitialFrequencyHz(float initialFrequencyHz);
[<Android.Runtime.Register("setInitialFrequencyHz", "(F)Landroid/os/VibrationEffect$WaveformEnvelopeBuilder;", "", ApiSince=36)>]
member this.SetInitialFrequencyHz : single -> Android.OS.VibrationEffect.WaveformEnvelopeBuilder

Parameters

initialFrequencyHz
Single

The initial frequency, in hertz.

Returns

The returned value is non-null.

Attributes

Remarks

Sets the initial frequency for the waveform in Hertz. The effect will start vibrating at this frequency when it transitions to the amplitude and frequency defined by the first control point.

Java documentation for android.os.VibrationEffect.WaveformEnvelopeBuilder.setInitialFrequencyHz(float).

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