Interface IVariableRefreshRate
Interface of the Samsung Variable Refresh Rate API.
Namespace: UnityEngine.AdaptivePerformance.Samsung.Android
Syntax
public interface IVariableRefreshRate
Properties
CurrentRefreshRate
The current display refresh rate.
Declaration
int CurrentRefreshRate { get; }
Property Value
Type | Description |
---|---|
Int32 |
SupportedRefreshRates
List of supported display refresh rates.
Declaration
int[] SupportedRefreshRates { get; }
Property Value
Type | Description |
---|---|
Int32[] |
Methods
SetRefreshRateByIndex(Int32)
Change the current display refresh rate to the value referenced by the given index from the list of supported refresh rates.
Declaration
bool SetRefreshRateByIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Returns
Type | Description |
---|---|
Boolean | True if the display refresh rate was updated successfully, false otherwise. Returns false if the requested refresh rate is larger than the |
Events
RefreshRateChanged
Event that is called if the current display refresh rate or the list of supported refresh rate is changed externally, for example by changing display settings.
Declaration
event VariableRefreshRateEventHandler RefreshRateChanged
Event Type
Type | Description |
---|---|
VariableRefreshRateEventHandler |