NativeScript Docs
Core Modules
NativeScript Angular
NativeScript UI
Article title
view in github
Search
Preparing search index...
The search index is not available
NativeScript
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"utils/layout-helper/layout-helper.d"
External module "utils/layout-helper/layout-helper.d"
Globals
"utils/layout-
helper/layout-
helper.d"
AT_
MOST
EXACTLY
MEASURED_
HEIGHT_
STATE_
SHIFT
MEASURED_
SIZE_
MASK
MEASURED_
STATE_
MASK
MEASURED_
STATE_
TOO_
SMALL
UNSPECIFIED
get
Display
Density
get
Measure
Spec
Mode
get
Measure
Spec
Size
get
Mode
make
Measure
Spec
measure
Native
View
measure
Spec
ToString
round
to
Device
Independent
Pixels
to
Device
Pixels
Index
Variables
AT_
MOST
EXACTLY
MEASURED_
HEIGHT_
STATE_
SHIFT
MEASURED_
SIZE_
MASK
MEASURED_
STATE_
MASK
MEASURED_
STATE_
TOO_
SMALL
UNSPECIFIED
Functions
get
Display
Density
get
Measure
Spec
Mode
get
Measure
Spec
Size
get
Mode
make
Measure
Spec
measure
Native
View
measure
Spec
ToString
round
to
Device
Independent
Pixels
to
Device
Pixels
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
get
Display
Density
get
Display
Density
(
)
:
number
Returns
number
get
Measure
Spec
Mode
get
Measure
Spec
Mode
(
spec
:
number
)
:
number
Parameters
spec:
number
Returns
number
get
Measure
Spec
Size
get
Measure
Spec
Size
(
spec
:
number
)
:
number
Parameters
spec:
number
Returns
number
get
Mode
get
Mode
(
mode
:
number
)
:
string
Parameters
mode:
number
Returns
string
make
Measure
Spec
make
Measure
Spec
(
px
:
number
, mode
:
number
)
:
number
Parameters
px:
number
mode:
number
Returns
number
measure
Native
View
measure
Native
View
(
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
measure
Spec
ToString
measure
Spec
ToString
(
measureSpec
:
number
)
:
string
Parameters
measureSpec:
number
Returns
string
round
round
(
px
:
px
)
:
px
Parameters
px:
px
Returns
px
to
Device
Independent
Pixels
to
Device
Independent
Pixels
(
value
:
px
)
:
dip
Parameters
value:
px
Returns
dip
to
Device
Pixels
to
Device
Pixels
(
value
:
dip
)
:
px
Parameters
value:
dip
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
🐛 Debug your mobile network traffic with Fiddler! Try it on
iOS
or
Android