Preview 2.0
is now in Public Beta!
Read the Announcement
→
NativeScript
Open main menu
Search
Docs
Blog
Community
Support
Open additional menu
Open NativeScript GitHub
Docs
Preview
Plugins
Best Practices
Capacitor
API Reference
API Index
Namespaces
ApplicationSettings
CSSUtils
Connectivity
CoreTypes
DialogStrings
FontStyle
FontWeight
GridUnitType
Http
IOSHelper
Length
PercentLength
TouchAction
Trace
Utils
capitalizationType
encoding
inputType
knownFolders
path
Enumerations
AccessibilityLiveRegion
AccessibilityRole
AccessibilityState
AccessibilityTrait
CacheMode
FontScaleCategory
GestureEvents
GestureStateTypes
GestureTypes
HttpResponseEncoding
SwipeDirection
Classes
AbsoluteLayout
ActionBar
ActionItem
ActionItems
ActivityIndicator
AndroidApplication
Animation
Background
Binding
Builder
Button
ChangeType
CoercibleProperty
Color
ContainerView
ContentView
ControlStateChangeListener
CssAnimationParser
CssAnimationProperty
CssProperty
CustomLayoutView
DatePicker
DockLayout
EditableTextBase
File
FileSystemEntity
FlexboxLayout
Folder
Font
FormattedString
Frame
GesturesObserver
GridLayout
HtmlView
Image
ImageAsset
ImageCache
ImageSource
InheritedCssProperty
InheritedProperty
ItemSpec
KeyframeAnimation
KeyframeAnimationInfo
Label
LayoutBase
ListPicker
ListView
ModuleNameResolver
NavigationButton
Observable
ObservableArray
Page
PageBase
ParserEventType
Placeholder
Progress
Property
ProxyViewContainer
Repeater
RootLayout
Screen
ScrollView
SearchBar
SegmentedBar
SegmentedBarItem
ShorthandProperty
Slider
Span
StackLayout
Style
Switch
TabView
TabViewItem
TextBase
TextField
TextView
TimePicker
TouchManager
Transition
View
ViewBase
ViewCommon
ViewHelper
VirtualArray
WebView
WrapLayout
WrappedValue
XmlParser
iOSApplication
Interfaces
ActionOptions
AddArrayFromBuilder
AddChildFromBuilder
AlertOptions
AndroidActivityBackPressedEventData
AndroidActivityBundleEventData
AndroidActivityCallbacks
AndroidActivityEventData
AndroidActivityNewIntentEventData
AndroidActivityRequestPermissionsEventData
AndroidActivityResultEventData
AnimationDefinition
ApplicationEventData
BackstackEntry
BindingOptions
CancelableOptions
ChangedData
CommonLayoutParams
ComponentModule
ConfirmOptions
CreateViewEventData
CssChangedEventData
DialogOptions
DiscardedErrorEventData
DownloadError
DownloadRequest
DownloadedData
EventData
GestureEventData
GestureEventDataWithState
HttpContent
HttpRequestOptions
HttpResponse
IDevice
ImageAssetOptions
ItemEventData
ItemsLoading
ItemsSource
KeyedTemplate
KeyframeDeclaration
KeyframeInfo
LaunchEventData
LoadAppCSSEventData
LoadEventData
LoadOptions
LoginOptions
LoginResult
NativeScriptConfig
NavigatedData
NavigationContext
NavigationEntry
NavigationTransition
OrientationChangedEventData
PanGestureEventData
ParserEvent
PinchGestureEventData
PlatformContext
PromptOptions
PromptResult
PropertyChangeData
RootLayoutOptions
RotationGestureEventData
ScrollEventData
ShadeCoverOptions
ShowModalOptions
ShownModallyData
Size
SwipeGestureEventData
SystemAppearanceChangedEventData
TapGestureEventData
Template
TemplatedItemsView
TimerInfo
TouchGestureEventData
TraceErrorHandler
TraceEventListener
TraceWriter
UnhandledErrorEventData
ViewEntry
Home
API Index
Classes
Screen
Class
Screen
Screen
Summary
#
Constructors
constructor
Properties
mainScreen
Constructors
#
constructor
#
new Screen():
Screen
Returns
Screen
Properties
#
mainScreen
#
Static
mainScreen: ScreenMetrics
defined in
@nativescript/core/platform/index.d.ts:121:8
Previous
←
RootLayout
Next
ScrollView
→
On this page
↑ Top
Summary
Constructors
constructor
Properties
mainScreen