共用方式為


Display.Mode.GetAlternativeRefreshRates Method

Definition

Returns an array of refresh rates which can be switched to seamlessly.

[Android.Runtime.Register("getAlternativeRefreshRates", "()[F", "", ApiSince=31)]
public float[] GetAlternativeRefreshRates ();
[<Android.Runtime.Register("getAlternativeRefreshRates", "()[F", "", ApiSince=31)>]
member this.GetAlternativeRefreshRates : unit -> single[]

Returns

Single[]
Attributes

Remarks

Returns an array of refresh rates which can be switched to seamlessly.

A seamless switch is one without visual interruptions, such as a black screen for a second or two.

Presence in this list does not guarantee a switch will occur to the desired refresh rate, but rather, if a switch does occur to a refresh rate in this list, it is guaranteed to be seamless.

The binary relation "refresh rate X is alternative to Y" is non-reflexive, symmetric and transitive. For example the mode 1920x1080 60Hz, will never have an alternative refresh rate of 60Hz. If 1920x1080 60Hz has an alternative of 50Hz then 1920x1080 50Hz will have alternative refresh rate of 60Hz. If 1920x1080 60Hz has an alternative of 50Hz and 1920x1080 50Hz has an alternative of 24Hz, then 1920x1080 60Hz will also have an alternative of 24Hz.

Java documentation for android.view.Display.Mode.getAlternativeRefreshRates().

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