Package io.flutter.embedding.engine.renderer

# Class FlutterRenderer.ViewportMetrics

java.lang.Object
io.flutter.embedding.engine.renderer.FlutterRenderer.ViewportMetrics

Enclosing class:
  `FlutterRenderer`

public static final class FlutterRenderer.ViewportMetrics extends Object
Mutable data structure that holds all viewport metrics properties that Flutter cares about.

All distance measurements, e.g., width, height, padding, viewInsets, are measured in device pixels, not logical pixels.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `float`
  `devicePixelRatio`
  `int`
  `height`
  `int`
  `maxHeight`
  `int`
  `maxWidth`
  `int`
  `minHeight`
  `int`
  `minWidth`
  `int`
  `physicalTouchSlop`
  `int`
  `systemGestureInsetBottom`
  `int`
  `systemGestureInsetLeft`
  `int`
  `systemGestureInsetRight`
  `int`
  `systemGestureInsetTop`
  `static final int`
  `unsetValue`
  A value that indicates the setting has not been set.
  `int`
  `viewInsetBottom`
  `int`
  `viewInsetLeft`
  `int`
  `viewInsetRight`
  `int`
  `viewInsetTop`
  `int`
  `viewPaddingBottom`
  `int`
  `viewPaddingLeft`
  `int`
  `viewPaddingRight`
  `int`
  `viewPaddingTop`
  `int`
  `width`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ViewportMetrics()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<FlutterRenderer.DisplayFeature>`
  `getDisplayCutouts()`
  `List<FlutterRenderer.DisplayFeature>`
  `getDisplayFeatures()`
  `void`
  `setDisplayCutouts(List<FlutterRenderer.DisplayFeature> newCutouts)`
  `void`
  `setDisplayFeatures(List<FlutterRenderer.DisplayFeature> newFeatures)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### unsetValue

    public static final int unsetValue
    A value that indicates the setting has not been set.
    See Also:
      - Constant Field Values

  - ### devicePixelRatio

    public float devicePixelRatio

  - ### width

    public int width

  - ### height

    public int height

  - ### minWidth

    public int minWidth

  - ### maxWidth

    public int maxWidth

  - ### minHeight

    public int minHeight

  - ### maxHeight

    public int maxHeight

  - ### viewPaddingTop

    public int viewPaddingTop

  - ### viewPaddingRight

    public int viewPaddingRight

  - ### viewPaddingBottom

    public int viewPaddingBottom

  - ### viewPaddingLeft

    public int viewPaddingLeft

  - ### viewInsetTop

    public int viewInsetTop

  - ### viewInsetRight

    public int viewInsetRight

  - ### viewInsetBottom

    public int viewInsetBottom

  - ### viewInsetLeft

    public int viewInsetLeft

  - ### systemGestureInsetTop

    public int systemGestureInsetTop

  - ### systemGestureInsetRight

    public int systemGestureInsetRight

  - ### systemGestureInsetBottom

    public int systemGestureInsetBottom

  - ### systemGestureInsetLeft

    public int systemGestureInsetLeft

  - ### physicalTouchSlop

    public int physicalTouchSlop

- ## Constructor Details

  - ### ViewportMetrics

    public ViewportMetrics()

- ## Method Details

  - ### getDisplayFeatures

    public List<FlutterRenderer.DisplayFeature> getDisplayFeatures()

  - ### getDisplayCutouts

    public List<FlutterRenderer.DisplayFeature> getDisplayCutouts()

  - ### setDisplayFeatures

    public void setDisplayFeatures(List<FlutterRenderer.DisplayFeature> newFeatures)

  - ### setDisplayCutouts

    public void setDisplayCutouts(List<FlutterRenderer.DisplayFeature> newCutouts)