VirtualDisplayConfig.Builder.SetRequestedRefreshRate(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.
Sets the refresh rate of a virtual display in frames per second.
[Android.Runtime.Register("setRequestedRefreshRate", "(F)Landroid/hardware/display/VirtualDisplayConfig$Builder;", "", ApiSince=34)]
public Android.Hardware.Display.VirtualDisplayConfig.Builder SetRequestedRefreshRate(float requestedRefreshRate);
[<Android.Runtime.Register("setRequestedRefreshRate", "(F)Landroid/hardware/display/VirtualDisplayConfig$Builder;", "", ApiSince=34)>]
member this.SetRequestedRefreshRate : single -> Android.Hardware.Display.VirtualDisplayConfig.Builder
Parameters
- requestedRefreshRate
- Single
The requested rate in frames per second. Negative values are rejected; zero uses the default rate.
Returns
This builder, with the requested refresh rate recorded.
- Attributes
Remarks
Sets the refresh rate of a virtual display in frames per second.
For best results, specify a divisor of the physical refresh rate, e.g., 30 or 60 on a 120hz display. A positive rate at or below the physical refresh rate is rounded up to a divisor of that rate. A request above the physical refresh rate uses the physical refresh rate. If unset or zero, the virtual display will be refreshed at the physical display refresh rate.
Android reference for android.hardware.display.VirtualDisplayConfig.Builder.setRequestedRefreshRate.
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.