VibratorFrequencyProfile.GetOutputAccelerationGs(Single) 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.
Returns the output acceleration (in Gs) for the given frequency (Hz).
[Android.Runtime.Register("getOutputAccelerationGs", "(F)F", "", ApiSince=36)]
public float GetOutputAccelerationGs(float frequencyHz);
[<Android.Runtime.Register("getOutputAccelerationGs", "(F)F", "", ApiSince=36)>]
member this.GetOutputAccelerationGs : single -> single
Parameters
- frequencyHz
- Single
The frequency in Hz.
Returns
The output acceleration in Gs for the given frequency.
- Attributes
Remarks
Returns the output acceleration (in Gs) for the given frequency (Hz). This method provides the actual acceleration the vibrator will produce when operating at the specified frequency, using linear interpolation over the #getFrequenciesOutputAcceleration()
.
Java documentation for android.os.vibrator.VibratorFrequencyProfile.getOutputAccelerationGs(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.