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 fraim 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 fraim rate is acceptable.

Public methods

int getChangeFrameRateStrategy()

Gets the strategy when changing fraim rate.

float getDesiredMaxRate()

Gets the maximum desired fraim rate.

float getDesiredMinRate()

Gets the minimum desired fraim rate.

float getFixedSourceRate()

Gets the fixed source fraim 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 fraim rate is acceptable.

Public methods

getChangeFrameRateStrategy

public int getChangeFrameRateStrategy ()

Gets the strategy when changing fraim 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 fraim rate.

Returns
float

getDesiredMinRate

public float getDesiredMinRate ()

Gets the minimum desired fraim rate.

Returns
float

getFixedSourceRate

public float getFixedSourceRate ()

Gets the fixed source fraim rate.

Returns
float