Merge "Add documentation for LayoutParams.preferredRefreshRate" into tm-dev

This commit is contained in:
Rupesh Bansal
2022-05-09 15:52:20 +00:00
committed by Android (Google) Code Review

View File

@@ -3108,10 +3108,14 @@ public interface WindowManager extends ViewManager {
/**
* The preferred refresh rate for the window.
*
* <p>
* This must be one of the supported refresh rates obtained for the display(s) the window
* is on. The selected refresh rate will be applied to the display's default mode.
*
* <p>
* This should be used in favor of {@link LayoutParams#preferredDisplayModeId} for
* applications that want to specify the refresh rate, but do not want to specify a
* preference for any other displayMode properties (e.g., resolution).
* <p>
* This value is ignored if {@link #preferredDisplayModeId} is set.
*
* @see Display#getSupportedRefreshRates()