FrameRateParams


open class FrameRateParams
kotlin.Any
   ↳ android.view.Surface.FrameRateParams

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

Summary

Nested classes

Public methods
open Int

Gets the strategy when changing frame rate.

open Float

Gets the maximum desired frame rate.

open Float

Gets the minimum desired frame rate.

open Float

Gets the fixed source frame rate.

Properties
static Surface.FrameRateParams!

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

Public methods

getChangeFrameRateStrategy

open fun getChangeFrameRateStrategy(): Int

Gets the strategy when changing frame rate.

Return
Int Value is android.view.Surface#CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS, or android.view.Surface#CHANGE_FRAME_RATE_ALWAYS

getDesiredMaxRate

open fun getDesiredMaxRate(): Float

Gets the maximum desired frame rate.

See Also

    getDesiredMinRate

    open fun getDesiredMinRate(): Float

    Gets the minimum desired frame rate.

    See Also

      getFixedSourceRate

      open fun getFixedSourceRate(): Float

      Gets the fixed source frame rate.

      See Also

        Properties

        IGNORE

        static val IGNORE: Surface.FrameRateParams!

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