Preview 2.0 is now in Public Beta!
Read the Announcement

Summary

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
iOSApplication
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

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
DownloadedData
DownloadError
DownloadRequest
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

Variables

AccessibilityEvents
androidDynamicElevationOffsetProperty
androidElevationProperty
AnimationCurve
Application
autocapitalizationTypeProperty
autocorrectProperty
backgroundColorProperty
backgroundImageProperty
backgroundInternalProperty
backgroundPositionProperty
backgroundProperty
backgroundRepeatProperty
backgroundSizeProperty
borderBottomColorProperty
borderBottomLeftRadiusProperty
borderBottomRightRadiusProperty
borderBottomWidthProperty
borderColorProperty
borderLeftColorProperty
borderLeftWidthProperty
borderRadiusProperty
borderRightColorProperty
borderRightWidthProperty
borderTopColorProperty
borderTopLeftRadiusProperty
borderTopRightRadiusProperty
borderTopWidthProperty
borderWidthProperty
clipPathProperty
colorProperty
CSSHelper
Device
Dialogs
editableProperty
Enums
fontFamilyProperty
fontInternalProperty
fontSizeProperty
fontStyleProperty
fontWeightProperty
heightProperty
hintProperty
horizontalAlignmentProperty
isAndroid
isIOS
isUserInteractionEnabledProperty
keyboardTypeProperty
letterSpacingProperty
lineHeightProperty
marginBottomProperty
marginLeftProperty
marginProperty
marginRightProperty
marginTopProperty
maxLengthProperty
minHeightProperty
minWidthProperty
opacityProperty
paddingBottomProperty
paddingLeftProperty
paddingProperty
paddingRightProperty
paddingTopProperty
placeholderColorProperty
platformNames
returnKeyTypeProperty
rotateProperty
scaleXProperty
scaleYProperty
TESTING
textAlignmentProperty
textDecorationProperty
textShadowProperty
textTransformProperty
translateXProperty
translateYProperty
unsetValue
updateTextTriggerProperty
verticalAlignmentProperty
visibilityProperty
whiteSpaceProperty
widthProperty
zeroLength
zIndexProperty

Type Aliases

FontStyle

FontWeight

FontWeight: "100" | "200" | "300" | "normal" | "400" | "500" | "600" | "bold" | "700" | "800" | "900"

Headers

HorizontalAlignment

InstrumentationMode

InstrumentationMode: "counters" | "timeline" | "lifecycle"

LengthDipUnit

LengthPercentUnit

ModuleListProvider

ModuleListProvider: () => string[]

PercentLengthType

TouchAnimationOptions

TouchAnimationOptions: {
  down?: TouchAnimationFn | AnimationDefinition
}

VerticalAlignment

WebViewNavigationType

WebViewNavigationType: "linkClicked" | "formSubmitted" | "backForward" | "reload" | "formResubmitted" | "other" | undefined

Variables

AccessibilityEvents

AccessibilityEvents: {
  accessibilityBlurEvent: string
  accessibilityFocusChangedEvent: string
}

AnimationCurve

Application

Application: {
addCss: typeof addCss;
android: AndroidApplication;
discardedErrorEvent: string;
displayedEvent: string;
exitEvent: string;
fontScaleChangedEvent: string;
getCssFileName: typeof getCssFileName;
getMainEntry: typeof getMainEntry;
getNativeApplication: typeof getNativeApplication;
getResources: typeof getResources;
getRootView: typeof getRootView;
hasLaunched: typeof hasLaunched;
hasListeners: typeof hasListeners;
inBackground: boolean;
ios: iOSApplication;
launchEvent: string;
loadAppCss: typeof loadAppCss;
lowMemoryEvent: string;
notify: typeof notify;
off: typeof off;
on: typeof on;
orientation: typeof orientation;
orientationChangedEvent: string;
resetRootView: typeof _resetRootView;
resumeEvent: string;
run: typeof run;
setAutoSystemAppearanceChanged: typeof setAutoSystemAppearanceChanged;
setCssFileName: typeof setCssFileName;
setMaxRefreshRate: typeof setMaxRefreshRate;
setResources: typeof setResources;
suspendEvent: string;
suspended: boolean;
systemAppearance: typeof systemAppearance;
systemAppearanceChanged: typeof systemAppearanceChanged;
systemAppearanceChangedEvent: string;
}

CSSHelper

CSSHelper: {
  AttributeSelector: typeof AttributeSelector
  ClassSelector: typeof ClassSelector
  InvalidSelector: typeof InvalidSelector
  PseudoClassSelector: typeof PseudoClassSelector
  RuleSet: typeof RuleSet
  Selector: typeof Selector
  SelectorCore: typeof SelectorCore
  SelectorsMap: typeof SelectorsMap
  SelectorsMatch: typeof SelectorsMatch
  SimpleSelector: typeof SimpleSelector
  SimpleSelectorSequence: typeof SimpleSelectorSequence
  TypeSelector: typeof TypeSelector
  UniversalSelector: typeof UniversalSelector
  createSelector: typeof createSelector
}

Dialogs

Dialogs: {
action: typeof action;
alert: typeof alert;
confirm: typeof confirm;
login: typeof login;
}

Enums

Enums: {
Accuracy: typeof Accuracy;
AndroidActionBarIconVisibility: typeof AndroidActionBarIconVisibility;
AndroidActionItemPosition: typeof AndroidActionItemPosition;
AnimationCurve: typeof AnimationCurve;
AutocapitalizationType: typeof AutocapitalizationType;
BackgroundRepeat: typeof BackgroundRepeat;
DeviceOrientation: typeof DeviceOrientation;
DeviceType: typeof DeviceType;
Dock: typeof Dock;
FontAttributes: typeof FontAttributes;
FontStyle: typeof FontStyle;
FontWeight: typeof FontWeight;
HorizontalAlignment: typeof HorizontalAlignment;
IOSActionItemPosition: typeof IOSActionItemPosition;
ImageFormat: typeof ImageFormat;
KeyboardType: typeof KeyboardType;
NavigationBarVisibility: typeof NavigationBarVisibility;
Orientation: typeof Orientation;
ReturnKeyType: typeof ReturnKeyType;
StatusBarStyle: typeof StatusBarStyle;
Stretch: typeof ImageStretch;
SystemAppearance: typeof SystemAppearance;
TextAlignment: TextAlignmentType;
TextDecoration: TextDecorationType;
TextTransform: TextTransformType;
UpdateTextTrigger: UpdateTextTriggerType;
VerticalAlignment: VerticalAlignmentType;
Visibility: VisibilityType;
}

TESTING

TESTING: {}
defined in index.d.ts:17:13

androidDynamicElevationOffsetProperty

androidDynamicElevationOffsetProperty: CssProperty<Style, number>

androidElevationProperty

autocapitalizationTypeProperty

autocorrectProperty

backgroundColorProperty

backgroundImageProperty

backgroundInternalProperty

backgroundPositionProperty

backgroundPositionProperty: CssProperty<Style, string>

backgroundProperty

backgroundRepeatProperty

backgroundSizeProperty

borderBottomColorProperty

borderBottomLeftRadiusProperty

borderBottomRightRadiusProperty

borderBottomWidthProperty

borderColorProperty

borderLeftColorProperty

borderLeftWidthProperty

borderRadiusProperty

borderRightColorProperty

borderRightWidthProperty

borderTopColorProperty

borderTopLeftRadiusProperty

borderTopRightRadiusProperty

borderTopWidthProperty

borderWidthProperty

clipPathProperty

editableProperty

fontFamilyProperty

fontInternalProperty

fontSizeProperty

horizontalAlignmentProperty

isAndroid

isAndroid: boolean

isIOS

isUserInteractionEnabledProperty

isUserInteractionEnabledProperty: Property<View, boolean>

letterSpacingProperty

letterSpacingProperty: CssProperty<Style, number>

lineHeightProperty

maxLengthProperty

paddingBottomProperty

paddingLeftProperty

paddingRightProperty

placeholderColorProperty

platformNames

platformNames: {
  android: string
}

textDecorationProperty

textShadowProperty

textShadowProperty: CssProperty<Style, CSSShadow>

textTransformProperty

unsetValue

updateTextTriggerProperty

verticalAlignmentProperty

whiteSpaceProperty

zIndexProperty

Functions

CSSType

CSSType(type: string): ClassDecorator
Parameter Default Description
type
string

Returns ClassDecorator

PseudoClassHandler

PseudoClassHandler(...pseudoClasses: string[]): MethodDecorator
Parameter Default Description
pseudoClasses
string[]

Returns MethodDecorator

_setResolver

_setResolver(resolver: ModuleNameResolver): any
Parameter Default Description
resolver

Returns any

_updateCharactersInRangeReplacementString

Private
_updateCharactersInRangeReplacementString(formattedText: FormattedString, rangeLocation: number, rangeLength: number, replacementString: string): void
Parameter Default Description
formattedText

rangeLocation
number

rangeLength
number

replacementString
string

Returns void

action

action(message: string, cancelButtonText: string, actions: string[]): Promise<string>
Parameter Default Description
message
string

cancelButtonText
string

actions
string[]

Returns Promise<string>
action(options: ActionOptions): Promise<string>
Parameter Default Description
options

Returns Promise<string>

addTaggedAdditionalCSS

addTaggedAdditionalCSS(cssText: string, tag?: string | Number): boolean
Parameter Default Description
cssText
string

tag
string | Number

Returns boolean

addWeakEventListener

addWeakEventListener(source: Observable, eventName: string, handler: (eventData: EventData) => void, target: any): void
Parameter Default Description
source

eventName
string

handler
(eventData: EventData) => void

target
any

Returns void

alert

alert(message: string | number | boolean): Promise<void>
Parameter Default Description
message
string | number | boolean

Returns Promise<void>
alert(options: AlertOptions): Promise<void>
Parameter Default Description
options

Returns Promise<void>

animationTimingFunctionConverter

animationTimingFunctionConverter(value: string): any
Parameter Default Description
value
string

Returns any

booleanConverter

booleanConverter(v: string): boolean
Parameter Default Description
v
string

Returns boolean

confirm

confirm(message: string): Promise<boolean>
Parameter Default Description
message
string

Returns Promise<boolean>
confirm(options: ConfirmOptions): Promise<boolean>
Parameter Default Description
options

Returns Promise<boolean>

eachDescendant

eachDescendant(view: ViewBase, callback: (child: ViewBase) => boolean): any
Parameter Default Description
view

callback
(child: ViewBase) => boolean

Returns any

fromObject

fromObject(obj: any): Observable
Parameter Default Description
obj
any

Returns Observable

fromObjectRecursive

fromObjectRecursive(obj: any): Observable
Parameter Default Description
obj
any

Returns Observable

getAncestor

getAncestor(view: ViewBase, criterion: string | Function): ViewBase
Parameter Default Description
view

criterion
string | Function

Returns ViewBase

getCurrentPage

getFileAccess

getFileAccess(): FileSystemAccess
Returns FileSystemAccess

getRootLayout

getTransformedText

getTransformedText(text: string, textTransform: TextTransformType): string
Parameter Default Description
text
string

textTransform

Returns string

getViewById

getViewById(view: ViewBase, id: string): ViewBase
Parameter Default Description
view

id
string

Returns ViewBase

login

login(message: string, userNameHint?: string, passwordHint?: string, userName?: string, password?: string): Promise<LoginResult>
Parameter Default Description
message
string

userNameHint
string

passwordHint
string

userName
string

password
string

Returns Promise<LoginResult>
login(message: string, userNameHint?: string, passwordHint?: string): Promise<LoginResult>
Parameter Default Description
message
string

userNameHint
string

passwordHint
string

Returns Promise<LoginResult>
login(options: LoginOptions): Promise<LoginResult>
Parameter Default Description
options

Returns Promise<LoginResult>

makeParser

makeParser<T>(isValid: (value: any) => boolean, allowNumbers?: boolean): (value: any) => T
Parameter Default Description
isValid
(value: any) => boolean

allowNumbers
boolean

Returns (value: any) => T

makeValidator

makeValidator<T>(...values: T[]): (value: any) => value is T
Parameter Default Description
values
T[]

Returns (value: any) => value is T

parseCSSShadow

parseCSSShadow(value: string): CSSShadow
Parameter Default Description
value
string

Returns CSSShadow

parseKeyframeDeclarations

parseKeyframeDeclarations(unparsedKeyframeDeclarations: KeyframeDeclaration[]): KeyframeDeclaration[]
Parameter Default Description
unparsedKeyframeDeclarations

profile

profile(name?: string): MethodDecorator
Parameter Default Description
name
string

Returns MethodDecorator
profile<F>(fn: F): F
Parameter Default Description
fn
F

Returns F
profile<F>(name: string, fn: F): F
Parameter Default Description
name
string

fn
F

Returns F
profile<T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void
Parameter Default Description
target
Object

propertyKey
string | symbol

descriptor
TypedPropertyDescriptor<T>

Returns TypedPropertyDescriptor<T> | void
profile(): any

profilingDisable

profilingDisable(): void

profilingDumpProfiles

profilingDumpProfiles(): void

profilingEnable

profilingEnable(type?: InstrumentationMode): void
Parameter Default Description
type

Returns void

profilingIsRunning

profilingIsRunning(name: string): boolean
Parameter Default Description
name
string

Returns boolean

profilingResetProfiles

profilingResetProfiles(): void

profilingStart

profilingStart(name: string): void
Parameter Default Description
name
string

Returns void

profilingStartCPU

profilingStartCPU(name: string): void
Parameter Default Description
name
string

Returns void

profilingStop

profilingStop(name: string): TimerInfo
Parameter Default Description
name
string

Returns TimerInfo

profilingStopCPU

profilingStopCPU(name: string): void
Parameter Default Description
name
string

Returns void

profilingTime

profilingTime(): number

profilingUptime

profilingUptime(): number

prompt

prompt(message: string, defaultText?: string): Promise<PromptResult>
Parameter Default Description
message
string

defaultText
string

Returns Promise<PromptResult>
prompt(options: PromptOptions): Promise<PromptResult>
Parameter Default Description
options

Returns Promise<PromptResult>

removeTaggedAdditionalCSS

removeTaggedAdditionalCSS(tag: String | Number): boolean
Parameter Default Description
tag
String | Number

Returns boolean

removeWeakEventListener

removeWeakEventListener(source: Observable, eventName: string, handler: (eventData: EventData) => void, target: any): void
Parameter Default Description
source

eventName
string

handler
(eventData: EventData) => void

target
any

Returns void

resolveFileNameFromUrl

resolveFileNameFromUrl(
  url: string,
  appDirectory: string,
  fileExists: (filepath: string) => boolean,
  importSource?: string
): string
Parameter Default Description
url
string

appDirectory
string

fileExists
(filepath: string) => boolean

importSource
string

Returns string

sanitizeModuleName

sanitizeModuleName(moduleName: string, removeExtension?: boolean): string
Parameter Default Description
moduleName
string

removeExtension
boolean

Returns string

setActivityCallbacks

setActivityCallbacks(activity: any): void
Parameter Default Description
activity
any

Returns void

timeConverter

timeConverter(value: string): number
Parameter Default Description
value
string

Returns number

transformConverter

transformConverter(text: string): TransformFunctionsInfo
Parameter Default Description
text
string

Returns TransformFunctionsInfo