# Java file 'nativescript-project/App_Resources/Android/src/main/java/com/company/OtherAwesomeClass.java' generated successfully.
```

1. You can also manually add native code to [App\_Resources](https://docs.nativescript.org/project-structure/app-resources):
   - [Adding Java/Kotlin code to an application](https://docs.nativescript.org/guide/native-code/android)
   - [Adding ObjectiveC/Swift Code to an application](https://docs.nativescript.org/guide/native-code/ios)
2. Optionally [generate TypeScript types for the added APIs](https://docs.nativescript.org/guide/native-code/generate-typings)

Additionally, NativeScript also supports Jetpack Compose and SwiftUI through plugins.

1. [Jetpack Compose Plugin](https://docs.nativescript.org/plugins/jetpack-compose)
   - [Jetpack Compose Introduction and example](https://dev.to/valorsoftware/introduction-to-jetpack-compose-for-nativescript-54d7)
2. [SwiftUI Plugin](https://docs.nativescript.org/plugins/swift-ui)
   - [SwiftUI Introduction and example](https://dev.to/valorsoftware/introduction-to-swiftui-for-nativescript-4m1b)


## Progress Component

Represents a progress component.

## Summary [​](https://docs.nativescript.org/api/class/Progress\#summary)

#### Constructors

[constructor](https://docs.nativescript.org/api/class/Progress#constructor)

#### Properties

[android](https://docs.nativescript.org/api/class/Progress#android)[ios](https://docs.nativescript.org/api/class/Progress#ios)[maxValue](https://docs.nativescript.org/api/class/Progress#maxvalue)[value](https://docs.nativescript.org/api/class/Progress#value)

## Constructors [​](https://docs.nativescript.org/api/class/Progress\#constructors)

### constructor [​](https://docs.nativescript.org/api/class/Progress\#constructor)

```
new Progress(): Progress
```

inherited from

defined in [@nativescript/core/ui/core/view-base/index.d.ts:263:4](https://unpkg.com/browse/@nativescript/core//ui/core/view-base/index.d.ts#L263)

Returns _[Progress](https://docs.nativescript.org/api/class/Progress)_

## Properties [​](https://docs.nativescript.org/api/class/Progress\#properties)

### android [​](https://docs.nativescript.org/api/class/Progress\#android)

```
android: any
```

defined in [@nativescript/core/ui/progress/index.d.ts:11:1](https://unpkg.com/browse/@nativescript/core//ui/progress/index.d.ts#L11)

Gets the native \[android widget\](http://developer.android.com/reference/android/widget/ProgressBar.html) that represents the user interface for this component. Valid only when running on Android OS.

### ios [​](https://docs.nativescript.org/api/class/Progress\#ios)

```
ios: any
```

defined in [@nativescript/core/ui/progress/index.d.ts:16:1](https://unpkg.com/browse/@nativescript/core//ui/progress/index.d.ts#L16)

Gets the native iOS \[UIProgressView\](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIProgressView\_Class/) that represents the user interface for this component. Valid only when running on iOS.

### maxValue [​](https://docs.nativescript.org/api/class/Progress\#maxvalue)

```
maxValue: number
```

defined in [@nativescript/core/ui/progress/index.d.ts:26:1](https://unpkg.com/browse/@nativescript/core//ui/progress/index.d.ts#L26)

Gets or sets a progress max value.

### value [​](https://docs.nativescript.org/api/class/Progress\#value)

```
value: number
```

defined in [@nativescript/core/ui/progress/index.d.ts:21:1](https://unpkg.com/browse/@nativescript/core//ui/progress/index.d.ts#L21)

Gets or sets a progress current value.

2. [Summary](https://docs.nativescript.org/api/class/Progress#summary)
3. [Constructors](https://docs.nativescript.org/api/class/Progress#constructors)
1. [constructor](https://docs.nativescript.org/api/class/Progress#constructor)
4. [Properties](https://docs.nativescript.org/api/class/Progress#properties)
1. [android](https://docs.nativescript.org/api/class/Progress#android)
2. [ios](https://docs.nativescript.org/api/class/Progress#ios)
3. [maxValue](https://docs.nativescript.org/api/class/Progress#maxvalue)
4. [value](https://docs.nativescript.org/api/class/Progress#value)


## NativeScript PageBase Class




[ContentView](https://docs.nativescript.org/api/class/ContentView)

PageBase

[Page](https://docs.nativescript.org/api/class/Page)

## Summary [​](https://docs.nativescript.org/api/class/PageBase\#summary)

#### Constructors

[constructor](https://docs.nativescript.org/api/class/PageBase#constructor)

#### Properties

[\_frame](https://docs.nativescript.org/api/class/PageBase#frame)[accessibilityAnnouncePageEnabled](https://docs.nativescript.org/api/class/PageBase#accessibilityannouncepageenabled)[actionBarHidden](https://docs.nativescript.org/api/class/PageBase#actionbarhidden)[backgroundSpanUnderStatusBar](https://docs.nativescript.org/api/class/PageBase#backgroundspanunderstatusbar)[enableSwipeBackNavigation](https://docs.nativescript.org/api/class/PageBase#enableswipebacknavigation)[hasActionBar](https://docs.nativescript.org/api/class/PageBase#hasactionbar)[navigatedFromEvent](https://docs.nativescript.org/api/class/PageBase#navigatedfromevent)[navigatedToEvent](https://docs.nativescript.org/api/class/PageBase#navigatedtoevent)[navigatingFromEvent](https://docs.nativescript.org/api/class/PageBase#navigatingfromevent)[navigatingToEvent](https://docs.nativescript.org/api/class/PageBase#navigatingtoevent)

155 properties inherited from ContentView

Click to expand

\_androidContentDescriptionUpdated\_automaticallyAdjustsScrollViewInsets\_closeModalCallback\_context\_cssState\_defaultPaddingBottom\_defaultPaddingLeft\_defaultPaddingRight\_defaultPaddingTop\_domId\_ignoreFlexMinWidthHeightReset\_isAddedToNativeVisualTree\_isLayoutValid\_isPaddingRelative\_isStyleScopeHost\_oldBottom\_oldLeft\_oldRight\_oldTop\_styleScope\_suspendNativeUpdatesCountaccessibilityBlurEventaccessibilityFocusChangedEventaccessibilityFocusEventaccessibilityHiddenaccessibilityHintaccessibilityIdentifieraccessibilityLabelaccessibilityLanguageaccessibilityLiveRegionaccessibilityMediaSessionaccessibilityPerformEscapeEventaccessibilityRoleaccessibilityStateaccessibilityValueaccessiblealignSelfandroidandroidDynamicElevationOffsetandroidElevationautomationTextbackgroundbackgroundColorbackgroundImagebindingContextborderBottomColorborderBottomLeftRadiusborderBottomRightRadiusborderBottomWidthborderColorborderLeftColorborderLeftWidthborderRadiusborderRightColorborderRightWidthborderTopColorborderTopLeftRadiusborderTopRightRadiusborderTopWidthborderWidthboxShadowclassNamecolcolorcolSpancolumncolumnSpancontentcreatedEventcssClassescssPseudoClassescssTypedisposeNativeViewEventdockdomNodeeffectiveBorderBottomWidtheffectiveBorderLeftWidtheffectiveBorderRightWidtheffectiveBorderTopWidtheffectiveHeighteffectiveLefteffectiveMarginBottomeffectiveMarginLefteffectiveMarginRighteffectiveMarginTopeffectiveMinHeighteffectiveMinWidtheffectivePaddingBottomeffectivePaddingLefteffectivePaddingRighteffectivePaddingTopeffectiveTopeffectiveWidthflexGrowflexShrinkflexWrapBeforeheighthorizontalAlignmentidignoreTouchAnimationiosiosAccessibilityAdjustsFontSizeiosAccessibilityMaxFontScaleiosAccessibilityMinFontScaleiosIgnoreSafeAreaiosOverflowSafeAreaiosOverflowSafeAreaEnabledisCollapsedisEnabledisLayoutValidisUserInteractionEnabledlayoutChangedEventleftloadedEventmarginmarginBottommarginLeftmarginRightmarginTopminHeightminWidthmodalnativeViewProtectedopacityorderoriginXoriginYparentperspectivepropertyChangeEventrecycleNativeViewreusablerotaterotateXrotateYrowrowSpanscaleXscaleYsharedTransitionIgnoresharedTransitionTagshowingModallyEventshownModallyEventtestIDtoptouchAnimationtouchDelaytransitionIdtranslateXtranslateYunloadedEventverticalAlignmentviewControllervisibilitywidth

#### Accessors

[\_childrenCount](https://docs.nativescript.org/api/class/PageBase#childrencount)[actionBar](https://docs.nativescript.org/api/class/PageBase#actionbar)[androidStatusBarBackground](https://docs.nativescript.org/api/class/PageBase#androidstatusbarbackground)[frame](https://docs.nativescript.org/api/class/PageBase#frame)[navigationContext](https://docs.nativescript.org/api/class/PageBase#navigationcontext)[page](https://docs.nativescript.org/api/class/PageBase#page)[statusBarStyle](https://docs.nativescript.org/api/class/PageBase#statusbarstyle)

10 accessors inherited from ContentView

Click to expand

backgroundPositionbackgroundRepeatbackgroundSizeclassisLoadednativeViewparentNodestyletextTransformtypeName

#### Methods

[\_addChildFromBuilder](https://docs.nativescript.org/api/class/PageBase#addchildfrombuilder)[accessibilityScreenChanged](https://docs.nativescript.org/api/class/PageBase#accessibilityscreenchanged)[eachChildView](https://docs.nativescript.org/api/class/PageBase#eachchildview)[getKeyframeAnimationWithName](https://docs.nativescript.org/api/class/PageBase#getkeyframeanimationwithname)[onNavigatedFrom](https://docs.nativescript.org/api/class/PageBase#onnavigatedfrom)[onNavigatedTo](https://docs.nativescript.org/api/class/PageBase#onnavigatedto)[onNavigatingFrom](https://docs.nativescript.org/api/class/PageBase#onnavigatingfrom)[onNavigatingTo](https://docs.nativescript.org/api/class/PageBase#onnavigatingto)

111 methods inherited from ContentView

Click to expand

\_addView\_addViewCore\_addViewToNativeVisualTree\_applyXmlAttribute\_batchUpdate\_childIndexToNativeChildIndex\_closeAllModalViewsInternal\_createPropertyChangeData\_dialogClosed\_eachLayoutView\_emit\_getNativeViewsCount\_getRootModalViews\_getValue\_handleLivesync\_hasAncestorView\_hideNativeModalView\_inheritStyleScope\_layoutParent\_observe\_onAttachedToWindow\_onDetachedFromWindow\_onRootViewReset\_onSizeChanged\_parentChanged\_raiseLayoutChangedEvent\_raiseShowingModallyEvent\_raiseShownModallyEvent\_removeView\_removeViewCore\_removeViewFromNativeVisualTree\_resumeNativeUpdates\_setupAsRootView\_setupUI\_setValue\_shouldDelayLayout\_showNativeModalView\_suspendNativeUpdates\_tearDownUI\_updateStyleScopeaccessibilityAnnouncementaddEventListeneraddEventListeneraddPseudoClassanimatebindcallLoadedcallUnloadedcloseModalcombineMeasuredStatescreateAnimationcreateNativeViewdeletePseudoClassdestroyNodedisposeNativeVieweachChildensureDomNodefocusgetgetActualSizegetGestureObserversgetLocationInWindowgetLocationOnScreengetLocationRelativeTogetMeasuredHeightgetMeasuredStategetMeasuredWidthgetSafeAreaInsetsgetViewByDomIdgetViewByIdhasGestureObservershasListenersinitNativeViewlayoutlayoutChildlayoutNativeViewlayoutViewloadViewmeasuremeasureChildnotifynotifyPropertyChangeoffoffonononBackPressedonceonceonLayoutonLoadedonMeasureonResumeNativeUpdatesonUnloadedremoveEventListenerremoveEventListenerrequestLayoutresetNativeViewresolveSizeAndStatesendAccessibilityEventsetsetInlineStylesetMeasuredDimensionsetNativeViewsetOnTouchListenersetPropertysetTestIDshowModaltoStringunbindunloadView

## Constructors [​](https://docs.nativescript.org/api/class/PageBase\#constructors)

### constructor [​](https://docs.nativescript.org/api/class/PageBase\#constructor)

```
new PageBase(): PageBase
```

inherited from

defined in [@nativescript/core/ui/core/view-base/index.d.ts:263:4](https://unpkg.com/browse/@nativescript/core//ui/core/view-base/index.d.ts#L263)

Returns _[PageBase](https://docs.nativescript.org/api/class/PageBase)_

## Properties [​](https://docs.nativescript.org/api/class/PageBase\#properties)

### \_frame [​](https://docs.nativescript.org/api/class/PageBase\#frame)

```
_frame: Frame
```

defined in [@nativescript/core/ui/page/page-common.d.ts:22:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L22)

### accessibilityAnnouncePageEnabled [​](https://docs.nativescript.org/api/class/PageBase\#accessibilityannouncepageenabled)

```
accessibilityAnnouncePageEnabled: boolean
```

defined in [@nativescript/core/ui/page/page-common.d.ts:27:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L27)

### actionBarHidden [​](https://docs.nativescript.org/api/class/PageBase\#actionbarhidden)

```
actionBarHidden: boolean
```

defined in [@nativescript/core/ui/page/page-common.d.ts:23:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L23)

### backgroundSpanUnderStatusBar [​](https://docs.nativescript.org/api/class/PageBase\#backgroundspanunderstatusbar)

```
backgroundSpanUnderStatusBar: boolean
```

defined in [@nativescript/core/ui/page/page-common.d.ts:25:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L25)

### enableSwipeBackNavigation [​](https://docs.nativescript.org/api/class/PageBase\#enableswipebacknavigation)

```
enableSwipeBackNavigation: boolean
```

defined in [@nativescript/core/ui/page/page-common.d.ts:24:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L24)

### hasActionBar [​](https://docs.nativescript.org/api/class/PageBase\#hasactionbar)

```
hasActionBar: boolean
```

defined in [@nativescript/core/ui/page/page-common.d.ts:26:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L26)

### navigatedFromEvent [​](https://docs.nativescript.org/api/class/PageBase\#navigatedfromevent)

Static

```
navigatedFromEvent: string
```

defined in [@nativescript/core/ui/page/page-common.d.ts:19:11](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L19)

### navigatedToEvent [​](https://docs.nativescript.org/api/class/PageBase\#navigatedtoevent)

Static

```
navigatedToEvent: string
```

defined in [@nativescript/core/ui/page/page-common.d.ts:17:11](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L17)

### navigatingFromEvent [​](https://docs.nativescript.org/api/class/PageBase\#navigatingfromevent)

Static

```
navigatingFromEvent: string
```

defined in [@nativescript/core/ui/page/page-common.d.ts:18:11](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L18)

### navigatingToEvent [​](https://docs.nativescript.org/api/class/PageBase\#navigatingtoevent)

Static

```
navigatingToEvent: string
```

defined in [@nativescript/core/ui/page/page-common.d.ts:16:11](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L16)

## Accessors [​](https://docs.nativescript.org/api/class/PageBase\#accessors)

### \_childrenCount [​](https://docs.nativescript.org/api/class/PageBase\#childrencount)

```
get _childrenCount(): number
```

defined in [@nativescript/core/ui/page/page-common.d.ts:45:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L45)

Returns _number_

### actionBar [​](https://docs.nativescript.org/api/class/PageBase\#actionbar)

```
get actionBar(): ActionBar
```

defined in [@nativescript/core/ui/page/page-common.d.ts:29:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L29)

Returns _[ActionBar](https://docs.nativescript.org/api/class/ActionBar)_

### androidStatusBarBackground [​](https://docs.nativescript.org/api/class/PageBase\#androidstatusbarbackground)

```
get androidStatusBarBackground(): Color
```

defined in [@nativescript/core/ui/page/page-common.d.ts:33:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L33)

Returns _[Color](https://docs.nativescript.org/api/class/Color)_

### frame [​](https://docs.nativescript.org/api/class/PageBase\#frame-1)

```
get frame(): Frame
```

defined in [@nativescript/core/ui/page/page-common.d.ts:38:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L38)

Returns _[Frame](https://docs.nativescript.org/api/class/Frame)_

### navigationContext [​](https://docs.nativescript.org/api/class/PageBase\#navigationcontext)

```
get navigationContext(): any
```

defined in [@nativescript/core/ui/page/page-common.d.ts:28:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L28)

Returns _any_

### page [​](https://docs.nativescript.org/api/class/PageBase\#page)

```
get page(): Page
```

defined in [@nativescript/core/ui/page/page-common.d.ts:35:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L35)

Returns _[Page](https://docs.nativescript.org/api/class/Page)_

### statusBarStyle [​](https://docs.nativescript.org/api/class/PageBase\#statusbarstyle)

```
get statusBarStyle(): "dark" | "light"
```

defined in [@nativescript/core/ui/page/page-common.d.ts:31:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L31)

Returns _"dark" \| "light"_

## Methods [​](https://docs.nativescript.org/api/class/PageBase\#methods)

### \_addChildFromBuilder [​](https://docs.nativescript.org/api/class/PageBase\#addchildfrombuilder)

```
_addChildFromBuilder(name: string, value: any): void
```

defined in [@nativescript/core/ui/page/page-common.d.ts:36:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L36)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `name` | `` | `string` |
| `value` | `` | `any` |

Returns _void_

### accessibilityScreenChanged [​](https://docs.nativescript.org/api/class/PageBase\#accessibilityscreenchanged)

```
accessibilityScreenChanged(refocus?: boolean): void
```

defined in [@nativescript/core/ui/page/page-common.d.ts:46:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L46)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `refocus` | `` | `boolean` |

Returns _void_

### eachChildView [​](https://docs.nativescript.org/api/class/PageBase\#eachchildview)

```
eachChildView(callback: (child: View) => boolean): void
```

defined in [@nativescript/core/ui/page/page-common.d.ts:44:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L44)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `callback` | `` | `(child: View) => boolean` |

Returns _void_

### getKeyframeAnimationWithName [​](https://docs.nativescript.org/api/class/PageBase\#getkeyframeanimationwithname)

```
getKeyframeAnimationWithName(animationName: string): KeyframeAnimationInfo
```

defined in [@nativescript/core/ui/page/page-common.d.ts:37:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L37)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `animationName` | `` | `string` |

Returns _[KeyframeAnimationInfo](https://docs.nativescript.org/api/class/KeyframeAnimationInfo)_

### onNavigatedFrom [​](https://docs.nativescript.org/api/class/PageBase\#onnavigatedfrom)

```
onNavigatedFrom(isBackNavigation: boolean): void
```

defined in [@nativescript/core/ui/page/page-common.d.ts:43:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L43)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `isBackNavigation` | `` | `boolean` |

Returns _void_

### onNavigatedTo [​](https://docs.nativescript.org/api/class/PageBase\#onnavigatedto)

```
onNavigatedTo(isBackNavigation: boolean): void
```

defined in [@nativescript/core/ui/page/page-common.d.ts:41:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L41)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `isBackNavigation` | `` | `boolean` |

Returns _void_

### onNavigatingFrom [​](https://docs.nativescript.org/api/class/PageBase\#onnavigatingfrom)

```
onNavigatingFrom(isBackNavigation: boolean): void
```

defined in [@nativescript/core/ui/page/page-common.d.ts:42:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L42)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `isBackNavigation` | `` | `boolean` |

Returns _void_

### onNavigatingTo [​](https://docs.nativescript.org/api/class/PageBase\#onnavigatingto)

```
onNavigatingTo(
  context: any,
  isBackNavigation: boolean,
  bindingContext?: any
): void
```

defined in [@nativescript/core/ui/page/page-common.d.ts:40:4](https://unpkg.com/browse/@nativescript/core//ui/page/page-common.d.ts#L40)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `context` | `` | `any` |
| `isBackNavigation` | `` | `boolean` |
| `bindingContext` | `` | `any` |

Returns _void_

2. [Summary](https://docs.nativescript.org/api/class/PageBase#summary)
3. [Constructors](https://docs.nativescript.org/api/class/PageBase#constructors)
1. [constructor](https://docs.nativescript.org/api/class/PageBase#constructor)
4. [Properties](https://docs.nativescript.org/api/class/PageBase#properties)
01. [\_frame](https://docs.nativescript.org/api/class/PageBase#frame)
02. [accessibilityAnnouncePageEnabled](https://docs.nativescript.org/api/class/PageBase#accessibilityannouncepageenabled)
03. [actionBarHidden](https://docs.nativescript.org/api/class/PageBase#actionbarhidden)
04. [backgroundSpanUnderStatusBar](https://docs.nativescript.org/api/class/PageBase#backgroundspanunderstatusbar)
05. [enableSwipeBackNavigation](https://docs.nativescript.org/api/class/PageBase#enableswipebacknavigation)
06. [hasActionBar](https://docs.nativescript.org/api/class/PageBase#hasactionbar)
07. [navigatedFromEvent](https://docs.nativescript.org/api/class/PageBase#navigatedfromevent)
08. [navigatedToEvent](https://docs.nativescript.org/api/class/PageBase#navigatedtoevent)
09. [navigatingFromEvent](https://docs.nativescript.org/api/class/PageBase#navigatingfromevent)
10. [navigatingToEvent](https://docs.nativescript.org/api/class/PageBase#navigatingtoevent)
5. [Accessors](https://docs.nativescript.org/api/class/PageBase#accessors)
1. [\_childrenCount](https://docs.nativescript.org/api/class/PageBase#childrencount)
2. [actionBar](https://docs.nativescript.org/api/class/PageBase#actionbar)
3. [androidStatusBarBackground](https://docs.nativescript.org/api/class/PageBase#androidstatusbarbackground)
4. [frame](https://docs.nativescript.org/api/class/PageBase#frame-1)
5. [navigationContext](https://docs.nativescript.org/api/class/PageBase#navigationcontext)
6. [page](https://docs.nativescript.org/api/class/PageBase#page)
7. [statusBarStyle](https://docs.nativescript.org/api/class/PageBase#statusbarstyle)
6. [Methods](https://docs.nativescript.org/api/class/PageBase#methods)
1. [\_addChildFromBuilder](https://docs.nativescript.org/api/class/PageBase#addchildfrombuilder)
2. [accessibilityScreenChanged](https://docs.nativescript.org/api/class/PageBase#accessibilityscreenchanged)
3. [eachChildView](https://docs.nativescript.org/api/class/PageBase#eachchildview)
4. [getKeyframeAnimationWithName](https://docs.nativescript.org/api/class/PageBase#getkeyframeanimationwithname)
5. [onNavigatedFrom](https://docs.nativescript.org/api/class/PageBase#onnavigatedfrom)
6. [onNavigatedTo](https://docs.nativescript.org/api/class/PageBase#onnavigatedto)
7. [onNavigatingFrom](https://docs.nativescript.org/api/class/PageBase#onnavigatingfrom)
8. [onNavigatingTo](https://docs.nativescript.org/api/class/PageBase#onnavigatingto)


## LayoutBase Class




[CustomLayoutView](https://docs.nativescript.org/api/class/CustomLayoutView)

LayoutBase

[ProxyViewContainer](https://docs.nativescript.org/api/class/ProxyViewContainer) [AbsoluteLayout](https://docs.nativescript.org/api/class/AbsoluteLayout) [DockLayout](https://docs.nativescript.org/api/class/DockLayout) [FlexboxLayout](https://docs.nativescript.org/api/class/FlexboxLayout) [GridLayout](https://docs.nativescript.org/api/class/GridLayout) [StackLayout](https://docs.nativescript.org/api/class/StackLayout) [WrapLayout](https://docs.nativescript.org/api/class/WrapLayout)

Base class for all views that supports children positioning.

## Summary [​](https://docs.nativescript.org/api/class/LayoutBase\#summary)

#### Constructors

[constructor](https://docs.nativescript.org/api/class/LayoutBase#constructor)

#### Properties

[clipToBounds](https://docs.nativescript.org/api/class/LayoutBase#cliptobounds)[isPassThroughParentEnabled](https://docs.nativescript.org/api/class/LayoutBase#ispassthroughparentenabled)[padding](https://docs.nativescript.org/api/class/LayoutBase#padding)[paddingBottom](https://docs.nativescript.org/api/class/LayoutBase#paddingbottom)[paddingLeft](https://docs.nativescript.org/api/class/LayoutBase#paddingleft)[paddingRight](https://docs.nativescript.org/api/class/LayoutBase#paddingright)[paddingTop](https://docs.nativescript.org/api/class/LayoutBase#paddingtop)

154 properties inherited from CustomLayoutView

Click to expand

\_androidContentDescriptionUpdated\_automaticallyAdjustsScrollViewInsets\_closeModalCallback\_context\_cssState\_defaultPaddingBottom\_defaultPaddingLeft\_defaultPaddingRight\_defaultPaddingTop\_domId\_ignoreFlexMinWidthHeightReset\_isAddedToNativeVisualTree\_isLayoutValid\_isPaddingRelative\_isStyleScopeHost\_oldBottom\_oldLeft\_oldRight\_oldTop\_styleScope\_suspendNativeUpdatesCountaccessibilityBlurEventaccessibilityFocusChangedEventaccessibilityFocusEventaccessibilityHiddenaccessibilityHintaccessibilityIdentifieraccessibilityLabelaccessibilityLanguageaccessibilityLiveRegionaccessibilityMediaSessionaccessibilityPerformEscapeEventaccessibilityRoleaccessibilityStateaccessibilityValueaccessiblealignSelfandroidandroidDynamicElevationOffsetandroidElevationautomationTextbackgroundbackgroundColorbackgroundImagebindingContextborderBottomColorborderBottomLeftRadiusborderBottomRightRadiusborderBottomWidthborderColorborderLeftColorborderLeftWidthborderRadiusborderRightColorborderRightWidthborderTopColorborderTopLeftRadiusborderTopRightRadiusborderTopWidthborderWidthboxShadowclassNamecolcolorcolSpancolumncolumnSpancreatedEventcssClassescssPseudoClassescssTypedisposeNativeViewEventdockdomNodeeffectiveBorderBottomWidtheffectiveBorderLeftWidtheffectiveBorderRightWidtheffectiveBorderTopWidtheffectiveHeighteffectiveLefteffectiveMarginBottomeffectiveMarginLefteffectiveMarginRighteffectiveMarginTopeffectiveMinHeighteffectiveMinWidtheffectivePaddingBottomeffectivePaddingLefteffectivePaddingRighteffectivePaddingTopeffectiveTopeffectiveWidthflexGrowflexShrinkflexWrapBeforeheighthorizontalAlignmentidignoreTouchAnimationiosiosAccessibilityAdjustsFontSizeiosAccessibilityMaxFontScaleiosAccessibilityMinFontScaleiosIgnoreSafeAreaiosOverflowSafeAreaiosOverflowSafeAreaEnabledisCollapsedisEnabledisLayoutValidisUserInteractionEnabledlayoutChangedEventleftloadedEventmarginmarginBottommarginLeftmarginRightmarginTopminHeightminWidthmodalnativeViewProtectedopacityorderoriginXoriginYparentperspectivepropertyChangeEventrecycleNativeViewreusablerotaterotateXrotateYrowrowSpanscaleXscaleYsharedTransitionIgnoresharedTransitionTagshowingModallyEventshownModallyEventtestIDtoptouchAnimationtouchDelaytransitionIdtranslateXtranslateYunloadedEventverticalAlignmentviewControllervisibilitywidth

#### Methods

[\_registerLayoutChild](https://docs.nativescript.org/api/class/LayoutBase#registerlayoutchild)[\_unregisterLayoutChild](https://docs.nativescript.org/api/class/LayoutBase#unregisterlayoutchild)[addChild](https://docs.nativescript.org/api/class/LayoutBase#addchild)[eachLayoutChild](https://docs.nativescript.org/api/class/LayoutBase#eachlayoutchild)[getChildAt](https://docs.nativescript.org/api/class/LayoutBase#getchildat)[getChildIndex](https://docs.nativescript.org/api/class/LayoutBase#getchildindex)[getChildrenCount](https://docs.nativescript.org/api/class/LayoutBase#getchildrencount)[insertChild](https://docs.nativescript.org/api/class/LayoutBase#insertchild)[removeChild](https://docs.nativescript.org/api/class/LayoutBase#removechild)[removeChildren](https://docs.nativescript.org/api/class/LayoutBase#removechildren)

112 methods inherited from CustomLayoutView

Click to expand

\_addView\_addViewCore\_addViewToNativeVisualTree\_applyXmlAttribute\_batchUpdate\_childIndexToNativeChildIndex\_closeAllModalViewsInternal\_createPropertyChangeData\_dialogClosed\_eachLayoutView\_emit\_getNativeViewsCount\_getRootModalViews\_getValue\_handleLivesync\_hasAncestorView\_hideNativeModalView\_inheritStyleScope\_layoutParent\_observe\_onAttachedToWindow\_onDetachedFromWindow\_onRootViewReset\_onSizeChanged\_parentChanged\_raiseLayoutChangedEvent\_raiseShowingModallyEvent\_raiseShownModallyEvent\_removeView\_removeViewCore\_removeViewFromNativeVisualTree\_resumeNativeUpdates\_setupAsRootView\_setupUI\_setValue\_shouldDelayLayout\_showNativeModalView\_suspendNativeUpdates\_tearDownUI\_updateStyleScopeaccessibilityAnnouncementaccessibilityScreenChangedaddEventListeneraddEventListeneraddPseudoClassanimatebindcallLoadedcallUnloadedcloseModalcombineMeasuredStatescreateAnimationcreateNativeViewdeletePseudoClassdestroyNodedisposeNativeVieweachChildeachChildViewensureDomNodefocusgetgetActualSizegetGestureObserversgetLocationInWindowgetLocationOnScreengetLocationRelativeTogetMeasuredHeightgetMeasuredStategetMeasuredWidthgetSafeAreaInsetsgetViewByDomIdgetViewByIdhasGestureObservershasListenersinitNativeViewlayoutlayoutChildlayoutNativeViewloadViewmeasuremeasureChildnotifynotifyPropertyChangeoffoffonononBackPressedonceonceonLayoutonLoadedonMeasureonResumeNativeUpdatesonUnloadedremoveEventListenerremoveEventListenerrequestLayoutresetNativeViewresolveSizeAndStatesendAccessibilityEventsetsetInlineStylesetMeasuredDimensionsetNativeViewsetOnTouchListenersetPropertysetTestIDshowModaltoStringunbindunloadView

## Constructors [​](https://docs.nativescript.org/api/class/LayoutBase\#constructors)

### constructor [​](https://docs.nativescript.org/api/class/LayoutBase\#constructor)

```
new LayoutBase(): LayoutBase
```

inherited from

defined in [@nativescript/core/ui/core/view-base/index.d.ts:263:4](https://unpkg.com/browse/@nativescript/core//ui/core/view-base/index.d.ts#L263)

Returns _[LayoutBase](https://docs.nativescript.org/api/class/LayoutBase)_

## Properties [​](https://docs.nativescript.org/api/class/LayoutBase\#properties)

### clipToBounds [​](https://docs.nativescript.org/api/class/LayoutBase\#cliptobounds)

```
clipToBounds: boolean
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:94:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L94)

Gets or sets a value indicating whether to clip the content of this layout.

### isPassThroughParentEnabled [​](https://docs.nativescript.org/api/class/LayoutBase\#ispassthroughparentenabled)

```
isPassThroughParentEnabled: boolean
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:101:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L101)

Gets or sets a value indicating whether touch event should pass through to a parent view of the
layout container in case an interactive child view did not handle it.
Default value of this property is false. This does not affect the appearance of the view.

### padding [​](https://docs.nativescript.org/api/class/LayoutBase\#padding)

```
padding: string | number | LengthDipUnit | LengthPxUnit
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:69:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L69)

Gets or sets padding style property.

### paddingBottom [​](https://docs.nativescript.org/api/class/LayoutBase\#paddingbottom)

```
paddingBottom: LengthType
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:74:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L74)

Specify the bottom padding of this layout.

### paddingLeft [​](https://docs.nativescript.org/api/class/LayoutBase\#paddingleft)

```
paddingLeft: LengthType
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:79:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L79)

Specify the left padding of this layout.

### paddingRight [​](https://docs.nativescript.org/api/class/LayoutBase\#paddingright)

```
paddingRight: LengthType
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:84:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L84)

Specify the right padding of this layout.

### paddingTop [​](https://docs.nativescript.org/api/class/LayoutBase\#paddingtop)

```
paddingTop: LengthType
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:89:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L89)

Specify the top padding of this layout.

## Methods [​](https://docs.nativescript.org/api/class/LayoutBase\#methods)

### \_registerLayoutChild [​](https://docs.nativescript.org/api/class/LayoutBase\#registerlayoutchild)

```
_registerLayoutChild(child: View): void
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:53:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L53)

INTERNAL. Used by the layout system.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `child` | `` | `View` |

Returns _void_

### \_unregisterLayoutChild [​](https://docs.nativescript.org/api/class/LayoutBase\#unregisterlayoutchild)

```
_unregisterLayoutChild(child: View): void
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:58:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L58)

INTERNAL. Used by the layout system.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `child` | `` | `View` |

Returns _void_

### addChild [​](https://docs.nativescript.org/api/class/LayoutBase\#addchild)

```
addChild(view: View): void
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:30:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L30)

Adds the view to children array.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `view` | `` | `View`<br>The view to be added to the end of the children array. |

Returns _void_

### eachLayoutChild [​](https://docs.nativescript.org/api/class/LayoutBase\#eachlayoutchild)

```
eachLayoutChild(callback: (child: View, isLast: boolean) => void): void
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:64:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L64)

Calls the callback for each child that should be laid out.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `callback` | `` | `(child: View, isLast: boolean) => void`<br>The callback |

Returns _void_

### getChildAt [​](https://docs.nativescript.org/api/class/LayoutBase\#getchildat)

```
getChildAt(index: number): View
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:18:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L18)

Returns the view at the specified position.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `index` | `` | `number`<br>The position at which to get the child from. |

Returns _[View](https://docs.nativescript.org/api/class/View)_

### getChildIndex [​](https://docs.nativescript.org/api/class/LayoutBase\#getchildindex)

```
getChildIndex(child: View): number
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:24:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L24)

Returns the position of the child view

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `child` | `` | `View`<br>The child view that we are looking for. |

Returns _number_

### getChildrenCount [​](https://docs.nativescript.org/api/class/LayoutBase\#getchildrencount)

```
getChildrenCount(): number
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:12:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L12)

Returns the number of children in this Layout.

Returns _number_

### insertChild [​](https://docs.nativescript.org/api/class/LayoutBase\#insertchild)

```
insertChild(child: View, atIndex: number): void
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:37:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L37)

Inserts the view to children array at the specified index.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `child` | `` | `View` |
| `atIndex` | `` | `number`<br>The insertion index. |

Returns _void_

### removeChild [​](https://docs.nativescript.org/api/class/LayoutBase\#removechild)

```
removeChild(view: View): void
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:43:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L43)

Removes the specified view from the children array.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `view` | `` | `View`<br>The view to remove from the children array. |

Returns _void_

### removeChildren [​](https://docs.nativescript.org/api/class/LayoutBase\#removechildren)

```
removeChildren(): void
```

defined in [@nativescript/core/ui/layouts/layout-base.d.ts:48:1](https://unpkg.com/browse/@nativescript/core//ui/layouts/layout-base.d.ts#L48)

Removes all views in this layout.

Returns _void_

2. [Summary](https://docs.nativescript.org/api/class/LayoutBase#summary)
3. [Constructors](https://docs.nativescript.org/api/class/LayoutBase#constructors)
1. [constructor](https://docs.nativescript.org/api/class/LayoutBase#constructor)
4. [Properties](https://docs.nativescript.org/api/class/LayoutBase#properties)
1. [clipToBounds](https://docs.nativescript.org/api/class/LayoutBase#cliptobounds)
2. [isPassThroughParentEnabled](https://docs.nativescript.org/api/class/LayoutBase#ispassthroughparentenabled)
3. [padding](https://docs.nativescript.org/api/class/LayoutBase#padding)
4. [paddingBottom](https://docs.nativescript.org/api/class/LayoutBase#paddingbottom)
5. [paddingLeft](https://docs.nativescript.org/api/class/LayoutBase#paddingleft)
6. [paddingRight](https://docs.nativescript.org/api/class/LayoutBase#paddingright)
7. [paddingTop](https://docs.nativescript.org/api/class/LayoutBase#paddingtop)
5. [Methods](https://docs.nativescript.org/api/class/LayoutBase#methods)
01. [\_registerLayoutChild](https://docs.nativescript.org/api/class/LayoutBase#registerlayoutchild)
02. [\_unregisterLayoutChild](https://docs.nativescript.org/api/class/LayoutBase#unregisterlayoutchild)
03. [addChild](https://docs.nativescript.org/api/class/LayoutBase#addchild)
04. [eachLayoutChild](https://docs.nativescript.org/api/class/LayoutBase#eachlayoutchild)
05. [getChildAt](https://docs.nativescript.org/api/class/LayoutBase#getchildat)
06. [getChildIndex](https://docs.nativescript.org/api/class/LayoutBase#getchildindex)
07. [getChildrenCount](https://docs.nativescript.org/api/class/LayoutBase#getchildrencount)
08. [insertChild](https://docs.nativescript.org/api/class/LayoutBase#insertchild)
09. [removeChild](https://docs.nativescript.org/api/class/LayoutBase#removechild)
10. [removeChildren](https://docs.nativescript.org/api/class/LayoutBase#removechildren)


## Inherited CSS Property




[CssProperty<T, U>](https://docs.nativescript.org/api/class/CssProperty)

InheritedCssProperty

## Summary [​](https://docs.nativescript.org/api/class/InheritedCssProperty\#summary)

#### Constructors

[constructor](https://docs.nativescript.org/api/class/InheritedCssProperty#constructor)

#### Properties

[setInheritedValue](https://docs.nativescript.org/api/class/InheritedCssProperty#setinheritedvalue)

13 properties inherited from CssProperty

Click to expand

cssLocalNamecssNamecssValueDescriptordefaultValuedefaultValueKeygetDefaultisStylePropertykeylocalValueDescriptornameoverrideHandlerssetNativesourceKey

## Constructors [​](https://docs.nativescript.org/api/class/InheritedCssProperty\#constructors)

### constructor [​](https://docs.nativescript.org/api/class/InheritedCssProperty\#constructor)

```
new InheritedCssProperty<T, U>(options: CssPropertyOptions<T, U>): InheritedCssProperty<T, U>
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:119:4](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L119)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `options` | `` | `CssPropertyOptions<T, U>` |

Returns _[InheritedCssProperty](https://docs.nativescript.org/api/class/InheritedCssProperty) <T, U>_

## Properties [​](https://docs.nativescript.org/api/class/InheritedCssProperty\#properties)

### setInheritedValue [​](https://docs.nativescript.org/api/class/InheritedCssProperty\#setinheritedvalue)

```
setInheritedValue: (value: U) => void
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:118:4](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L118)

2. [Summary](https://docs.nativescript.org/api/class/InheritedCssProperty#summary)
3. [Constructors](https://docs.nativescript.org/api/class/InheritedCssProperty#constructors)
1. [constructor](https://docs.nativescript.org/api/class/InheritedCssProperty#constructor)
4. [Properties](https://docs.nativescript.org/api/class/InheritedCssProperty#properties)
1. [setInheritedValue](https://docs.nativescript.org/api/class/InheritedCssProperty#setinheritedvalue)

## ContentView Class Overview




[CustomLayoutView](https://docs.nativescript.org/api/class/CustomLayoutView)

ContentView

[PageBase](https://docs.nativescript.org/api/class/PageBase) [ScrollView](https://docs.nativescript.org/api/class/ScrollView)

## Summary [​](https://docs.nativescript.org/api/class/ContentView\#summary)

#### Constructors

[constructor](https://docs.nativescript.org/api/class/ContentView#constructor)

#### Properties

[content](https://docs.nativescript.org/api/class/ContentView#content)

154 properties inherited from CustomLayoutView

Click to expand

\_androidContentDescriptionUpdated\_automaticallyAdjustsScrollViewInsets\_closeModalCallback\_context\_cssState\_defaultPaddingBottom\_defaultPaddingLeft\_defaultPaddingRight\_defaultPaddingTop\_domId\_ignoreFlexMinWidthHeightReset\_isAddedToNativeVisualTree\_isLayoutValid\_isPaddingRelative\_isStyleScopeHost\_oldBottom\_oldLeft\_oldRight\_oldTop\_styleScope\_suspendNativeUpdatesCountaccessibilityBlurEventaccessibilityFocusChangedEventaccessibilityFocusEventaccessibilityHiddenaccessibilityHintaccessibilityIdentifieraccessibilityLabelaccessibilityLanguageaccessibilityLiveRegionaccessibilityMediaSessionaccessibilityPerformEscapeEventaccessibilityRoleaccessibilityStateaccessibilityValueaccessiblealignSelfandroidandroidDynamicElevationOffsetandroidElevationautomationTextbackgroundbackgroundColorbackgroundImagebindingContextborderBottomColorborderBottomLeftRadiusborderBottomRightRadiusborderBottomWidthborderColorborderLeftColorborderLeftWidthborderRadiusborderRightColorborderRightWidthborderTopColorborderTopLeftRadiusborderTopRightRadiusborderTopWidthborderWidthboxShadowclassNamecolcolorcolSpancolumncolumnSpancreatedEventcssClassescssPseudoClassescssTypedisposeNativeViewEventdockdomNodeeffectiveBorderBottomWidtheffectiveBorderLeftWidtheffectiveBorderRightWidtheffectiveBorderTopWidtheffectiveHeighteffectiveLefteffectiveMarginBottomeffectiveMarginLefteffectiveMarginRighteffectiveMarginTopeffectiveMinHeighteffectiveMinWidtheffectivePaddingBottomeffectivePaddingLefteffectivePaddingRighteffectivePaddingTopeffectiveTopeffectiveWidthflexGrowflexShrinkflexWrapBeforeheighthorizontalAlignmentidignoreTouchAnimationiosiosAccessibilityAdjustsFontSizeiosAccessibilityMaxFontScaleiosAccessibilityMinFontScaleiosIgnoreSafeAreaiosOverflowSafeAreaiosOverflowSafeAreaEnabledisCollapsedisEnabledisLayoutValidisUserInteractionEnabledlayoutChangedEventleftloadedEventmarginmarginBottommarginLeftmarginRightmarginTopminHeightminWidthmodalnativeViewProtectedopacityorderoriginXoriginYparentperspectivepropertyChangeEventrecycleNativeViewreusablerotaterotateXrotateYrowrowSpanscaleXscaleYsharedTransitionIgnoresharedTransitionTagshowingModallyEventshownModallyEventtestIDtoptouchAnimationtouchDelaytransitionIdtranslateXtranslateYunloadedEventverticalAlignmentviewControllervisibilitywidth

#### Methods

[\_addChildFromBuilder](https://docs.nativescript.org/api/class/ContentView#addchildfrombuilder)[layoutView](https://docs.nativescript.org/api/class/ContentView#layoutview)

112 methods inherited from CustomLayoutView

Click to expand

\_addView\_addViewCore\_addViewToNativeVisualTree\_applyXmlAttribute\_batchUpdate\_childIndexToNativeChildIndex\_closeAllModalViewsInternal\_createPropertyChangeData\_dialogClosed\_eachLayoutView\_emit\_getNativeViewsCount\_getRootModalViews\_getValue\_handleLivesync\_hasAncestorView\_hideNativeModalView\_inheritStyleScope\_layoutParent\_observe\_onAttachedToWindow\_onDetachedFromWindow\_onRootViewReset\_onSizeChanged\_parentChanged\_raiseLayoutChangedEvent\_raiseShowingModallyEvent\_raiseShownModallyEvent\_removeView\_removeViewCore\_removeViewFromNativeVisualTree\_resumeNativeUpdates\_setupAsRootView\_setupUI\_setValue\_shouldDelayLayout\_showNativeModalView\_suspendNativeUpdates\_tearDownUI\_updateStyleScopeaccessibilityAnnouncementaccessibilityScreenChangedaddEventListeneraddEventListeneraddPseudoClassanimatebindcallLoadedcallUnloadedcloseModalcombineMeasuredStatescreateAnimationcreateNativeViewdeletePseudoClassdestroyNodedisposeNativeVieweachChildeachChildViewensureDomNodefocusgetgetActualSizegetGestureObserversgetLocationInWindowgetLocationOnScreengetLocationRelativeTogetMeasuredHeightgetMeasuredStategetMeasuredWidthgetSafeAreaInsetsgetViewByDomIdgetViewByIdhasGestureObservershasListenersinitNativeViewlayoutlayoutChildlayoutNativeViewloadViewmeasuremeasureChildnotifynotifyPropertyChangeoffoffonononBackPressedonceonceonLayoutonLoadedonMeasureonResumeNativeUpdatesonUnloadedremoveEventListenerremoveEventListenerrequestLayoutresetNativeViewresolveSizeAndStatesendAccessibilityEventsetsetInlineStylesetMeasuredDimensionsetNativeViewsetOnTouchListenersetPropertysetTestIDshowModaltoStringunbindunloadView

## Constructors [​](https://docs.nativescript.org/api/class/ContentView\#constructors)

### constructor [​](https://docs.nativescript.org/api/class/ContentView\#constructor)

```
new ContentView(): ContentView
```

inherited from

defined in [@nativescript/core/ui/core/view-base/index.d.ts:263:4](https://unpkg.com/browse/@nativescript/core//ui/core/view-base/index.d.ts#L263)

Returns _[ContentView](https://docs.nativescript.org/api/class/ContentView)_

## Properties [​](https://docs.nativescript.org/api/class/ContentView\#properties)

### content [​](https://docs.nativescript.org/api/class/ContentView\#content)

```
content: View
```

defined in [@nativescript/core/ui/content-view/index.d.ts:4:1](https://unpkg.com/browse/@nativescript/core//ui/content-view/index.d.ts#L4)

## Methods [​](https://docs.nativescript.org/api/class/ContentView\#methods)

### \_addChildFromBuilder [​](https://docs.nativescript.org/api/class/ContentView\#addchildfrombuilder)

```
_addChildFromBuilder(name: string, value: any): void
```

defined in [@nativescript/core/ui/content-view/index.d.ts:6:1](https://unpkg.com/browse/@nativescript/core//ui/content-view/index.d.ts#L6)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `name` | `` | `string` |
| `value` | `` | `any` |

Returns _void_

### layoutView [​](https://docs.nativescript.org/api/class/ContentView\#layoutview)

```
layoutView(): View
```

defined in [@nativescript/core/ui/content-view/index.d.ts:5:1](https://unpkg.com/browse/@nativescript/core//ui/content-view/index.d.ts#L5)

Returns _[View](https://docs.nativescript.org/api/class/View)_

2. [Summary](https://docs.nativescript.org/api/class/ContentView#summary)
3. [Constructors](https://docs.nativescript.org/api/class/ContentView#constructors)
1. [constructor](https://docs.nativescript.org/api/class/ContentView#constructor)
4. [Properties](https://docs.nativescript.org/api/class/ContentView#properties)
1. [content](https://docs.nativescript.org/api/class/ContentView#content)
5. [Methods](https://docs.nativescript.org/api/class/ContentView#methods)
1. [\_addChildFromBuilder](https://docs.nativescript.org/api/class/ContentView#addchildfrombuilder)
2. [layoutView](https://docs.nativescript.org/api/class/ContentView#layoutview)


## CssProperty Class Overview




CssProperty

[InheritedCssProperty](https://docs.nativescript.org/api/class/InheritedCssProperty)

## Summary [​](https://docs.nativescript.org/api/class/CssProperty\#summary)

#### Constructors

[constructor](https://docs.nativescript.org/api/class/CssProperty#constructor)

#### Properties

[cssLocalName](https://docs.nativescript.org/api/class/CssProperty#csslocalname)[cssName](https://docs.nativescript.org/api/class/CssProperty#cssname)[cssValueDescriptor](https://docs.nativescript.org/api/class/CssProperty#cssvaluedescriptor)[defaultValue](https://docs.nativescript.org/api/class/CssProperty#defaultvalue)[defaultValueKey](https://docs.nativescript.org/api/class/CssProperty#defaultvaluekey)[getDefault](https://docs.nativescript.org/api/class/CssProperty#getdefault)[isStyleProperty](https://docs.nativescript.org/api/class/CssProperty#isstyleproperty)[key](https://docs.nativescript.org/api/class/CssProperty#key)[localValueDescriptor](https://docs.nativescript.org/api/class/CssProperty#localvaluedescriptor)[name](https://docs.nativescript.org/api/class/CssProperty#name)[overrideHandlers](https://docs.nativescript.org/api/class/CssProperty#overridehandlers)[setNative](https://docs.nativescript.org/api/class/CssProperty#setnative)[sourceKey](https://docs.nativescript.org/api/class/CssProperty#sourcekey)

#### Methods

[isSet](https://docs.nativescript.org/api/class/CssProperty#isset)[register](https://docs.nativescript.org/api/class/CssProperty#register)

## Constructors [​](https://docs.nativescript.org/api/class/CssProperty\#constructors)

### constructor [​](https://docs.nativescript.org/api/class/CssProperty\#constructor)

```
new CssProperty<T, U>(options: CssPropertyOptions<T, U>): CssProperty<T, U>
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:88:4](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L88)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `options` | `` | `CssPropertyOptions<T, U>` |

Returns _[CssProperty](https://docs.nativescript.org/api/class/CssProperty) <T, U>_

## Properties [​](https://docs.nativescript.org/api/class/CssProperty\#properties)

### cssLocalName [​](https://docs.nativescript.org/api/class/CssProperty\#csslocalname)

Readonly

```
cssLocalName: string
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:77:13](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L77)

### cssName [​](https://docs.nativescript.org/api/class/CssProperty\#cssname)

Readonly

```
cssName: string
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:76:13](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L76)

### cssValueDescriptor [​](https://docs.nativescript.org/api/class/CssProperty\#cssvaluedescriptor)

ProtectedReadonly

```
cssValueDescriptor: PropertyDescriptor
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:78:23](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L78)

### defaultValue [​](https://docs.nativescript.org/api/class/CssProperty\#defaultvalue)

Readonly

```
defaultValue: U
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:86:13](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L86)

### defaultValueKey [​](https://docs.nativescript.org/api/class/CssProperty\#defaultvaluekey)

Readonly

```
defaultValueKey: symbol
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:85:13](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L85)

### getDefault [​](https://docs.nativescript.org/api/class/CssProperty\#getdefault)

Readonly

```
getDefault: symbol
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:82:13](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L82)

### isStyleProperty [​](https://docs.nativescript.org/api/class/CssProperty\#isstyleproperty)

```
isStyleProperty: boolean
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:80:4](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L80)

### key [​](https://docs.nativescript.org/api/class/CssProperty\#key)

Readonly

```
key: symbol
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:81:13](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L81)

### localValueDescriptor [​](https://docs.nativescript.org/api/class/CssProperty\#localvaluedescriptor)

ProtectedReadonly

```
localValueDescriptor: PropertyDescriptor
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:79:23](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L79)

### name [​](https://docs.nativescript.org/api/class/CssProperty\#name)

Readonly

```
name: string
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:75:13](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L75)

### overrideHandlers [​](https://docs.nativescript.org/api/class/CssProperty\#overridehandlers)

```
overrideHandlers: (options: CssPropertyOptions&lt;T, U&gt;) => void
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:87:4](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L87)

### setNative [​](https://docs.nativescript.org/api/class/CssProperty\#setnative)

Readonly

```
setNative: symbol
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:83:13](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L83)

### sourceKey [​](https://docs.nativescript.org/api/class/CssProperty\#sourcekey)

Readonly

```
sourceKey: symbol
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:84:13](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L84)

## Methods [​](https://docs.nativescript.org/api/class/CssProperty\#methods)

### isSet [​](https://docs.nativescript.org/api/class/CssProperty\#isset)

```
isSet(instance: T): boolean
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:92:4](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L92)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `instance` | `` | `T` |

Returns _boolean_

### register [​](https://docs.nativescript.org/api/class/CssProperty\#register)

```
register(cls: {}): void
```

defined in [@nativescript/core/ui/core/properties/index.d.ts:89:4](https://unpkg.com/browse/@nativescript/core//ui/core/properties/index.d.ts#L89)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `cls` | `` | `{}` |

Returns _void_

2. [Summary](https://docs.nativescript.org/api/class/CssProperty#summary)
3. [Constructors](https://docs.nativescript.org/api/class/CssProperty#constructors)
1. [constructor](https://docs.nativescript.org/api/class/CssProperty#constructor)
4. [Properties](https://docs.nativescript.org/api/class/CssProperty#properties)
01. [cssLocalName](https://docs.nativescript.org/api/class/CssProperty#csslocalname)
02. [cssName](https://docs.nativescript.org/api/class/CssProperty#cssname)
03. [cssValueDescriptor](https://docs.nativescript.org/api/class/CssProperty#cssvaluedescriptor)
04. [defaultValue](https://docs.nativescript.org/api/class/CssProperty#defaultvalue)
05. [defaultValueKey](https://docs.nativescript.org/api/class/CssProperty#defaultvaluekey)
06. [getDefault](https://docs.nativescript.org/api/class/CssProperty#getdefault)
07. [isStyleProperty](https://docs.nativescript.org/api/class/CssProperty#isstyleproperty)
08. [key](https://docs.nativescript.org/api/class/CssProperty#key)
09. [localValueDescriptor](https://docs.nativescript.org/api/class/CssProperty#localvaluedescriptor)
10. [name](https://docs.nativescript.org/api/class/CssProperty#name)
11. [overrideHandlers](https://docs.nativescript.org/api/class/CssProperty#overridehandlers)
12. [setNative](https://docs.nativescript.org/api/class/CssProperty#setnative)
13. [sourceKey](https://docs.nativescript.org/api/class/CssProperty#sourcekey)
5. [Methods](https://docs.nativescript.org/api/class/CssProperty#methods)
1. [isSet](https://docs.nativescript.org/api/class/CssProperty#isset)
2. [register](https://docs.nativescript.org/api/class/CssProperty#register)


## AndroidApplication Class




[ApplicationCommon](https://docs.nativescript.org/api/class/ApplicationCommon)

AndroidApplication

## Summary [​](https://docs.nativescript.org/api/class/AndroidApplication\#summary)

#### Properties

[activityBackPressedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitybackpressedevent)[activityBackPressedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitybackpressedevent-1)[activityCreatedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitycreatedevent)[activityCreatedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitycreatedevent-1)[activityDestroyedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitydestroyedevent)[activityDestroyedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitydestroyedevent-1)[activityNewIntentEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitynewintentevent)[activityNewIntentEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitynewintentevent-1)[activityPausedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitypausedevent)[activityPausedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitypausedevent-1)[activityRequestPermissionsEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityrequestpermissionsevent)[activityRequestPermissionsEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityrequestpermissionsevent-1)[activityResultEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityresultevent)[activityResultEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityresultevent-1)[activityResumedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityresumedevent)[activityResumedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityresumedevent-1)[activityStartedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitystartedevent)[activityStartedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitystartedevent-1)[activityStoppedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitystoppedevent)[activityStoppedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitystoppedevent-1)[saveActivityStateEvent](https://docs.nativescript.org/api/class/AndroidApplication#saveactivitystateevent)[saveActivityStateEvent](https://docs.nativescript.org/api/class/AndroidApplication#saveactivitystateevent-1)

28 properties inherited from [ApplicationCommon](https://docs.nativescript.org/api/class/ApplicationCommon)

Click to expand

[autoSystemAppearanceChanged](https://docs.nativescript.org/api/class/ApplicationCommon#autosystemappearancechanged)[backgroundEvent](https://docs.nativescript.org/api/class/ApplicationCommon#backgroundevent)[cssChangedEvent](https://docs.nativescript.org/api/class/ApplicationCommon#csschangedevent)[discardedErrorEvent](https://docs.nativescript.org/api/class/ApplicationCommon#discardederrorevent)[displayedEvent](https://docs.nativescript.org/api/class/ApplicationCommon#displayedevent)[exitEvent](https://docs.nativescript.org/api/class/ApplicationCommon#exitevent)[fontScaleChangedEvent](https://docs.nativescript.org/api/class/ApplicationCommon#fontscalechangedevent)[foregroundEvent](https://docs.nativescript.org/api/class/ApplicationCommon#foregroundevent)[hasListeners](https://docs.nativescript.org/api/class/ApplicationCommon#haslisteners)[hasListeners](https://docs.nativescript.org/api/class/ApplicationCommon#haslisteners-1)[launchEvent](https://docs.nativescript.org/api/class/ApplicationCommon#launchevent)[livesyncEvent](https://docs.nativescript.org/api/class/ApplicationCommon#livesyncevent)[loadAppCssEvent](https://docs.nativescript.org/api/class/ApplicationCommon#loadappcssevent)[lowMemoryEvent](https://docs.nativescript.org/api/class/ApplicationCommon#lowmemoryevent)[mainEntry](https://docs.nativescript.org/api/class/ApplicationCommon#mainentry)[notify](https://docs.nativescript.org/api/class/ApplicationCommon#notify)[notify](https://docs.nativescript.org/api/class/ApplicationCommon#notify-1)[off](https://docs.nativescript.org/api/class/ApplicationCommon#off)[off](https://docs.nativescript.org/api/class/ApplicationCommon#off-1)[on](https://docs.nativescript.org/api/class/ApplicationCommon#on-1)[once](https://docs.nativescript.org/api/class/ApplicationCommon#once)[once](https://docs.nativescript.org/api/class/ApplicationCommon#once-1)[orientationChangedEvent](https://docs.nativescript.org/api/class/ApplicationCommon#orientationchangedevent)[resumeEvent](https://docs.nativescript.org/api/class/ApplicationCommon#resumeevent)[started](https://docs.nativescript.org/api/class/ApplicationCommon#started)[suspendEvent](https://docs.nativescript.org/api/class/ApplicationCommon#suspendevent)[systemAppearanceChangedEvent](https://docs.nativescript.org/api/class/ApplicationCommon#systemappearancechangedevent)[uncaughtErrorEvent](https://docs.nativescript.org/api/class/ApplicationCommon#uncaughterrorevent)

#### Accessors

[backgrounded](https://docs.nativescript.org/api/class/AndroidApplication#backgrounded)[context](https://docs.nativescript.org/api/class/AndroidApplication#context)[foregroundActivity](https://docs.nativescript.org/api/class/AndroidApplication#foregroundactivity)[nativeApp](https://docs.nativescript.org/api/class/AndroidApplication#nativeapp)[packageName](https://docs.nativescript.org/api/class/AndroidApplication#packagename)[paused](https://docs.nativescript.org/api/class/AndroidApplication#paused)[startActivity](https://docs.nativescript.org/api/class/AndroidApplication#startactivity)

6 accessors inherited from [ApplicationCommon](https://docs.nativescript.org/api/class/ApplicationCommon)

Click to expand

androidAndroidApplicationinBackgroundiosiOSApplicationsuspended

#### Methods

[getNativeApplication](https://docs.nativescript.org/api/class/AndroidApplication#getnativeapplication)[getRegisteredBroadcastReceiver](https://docs.nativescript.org/api/class/AndroidApplication#getregisteredbroadcastreceiver)[on](https://docs.nativescript.org/api/class/AndroidApplication#on-1)[registerBroadcastReceiver](https://docs.nativescript.org/api/class/AndroidApplication#registerbroadcastreceiver)[unregisterBroadcastReceiver](https://docs.nativescript.org/api/class/AndroidApplication#unregisterbroadcastreceiver)

27 methods inherited from [ApplicationCommon](https://docs.nativescript.org/api/class/ApplicationCommon)

Click to expand

[addCss](https://docs.nativescript.org/api/class/ApplicationCommon#addcss)[applyCssClass](https://docs.nativescript.org/api/class/ApplicationCommon#applycssclass)[createRootView](https://docs.nativescript.org/api/class/ApplicationCommon#createrootview)[getCssFileName](https://docs.nativescript.org/api/class/ApplicationCommon#getcssfilename)[getMainEntry](https://docs.nativescript.org/api/class/ApplicationCommon#getmainentry)[getOrientation](https://docs.nativescript.org/api/class/ApplicationCommon#getorientation)[getResources](https://docs.nativescript.org/api/class/ApplicationCommon#getresources)[getRootView](https://docs.nativescript.org/api/class/ApplicationCommon#getrootview)[getSystemAppearance](https://docs.nativescript.org/api/class/ApplicationCommon#getsystemappearance)[hasLaunched](https://docs.nativescript.org/api/class/ApplicationCommon#haslaunched)[initRootView](https://docs.nativescript.org/api/class/ApplicationCommon#initrootview)[loadAppCss](https://docs.nativescript.org/api/class/ApplicationCommon#loadappcss)[notifyLaunch](https://docs.nativescript.org/api/class/ApplicationCommon#notifylaunch)[orientation](https://docs.nativescript.org/api/class/ApplicationCommon#orientation)[orientationChanged](https://docs.nativescript.org/api/class/ApplicationCommon#orientationchanged)[resetRootView](https://docs.nativescript.org/api/class/ApplicationCommon#resetrootview)[run](https://docs.nativescript.org/api/class/ApplicationCommon#run)[setAutoSystemAppearanceChanged](https://docs.nativescript.org/api/class/ApplicationCommon#setautosystemappearancechanged)[setCssFileName](https://docs.nativescript.org/api/class/ApplicationCommon#setcssfilename)[setInBackground](https://docs.nativescript.org/api/class/ApplicationCommon#setinbackground)[setMaxRefreshRate](https://docs.nativescript.org/api/class/ApplicationCommon#setmaxrefreshrate)[setOrientation](https://docs.nativescript.org/api/class/ApplicationCommon#setorientation)[setResources](https://docs.nativescript.org/api/class/ApplicationCommon#setresources)[setSuspended](https://docs.nativescript.org/api/class/ApplicationCommon#setsuspended)[setSystemAppearance](https://docs.nativescript.org/api/class/ApplicationCommon#setsystemappearance)[systemAppearance](https://docs.nativescript.org/api/class/ApplicationCommon#systemappearance)[systemAppearanceChanged](https://docs.nativescript.org/api/class/ApplicationCommon#systemappearancechanged)

## Properties [​](https://docs.nativescript.org/api/class/AndroidApplication\#properties)

### activityBackPressedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitybackpressedevent)

Readonly

```
activityBackPressedEvent: "activityBackPressed" = AndroidApplication.activityBackPressedEvent
```

defined in [@nativescript/core/application/application.d.ts:62:10](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L62)

### activityCreatedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitycreatedevent)

Readonly

```
activityCreatedEvent: "activityCreated" = AndroidApplication.activityCreatedEvent
```

defined in [@nativescript/core/application/application.d.ts:54:10](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L54)

### activityDestroyedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitydestroyedevent)

Readonly

```
activityDestroyedEvent: "activityDestroyed" = AndroidApplication.activityDestroyedEvent
```

defined in [@nativescript/core/application/application.d.ts:55:10](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L55)

### activityNewIntentEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitynewintentevent)

Readonly

```
activityNewIntentEvent: "activityNewIntent" = AndroidApplication.activityNewIntentEvent
```

defined in [@nativescript/core/application/application.d.ts:63:10](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L63)

### activityPausedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitypausedevent)

Readonly

```
activityPausedEvent: "activityPaused" = AndroidApplication.activityPausedEvent
```

defined in [@nativescript/core/application/application.d.ts:57:10](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L57)

### activityRequestPermissionsEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activityrequestpermissionsevent)

Readonly

```
activityRequestPermissionsEvent: "activityRequestPermissions" = AndroidApplication.activityRequestPermissionsEvent
```

defined in [@nativescript/core/application/application.d.ts:64:10](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L64)

### activityResultEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activityresultevent)

Readonly

```
activityResultEvent: "activityResult" = AndroidApplication.activityResultEvent
```

defined in [@nativescript/core/application/application.d.ts:61:10](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L61)

### activityResumedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activityresumedevent)

Readonly

```
activityResumedEvent: "activityResumed" = AndroidApplication.activityResumedEvent
```

defined in [@nativescript/core/application/application.d.ts:58:10](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L58)

### activityStartedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitystartedevent)

Readonly

```
activityStartedEvent: "activityStarted" = AndroidApplication.activityStartedEvent
```

defined in [@nativescript/core/application/application.d.ts:56:10](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L56)

### activityStoppedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitystoppedevent)

Readonly

```
activityStoppedEvent: "activityStopped" = AndroidApplication.activityStoppedEvent
```

defined in [@nativescript/core/application/application.d.ts:59:10](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L59)

### saveActivityStateEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#saveactivitystateevent)

Readonly

```
saveActivityStateEvent: "saveActivityState" = AndroidApplication.saveActivityStateEvent
```

defined in [@nativescript/core/application/application.d.ts:60:10](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L60)

### activityBackPressedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitybackpressedevent-1)

StaticReadonly

```
activityBackPressedEvent: "activityBackPressed" = 'activityBackPressed'
```

defined in [@nativescript/core/application/application.d.ts:44:17](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L44)

### activityCreatedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitycreatedevent-1)

StaticReadonly

```
activityCreatedEvent: "activityCreated" = 'activityCreated'
```

defined in [@nativescript/core/application/application.d.ts:12:17](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L12)

### activityDestroyedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitydestroyedevent-1)

StaticReadonly

```
activityDestroyedEvent: "activityDestroyed" = 'activityDestroyed'
```

defined in [@nativescript/core/application/application.d.ts:16:17](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L16)

### activityNewIntentEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitynewintentevent-1)

StaticReadonly

```
activityNewIntentEvent: "activityNewIntent" = 'activityNewIntent'
```

defined in [@nativescript/core/application/application.d.ts:48:17](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L48)

### activityPausedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitypausedevent-1)

StaticReadonly

```
activityPausedEvent: "activityPaused" = 'activityPaused'
```

defined in [@nativescript/core/application/application.d.ts:24:17](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L24)

### activityRequestPermissionsEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activityrequestpermissionsevent-1)

StaticReadonly

```
activityRequestPermissionsEvent: "activityRequestPermissions" = 'activityRequestPermissions'
```

defined in [@nativescript/core/application/application.d.ts:52:17](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L52)

### activityResultEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activityresultevent-1)

StaticReadonly

```
activityResultEvent: "activityResult" = 'activityResult'
```

defined in [@nativescript/core/application/application.d.ts:40:17](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L40)

### activityResumedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activityresumedevent-1)

StaticReadonly

```
activityResumedEvent: "activityResumed" = 'activityResumed'
```

defined in [@nativescript/core/application/application.d.ts:28:17](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L28)

### activityStartedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitystartedevent-1)

StaticReadonly

```
activityStartedEvent: "activityStarted" = 'activityStarted'
```

defined in [@nativescript/core/application/application.d.ts:20:17](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L20)

### activityStoppedEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#activitystoppedevent-1)

StaticReadonly

```
activityStoppedEvent: "activityStopped" = 'activityStopped'
```

defined in [@nativescript/core/application/application.d.ts:32:17](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L32)

### saveActivityStateEvent [​](https://docs.nativescript.org/api/class/AndroidApplication\#saveactivitystateevent-1)

StaticReadonly

```
saveActivityStateEvent: "saveActivityState" = 'saveActivityState'
```

defined in [@nativescript/core/application/application.d.ts:36:17](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L36)

## Accessors [​](https://docs.nativescript.org/api/class/AndroidApplication\#accessors)

### backgrounded [​](https://docs.nativescript.org/api/class/AndroidApplication\#backgrounded)

```
get backgrounded(): boolean
```

defined in [@nativescript/core/application/application.d.ts:103:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L103)

Returns _boolean_

### context [​](https://docs.nativescript.org/api/class/AndroidApplication\#context)

```
get context(): Context
```

defined in [@nativescript/core/application/application.d.ts:98:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L98)

Returns _Context_

### foregroundActivity [​](https://docs.nativescript.org/api/class/AndroidApplication\#foregroundactivity)

```
get foregroundActivity(): AppCompatActivity
```

defined in [@nativescript/core/application/application.d.ts:93:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L93)

The currently active (loaded) \[android Activity\](http://developer.android.com/reference/android/app/Activity.html).

This property is automatically updated upon Activity events.

Returns _AppCompatActivity_

### nativeApp [​](https://docs.nativescript.org/api/class/AndroidApplication\#nativeapp)

```
get nativeApp(): Application
```

defined in [@nativescript/core/application/application.d.ts:76:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L76)

The \[android Application\](http://developer.android.com/reference/android/app/Application.html) object instance provided to the init of the module.

Returns _Application_

### packageName [​](https://docs.nativescript.org/api/class/AndroidApplication\#packagename)

```
get packageName(): string
```

defined in [@nativescript/core/application/application.d.ts:81:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L81)

Returns _string_

### paused [​](https://docs.nativescript.org/api/class/AndroidApplication\#paused)

```
get paused(): boolean
```

defined in [@nativescript/core/application/application.d.ts:108:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L108)

Returns _boolean_

### startActivity [​](https://docs.nativescript.org/api/class/AndroidApplication\#startactivity)

```
get startActivity(): AppCompatActivity
```

defined in [@nativescript/core/application/application.d.ts:86:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L86)

The main (start) Activity for the application.

Returns _AppCompatActivity_

## Methods [​](https://docs.nativescript.org/api/class/AndroidApplication\#methods)

### getNativeApplication [​](https://docs.nativescript.org/api/class/AndroidApplication\#getnativeapplication)

```
getNativeApplication(): Application
```

defined in [@nativescript/core/application/application.d.ts:66:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L66)

Returns _Application_

### getRegisteredBroadcastReceiver [​](https://docs.nativescript.org/api/class/AndroidApplication\#getregisteredbroadcastreceiver)

```
getRegisteredBroadcastReceiver(intentFilter: string): BroadcastReceiver
```

defined in [@nativescript/core/application/application.d.ts:129:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L129)

Get a registered BroadcastReceiver, then you can get the result code of BroadcastReceiver in onReceiveCallback method.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `intentFilter` | `` | `string`<br>A string containing the intent filter. |

Returns _BroadcastReceiver_

### on [​](https://docs.nativescript.org/api/class/AndroidApplication\#on)

```
on(
  event: "activityCreated",
  callback: (args: AndroidActivityBundleEventData) => void,
  thisArg?: any
): void
```

defined in [@nativescript/core/application/application.d.ts:131:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L131)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `event` | `` | `"activityCreated"` |
| `callback` | `` | `(args: AndroidActivityBundleEventData) => void` |
| `thisArg` | `` | `any` |

Returns _void_

```
on(
  event: "activityDestroyed",
  callback: (args: AndroidActivityEventData) => void,
  thisArg?: any
): void
```

defined in [@nativescript/core/application/application.d.ts:132:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L132)

This event is raised when application css is changed.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `event` | `` | `"activityDestroyed"` |
| `callback` | `` | `(args: AndroidActivityEventData) => void` |
| `thisArg` | `` | `any` |

Returns _void_

```
on(
  event: "activityStarted",
  callback: (args: AndroidActivityEventData) => void,
  thisArg?: any
): void
```

defined in [@nativescript/core/application/application.d.ts:133:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L133)

Event raised then livesync operation is performed.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `event` | `` | `"activityStarted"` |
| `callback` | `` | `(args: AndroidActivityEventData) => void` |
| `thisArg` | `` | `any` |

Returns _void_

```
on(
  event: "activityPaused",
  callback: (args: AndroidActivityEventData) => void,
  thisArg?: any
): void
```

defined in [@nativescript/core/application/application.d.ts:134:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L134)

This event is raised when application css is changed.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `event` | `` | `"activityPaused"` |
| `callback` | `` | `(args: AndroidActivityEventData) => void` |
| `thisArg` | `` | `any` |

Returns _void_

```
on(
  event: "activityResumed",
  callback: (args: AndroidActivityEventData) => void,
  thisArg?: any
): void
```

defined in [@nativescript/core/application/application.d.ts:135:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L135)

This event is raised on application launchEvent.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `event` | `` | `"activityResumed"` |
| `callback` | `` | `(args: AndroidActivityEventData) => void` |
| `thisArg` | `` | `any` |

Returns _void_

```
on(
  event: "activityStopped",
  callback: (args: AndroidActivityEventData) => void,
  thisArg?: any
): void
```

defined in [@nativescript/core/application/application.d.ts:136:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L136)

This event is raised after the application has performed most of its startup actions.
Its intent is to be suitable for measuring app startup times.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `event` | `` | `"activityStopped"` |
| `callback` | `` | `(args: AndroidActivityEventData) => void` |
| `thisArg` | `` | `any` |

Returns _void_

```
on(
  event: "saveActivityState",
  callback: (args: AndroidActivityBundleEventData) => void,
  thisArg?: any
): void
```

defined in [@nativescript/core/application/application.d.ts:137:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L137)

This event is raised when the Application is suspended.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `event` | `` | `"saveActivityState"` |
| `callback` | `` | `(args: AndroidActivityBundleEventData) => void` |
| `thisArg` | `` | `any` |

Returns _void_

```
on(
  event: "activityResult",
  callback: (args: AndroidActivityResultEventData) => void,
  thisArg?: any
): void
```

defined in [@nativescript/core/application/application.d.ts:138:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L138)

This event is raised when the Application is resumed after it has been suspended.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `event` | `` | `"activityResult"` |
| `callback` | `` | `(args: AndroidActivityResultEventData) => void` |
| `thisArg` | `` | `any` |

Returns _void_

```
on(
  event: "activityBackPressed",
  callback: (args: AndroidActivityBackPressedEventData) => void,
  thisArg?: any
): void
```

defined in [@nativescript/core/application/application.d.ts:139:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L139)

This event is raised when the Application is about to exit.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `event` | `` | `"activityBackPressed"` |
| `callback` | `` | `(args: AndroidActivityBackPressedEventData) => void` |
| `thisArg` | `` | `any` |

Returns _void_

```
on(
  event: "activityNewIntent",
  callback: (args: AndroidActivityNewIntentEventData) => void,
  thisArg?: any
): void
```

defined in [@nativescript/core/application/application.d.ts:140:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L140)

This event is raised when there is low memory on the target device.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `event` | `` | `"activityNewIntent"` |
| `callback` | `` | `(args: AndroidActivityNewIntentEventData) => void` |
| `thisArg` | `` | `any` |

Returns _void_

```
on(
  event: "activityRequestPermissions",
  callback: (args: AndroidActivityRequestPermissionsEventData) => void,
  thisArg?: any
): void
```

defined in [@nativescript/core/application/application.d.ts:141:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L141)

This event is raised when an uncaught error occurs while the application is running.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `event` | `` | `"activityRequestPermissions"` |
| `callback` | `` | `(args: AndroidActivityRequestPermissionsEventData) => void` |
| `thisArg` | `` | `any` |

Returns _void_

### registerBroadcastReceiver [​](https://docs.nativescript.org/api/class/AndroidApplication\#registerbroadcastreceiver)

```
registerBroadcastReceiver(
  intentFilter: string,
  onReceiveCallback: (context: Context, intent: Intent) => void
): void
```

defined in [@nativescript/core/application/application.d.ts:116:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L116)

Register a BroadcastReceiver to be run in the main activity thread. The receiver will be called with any broadcast Intent that matches filter, in the main application thread.
For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#registerReceiver%28android.content.BroadcastReceiver,%20android.content.IntentFilter%29'

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `intentFilter` | `` | `string`<br>A string containing the intent filter. |
| `onReceiveCallback` | `` | `(context: Context, intent: Intent) => void`<br>A callback function that will be called each time the receiver receives a broadcast. |

Returns _void_

### unregisterBroadcastReceiver [​](https://docs.nativescript.org/api/class/AndroidApplication\#unregisterbroadcastreceiver)

```
unregisterBroadcastReceiver(intentFilter: string): void
```

defined in [@nativescript/core/application/application.d.ts:123:1](https://unpkg.com/browse/@nativescript/core//application/application.d.ts#L123)

Unregister a previously registered BroadcastReceiver.
For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#unregisterReceiver(android.content.BroadcastReceiver)'

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `intentFilter` | `` | `string`<br>A string containing the intent filter with which the receiver was originally registered. |

Returns _void_

2. [Summary](https://docs.nativescript.org/api/class/AndroidApplication#summary)
3. [Properties](https://docs.nativescript.org/api/class/AndroidApplication#properties)
01. [activityBackPressedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitybackpressedevent)
02. [activityCreatedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitycreatedevent)
03. [activityDestroyedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitydestroyedevent)
04. [activityNewIntentEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitynewintentevent)
05. [activityPausedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitypausedevent)
06. [activityRequestPermissionsEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityrequestpermissionsevent)
07. [activityResultEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityresultevent)
08. [activityResumedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityresumedevent)
09. [activityStartedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitystartedevent)
10. [activityStoppedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitystoppedevent)
11. [saveActivityStateEvent](https://docs.nativescript.org/api/class/AndroidApplication#saveactivitystateevent)
12. [activityBackPressedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitybackpressedevent-1)
13. [activityCreatedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitycreatedevent-1)
14. [activityDestroyedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitydestroyedevent-1)
15. [activityNewIntentEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitynewintentevent-1)
16. [activityPausedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitypausedevent-1)
17. [activityRequestPermissionsEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityrequestpermissionsevent-1)
18. [activityResultEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityresultevent-1)
19. [activityResumedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activityresumedevent-1)
20. [activityStartedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitystartedevent-1)
21. [activityStoppedEvent](https://docs.nativescript.org/api/class/AndroidApplication#activitystoppedevent-1)
22. [saveActivityStateEvent](https://docs.nativescript.org/api/class/AndroidApplication#saveactivitystateevent-1)
4. [Accessors](https://docs.nativescript.org/api/class/AndroidApplication#accessors)
1. [backgrounded](https://docs.nativescript.org/api/class/AndroidApplication#backgrounded)
2. [context](https://docs.nativescript.org/api/class/AndroidApplication#context)
3. [foregroundActivity](https://docs.nativescript.org/api/class/AndroidApplication#foregroundactivity)
4. [nativeApp](https://docs.nativescript.org/api/class/AndroidApplication#nativeapp)
5. [packageName](https://docs.nativescript.org/api/class/AndroidApplication#packagename)
6. [paused](https://docs.nativescript.org/api/class/AndroidApplication#paused)
7. [startActivity](https://docs.nativescript.org/api/class/AndroidApplication#startactivity)
5. [Methods](https://docs.nativescript.org/api/class/AndroidApplication#methods)
1. [getNativeApplication](https://docs.nativescript.org/api/class/AndroidApplication#getnativeapplication)
2. [getRegisteredBroadcastReceiver](https://docs.nativescript.org/api/class/AndroidApplication#getregisteredbroadcastreceiver)
3. [on](https://docs.nativescript.org/api/class/AndroidApplication#on)
4. [registerBroadcastReceiver](https://docs.nativescript.org/api/class/AndroidApplication#registerbroadcastreceiver)
5. [unregisterBroadcastReceiver](https://docs.nativescript.org/api/class/AndroidApplication#unregisterbroadcastreceiver)


## Image Asset Class




[Observable](https://docs.nativescript.org/api/class/Observable)

ImageAsset

Observable is used when you want to be notified when a change occurs. Use on/off methods to add/remove listener.
Please note that should you be using the `` `new Observable({})` `` constructor, it is \*\*obsolete\*\* since v3.0,
and you have to migrate to the "data/observable" `` `fromObject({})` `` or the `` `fromObjectRecursive({})` `` functions.

## Summary [​](https://docs.nativescript.org/api/class/ImageAsset\#summary)

#### Constructors

[constructor](https://docs.nativescript.org/api/class/ImageAsset#constructor)

#### Properties

[android](https://docs.nativescript.org/api/class/ImageAsset#android)[ios](https://docs.nativescript.org/api/class/ImageAsset#ios)[nativeImage](https://docs.nativescript.org/api/class/ImageAsset#nativeimage)[options](https://docs.nativescript.org/api/class/ImageAsset#options)

1 properties inherited from [Observable](https://docs.nativescript.org/api/class/Observable)

Click to expand

[propertyChangeEvent](https://docs.nativescript.org/api/class/Observable#propertychangeevent)

#### Methods

[getImageAsync](https://docs.nativescript.org/api/class/ImageAsset#getimageasync)

18 methods inherited from [Observable](https://docs.nativescript.org/api/class/Observable)

Click to expand

[\_createPropertyChangeData](https://docs.nativescript.org/api/class/Observable#createpropertychangedata)[\_emit](https://docs.nativescript.org/api/class/Observable#emit)[addEventListener](https://docs.nativescript.org/api/class/Observable#addeventlistener)[addEventListener](https://docs.nativescript.org/api/class/Observable#addeventlistener-2)[get](https://docs.nativescript.org/api/class/Observable#get)[hasListeners](https://docs.nativescript.org/api/class/Observable#haslisteners)[notify](https://docs.nativescript.org/api/class/Observable#notify)[notifyPropertyChange](https://docs.nativescript.org/api/class/Observable#notifypropertychange)[off](https://docs.nativescript.org/api/class/Observable#off)[off](https://docs.nativescript.org/api/class/Observable#off-2)[on](https://docs.nativescript.org/api/class/Observable#on)[on](https://docs.nativescript.org/api/class/Observable#on-2)[once](https://docs.nativescript.org/api/class/Observable#once)[once](https://docs.nativescript.org/api/class/Observable#once-2)[removeEventListener](https://docs.nativescript.org/api/class/Observable#removeeventlistener)[removeEventListener](https://docs.nativescript.org/api/class/Observable#removeeventlistener-2)[set](https://docs.nativescript.org/api/class/Observable#set)[setProperty](https://docs.nativescript.org/api/class/Observable#setproperty)

## Constructors [​](https://docs.nativescript.org/api/class/ImageAsset\#constructors)

### constructor [​](https://docs.nativescript.org/api/class/ImageAsset\#constructor)

```
new ImageAsset(asset: any): ImageAsset
```

defined in [@nativescript/core/image-asset/index.d.ts:4:1](https://unpkg.com/browse/@nativescript/core//image-asset/index.d.ts#L4)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `asset` | `` | `any` |

Returns _[ImageAsset](https://docs.nativescript.org/api/class/ImageAsset)_

## Properties [​](https://docs.nativescript.org/api/class/ImageAsset\#properties)

### android [​](https://docs.nativescript.org/api/class/ImageAsset\#android)

```
android: any
```

defined in [@nativescript/core/image-asset/index.d.ts:8:1](https://unpkg.com/browse/@nativescript/core//image-asset/index.d.ts#L8)

### ios [​](https://docs.nativescript.org/api/class/ImageAsset\#ios)

```
ios: any
```

defined in [@nativescript/core/image-asset/index.d.ts:6:1](https://unpkg.com/browse/@nativescript/core//image-asset/index.d.ts#L6)

### nativeImage [​](https://docs.nativescript.org/api/class/ImageAsset\#nativeimage)

```
nativeImage: any
```

defined in [@nativescript/core/image-asset/index.d.ts:7:1](https://unpkg.com/browse/@nativescript/core//image-asset/index.d.ts#L7)

### options [​](https://docs.nativescript.org/api/class/ImageAsset\#options)

```
options: ImageAssetOptions
```

defined in [@nativescript/core/image-asset/index.d.ts:9:1](https://unpkg.com/browse/@nativescript/core//image-asset/index.d.ts#L9)

## Methods [​](https://docs.nativescript.org/api/class/ImageAsset\#methods)

### getImageAsync [​](https://docs.nativescript.org/api/class/ImageAsset\#getimageasync)

```
getImageAsync(callback: (image: any, error: any) => void): any
```

defined in [@nativescript/core/image-asset/index.d.ts:5:1](https://unpkg.com/browse/@nativescript/core//image-asset/index.d.ts#L5)

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `callback` | `` | `(image: any, error: any) => void` |

Returns _any_

2. [Summary](https://docs.nativescript.org/api/class/ImageAsset#summary)
3. [Constructors](https://docs.nativescript.org/api/class/ImageAsset#constructors)
1. [constructor](https://docs.nativescript.org/api/class/ImageAsset#constructor)
4. [Properties](https://docs.nativescript.org/api/class/ImageAsset#properties)
1. [android](https://docs.nativescript.org/api/class/ImageAsset#android)
2. [ios](https://docs.nativescript.org/api/class/ImageAsset#ios)
3. [nativeImage](https://docs.nativescript.org/api/class/ImageAsset#nativeimage)
4. [options](https://docs.nativescript.org/api/class/ImageAsset#options)
5. [Methods](https://docs.nativescript.org/api/class/ImageAsset#methods)
1. [getImageAsync](https://docs.nativescript.org/api/class/ImageAsset#getimageasync)

## Shared Element Transitions




SharedTransition

Shared Element Transitions (preview)
Allows you to auto animate between shared elements on two different screesn to create smooth navigational experiences.
View components can define sharedTransitionTag="name" alone with a transition through this API.

## Summary [​](https://docs.nativescript.org/api/class/SharedTransition\#summary)

#### Constructors

[constructor](https://docs.nativescript.org/api/class/SharedTransition#constructor)

#### Properties

[DEBUG](https://docs.nativescript.org/api/class/SharedTransition#debug)[finishedEvent](https://docs.nativescript.org/api/class/SharedTransition#finishedevent)[inProgress](https://docs.nativescript.org/api/class/SharedTransition#inprogress)[interactiveCancelledEvent](https://docs.nativescript.org/api/class/SharedTransition#interactivecancelledevent)[interactiveUpdateEvent](https://docs.nativescript.org/api/class/SharedTransition#interactiveupdateevent)[startedEvent](https://docs.nativescript.org/api/class/SharedTransition#startedevent)

#### Methods

[custom](https://docs.nativescript.org/api/class/SharedTransition#custom)[events](https://docs.nativescript.org/api/class/SharedTransition#events)[finishState](https://docs.nativescript.org/api/class/SharedTransition#finishstate)[getSharedElements](https://docs.nativescript.org/api/class/SharedTransition#getsharedelements)[getState](https://docs.nativescript.org/api/class/SharedTransition#getstate)[notifyEvent](https://docs.nativescript.org/api/class/SharedTransition#notifyevent)[updateState](https://docs.nativescript.org/api/class/SharedTransition#updatestate)

## Constructors [​](https://docs.nativescript.org/api/class/SharedTransition\#constructors)

### constructor [​](https://docs.nativescript.org/api/class/SharedTransition\#constructor)

```
new SharedTransition(): SharedTransition
```

Returns _[SharedTransition](https://docs.nativescript.org/api/class/SharedTransition)_

## Properties [​](https://docs.nativescript.org/api/class/SharedTransition\#properties)

### DEBUG [​](https://docs.nativescript.org/api/class/SharedTransition\#debug)

Static

```
DEBUG: boolean
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:208:11](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L208)

Enable to see various console logging output of Shared Element Transition behavior.

### finishedEvent [​](https://docs.nativescript.org/api/class/SharedTransition\#finishedevent)

Static

```
finishedEvent: string
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:188:11](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L188)

When the transition finishes.

### inProgress [​](https://docs.nativescript.org/api/class/SharedTransition\#inprogress)

Static

```
inProgress: boolean
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:175:11](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L175)

Whether a transition is in progress or not.
Note: used internally however exposed in case custom state ordering is needed.
Updated when transitions start/end/cancel.

### interactiveCancelledEvent [​](https://docs.nativescript.org/api/class/SharedTransition\#interactivecancelledevent)

Static

```
interactiveCancelledEvent: string
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:192:11](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L192)

When the interactive transition cancels.

### interactiveUpdateEvent [​](https://docs.nativescript.org/api/class/SharedTransition\#interactiveupdateevent)

Static

```
interactiveUpdateEvent: string
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:196:11](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L196)

When the interactive transition updates with the percent value.

### startedEvent [​](https://docs.nativescript.org/api/class/SharedTransition\#startedevent)

Static

```
startedEvent: string
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:184:11](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L184)

When the transition starts.

## Methods [​](https://docs.nativescript.org/api/class/SharedTransition\#methods)

### custom [​](https://docs.nativescript.org/api/class/SharedTransition\#custom)

Static

```
custom(transition: Transition, options?: SharedTransitionConfig): {}
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:167:4](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L167)

Configure a custom transition with presentation/dismissal options.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `transition` | `` | `Transition`<br>The custom Transition instance. |
| `options` | `` | `SharedTransitionConfig` |

Returns _{}_

### events [​](https://docs.nativescript.org/api/class/SharedTransition\#events)

Static

```
events(): SharedTransitionObservable
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:180:4](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L180)

Listen to various shared element transition events.

Returns _SharedTransitionObservable_

### finishState [​](https://docs.nativescript.org/api/class/SharedTransition\#finishstate)

Static

```
finishState(id: number): void
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:224:4](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L224)

Finish transition state.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `id` | `` | `number`<br>Transition instance id |

Returns _void_

### getSharedElements [​](https://docs.nativescript.org/api/class/SharedTransition\#getsharedelements)

Static

```
getSharedElements(fromPage: ViewBase, toPage: ViewBase): {
presented: View[];
presenting: View[];
}
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:231:4](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L231)

Gather view collections based on sharedTransitionTag details.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `fromPage` | `` | `ViewBase`<br>Page moving away from |
| `toPage` | `` | `ViewBase`<br>Page moving to |

Returns _{_
_presented: [View](https://docs.nativescript.org/api/class/View)\[\];_
_presenting: [View](https://docs.nativescript.org/api/class/View)\[\];_
_}_

### getState [​](https://docs.nativescript.org/api/class/SharedTransition\#getstate)

Static

```
getState(id: number): SharedTransitionState
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:219:4](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L219)

Get current state for any transition.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `id` | `` | `number`<br>Transition instance id |

Returns _SharedTransitionState_

### notifyEvent [​](https://docs.nativescript.org/api/class/SharedTransition\#notifyevent)

Static

```
notifyEvent(eventName: string, data: SharedTransitionEventDataPayload): void
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:204:4](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L204)

Notify a Shared Transition event.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `eventName` | `` | `string`<br>Shared Transition event name |
| `data` | `` | `SharedTransitionEventDataPayload` |

Returns _void_

### updateState [​](https://docs.nativescript.org/api/class/SharedTransition\#updatestate)

Static

```
updateState(id: number, state: SharedTransitionState): void
```

defined in [@nativescript/core/ui/transition/shared-transition.d.ts:214:4](https://unpkg.com/browse/@nativescript/core//ui/transition/shared-transition.d.ts#L214)

Update transition state.

|     |     |     |
| --- | --- | --- |
| Parameter | Default | Description |
| `id` | `` | `number`<br>Transition instance id |
| `state` | `` | `SharedTransitionState`<br>SharedTransitionState |

Returns _void_

2. [Summary](https://docs.nativescript.org/api/class/SharedTransition#summary)
3. [Constructors](https://docs.nativescript.org/api/class/SharedTransition#constructors)
1. [constructor](https://docs.nativescript.org/api/class/SharedTransition#constructor)
4. [Properties](https://docs.nativescript.org/api/class/SharedTransition#properties)
1. [DEBUG](https://docs.nativescript.org/api/class/SharedTransition#debug)
2. [finishedEvent](https://docs.nativescript.org/api/class/SharedTransition#finishedevent)
3. [inProgress](https://docs.nativescript.org/api/class/SharedTransition#inprogress)
4. [interactiveCancelledEvent](https://docs.nativescript.org/api/class/SharedTransition#interactivecancelledevent)
5. [interactiveUpdateEvent](https://docs.nativescript.org/api/class/SharedTransition#interactiveupdateevent)
6. [startedEvent](https://docs.nativescript.org/api/class/SharedTransition#startedevent)
5. [Methods](https://docs.nativescript.org/api/class/SharedTransition#methods)
1. [custom](https://docs.nativescript.org/api/class/SharedTransition#custom)
2. [events](https://docs.nativescript.org/api/class/SharedTransition#events)
3. [finishState](https://docs.nativescript.org/api/class/SharedTransition#finishstate)
4. [getSharedElements](https://docs.nativescript.org/api/class/SharedTransition#getsharedelements)
5. [getState](https://docs.nativescript.org/api/class/SharedTransition#getstate)
6. [notifyEvent](https://docs.nativescript.org/api/class/SharedTransition#notifyevent)
7. [updateState](https://docs.nativescript.org/api/class/SharedTransition#updatestate)


## Keyframe Animation Info




KeyframeAnimationInfo

Defines animation options for the View.animate method.

## Summary [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#summary)

#### Constructors

[constructor](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#constructor)

#### Properties

[curve](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#curve)[delay](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#delay)[duration](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#duration)[isForwards](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#isforwards)[isReverse](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#isreverse)[iterations](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#iterations)[keyframes](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#keyframes)[name](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#name)

## Constructors [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#constructors)

### constructor [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#constructor)

```
new KeyframeAnimationInfo(): KeyframeAnimationInfo
```

Returns _[KeyframeAnimationInfo](https://docs.nativescript.org/api/class/KeyframeAnimationInfo)_

## Properties [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#properties)

### curve [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#curve)

```
curve?: any
```

defined in [@nativescript/core/ui/animation/keyframe-animation.d.ts:77:1](https://unpkg.com/browse/@nativescript/core//ui/animation/keyframe-animation.d.ts#L77)

An optional animation curve. Possible values are contained in the \[AnimationCurve enumeration\](../modules/\_ui\_enums\_.animationcurve.html).
Alternatively, you can pass an instance of type UIViewAnimationCurve for iOS or android.animation.TimeInterpolator for Android.

### delay [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#delay)

```
delay?: number
```

defined in [@nativescript/core/ui/animation/keyframe-animation.d.ts:64:1](https://unpkg.com/browse/@nativescript/core//ui/animation/keyframe-animation.d.ts#L64)

The amount of time, in milliseconds, to delay starting the animation.

### duration [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#duration)

```
duration?: number
```

defined in [@nativescript/core/ui/animation/keyframe-animation.d.ts:59:1](https://unpkg.com/browse/@nativescript/core//ui/animation/keyframe-animation.d.ts#L59)

The length of the animation in milliseconds. The default duration is 300 milliseconds.

### isForwards [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#isforwards)

```
isForwards: boolean
```

defined in [@nativescript/core/ui/animation/keyframe-animation.d.ts:82:1](https://unpkg.com/browse/@nativescript/core//ui/animation/keyframe-animation.d.ts#L82)

Determines whether the animation values will be applied on the animated object after the animation finishes.

### isReverse [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#isreverse)

```
isReverse?: boolean
```

defined in [@nativescript/core/ui/animation/keyframe-animation.d.ts:87:1](https://unpkg.com/browse/@nativescript/core//ui/animation/keyframe-animation.d.ts#L87)

If true the animation will be played backwards.

### iterations [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#iterations)

```
iterations?: number
```

defined in [@nativescript/core/ui/animation/keyframe-animation.d.ts:71:1](https://unpkg.com/browse/@nativescript/core//ui/animation/keyframe-animation.d.ts#L71)

Specifies how many times the animation should be played. Default is 1.
iOS animations support fractional iterations, i.e. 1.5.
To repeat an animation infinitely, use Number.POSITIVE\_INFINITY

### keyframes [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#keyframes)

```
keyframes: KeyframeInfo[]
```

defined in [@nativescript/core/ui/animation/keyframe-animation.d.ts:49:1](https://unpkg.com/browse/@nativescript/core//ui/animation/keyframe-animation.d.ts#L49)

Return animation keyframes.

### name [​](https://docs.nativescript.org/api/class/KeyframeAnimationInfo\#name)

```
name?: string
```

defined in [@nativescript/core/ui/animation/keyframe-animation.d.ts:54:1](https://unpkg.com/browse/@nativescript/core//ui/animation/keyframe-animation.d.ts#L54)

The animation name.

2. [Summary](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#summary)
3. [Constructors](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#constructors)
1. [constructor](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#constructor)
4. [Properties](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#properties)
1. [curve](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#curve)
2. [delay](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#delay)
3. [duration](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#duration)
4. [isForwards](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#isforwards)
5. [isReverse](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#isreverse)
6. [iterations](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#iterations)
7. [keyframes](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#keyframes)
8. [name](https://docs.nativescript.org/api/class/KeyframeAnimationInfo#name)