Surface.FrameRateParams


public static class Surface.FrameRateParams
extends Object

java.lang.Object
   ↳ android.view.Surface.FrameRateParams


Parameter object for Surface.setFrameRate(android.view.Surface.FrameRateParams), describing the intended frame rate for the Surface that setFrameRate is called on.

Summary

Nested classes

class Surface.FrameRateParams.Builder

 

Fields

public static final Surface.FrameRateParams IGNORE

A static FrameRateParams that can be passed directly into Surface.setFrameRate(android.view.Surface.FrameRateParams) to indicate the surface has no preference and any frame rate is acceptable.

Public methods

int getChangeFrameRateStrategy()

Gets the strategy when changing frame rate.

float getDesiredMaxRate()

Gets the maximum desired frame rate.

float getDesiredMinRate()

Gets the minimum desired frame rate.

float getFixedSourceRate()

Gets the fixed source frame rate.

Inherited methods

Fields

IGNORE

public static final Surface.FrameRateParams IGNORE

A static FrameRateParams that can be passed directly into Surface.setFrameRate(android.view.Surface.FrameRateParams) to indicate the surface has no preference and any frame rate is acceptable.

Public methods

getChangeFrameRateStrategy

public int getChangeFrameRateStrategy ()

Gets the strategy when changing frame rate.

Returns
int Value is Surface.CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS, or Surface.CHANGE_FRAME_RATE_ALWAYS

getDesiredMaxRate

public float getDesiredMaxRate ()

Gets the maximum desired frame rate.

Returns
float

getDesiredMinRate

public float getDesiredMinRate ()

Gets the minimum desired frame rate.

Returns
float

getFixedSourceRate

public float getFixedSourceRate ()

Gets the fixed source frame rate.

Returns
float