Options
All
  • Public
  • Public/Protected
  • All
Menu

Module layout

Index

Variables

Const AT_MOST

AT_MOST: number

Const EXACTLY

EXACTLY: number

Const MEASURED_HEIGHT_STATE_SHIFT

MEASURED_HEIGHT_STATE_SHIFT: number

Const MEASURED_SIZE_MASK

MEASURED_SIZE_MASK: number

Const MEASURED_STATE_MASK

MEASURED_STATE_MASK: number

Const MEASURED_STATE_TOO_SMALL

MEASURED_STATE_TOO_SMALL: number

Const UNSPECIFIED

UNSPECIFIED: number

Functions

getDisplayDensity

  • getDisplayDensity(): number
  • Returns number

getMeasureSpecMode

  • getMeasureSpecMode(spec: number): number
  • Parameters

    • spec: number

    Returns number

getMeasureSpecSize

  • getMeasureSpecSize(spec: number): number
  • Parameters

    • spec: number

    Returns number

getMode

  • getMode(mode: number): string
  • Parameters

    • mode: number

    Returns string

makeMeasureSpec

  • makeMeasureSpec(px: number, mode: number): number
  • Parameters

    • px: number
    • mode: number

    Returns number

measureNativeView

  • measureNativeView(nativeView: any, width: number, widthMode: number, height: number, heightMode: number): object
  • Parameters

    • nativeView: any
    • width: number
    • widthMode: number
    • height: number
    • heightMode: number

    Returns object

    • height: number
    • width: number

measureSpecToString

  • measureSpecToString(measureSpec: number): string
  • Parameters

    • measureSpec: number

    Returns string

round

  • Parameters

    Returns px

toDeviceIndependentPixels

  • toDeviceIndependentPixels(value: px): dip
  • Parameters

    • value: px

    Returns dip

toDevicePixels

  • toDevicePixels(value: dip): px
  • Parameters

    Returns px

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method