--- url: 'https://docs.nativescript.org/api.md' description: Complete API reference for @nativescript/core. --- ## Namespaces | Namespace | Description | | ------ | ------ | | [AccessibilityEvents](namespaces/AccessibilityEvents/index.md) | - | | [AndroidHelper](namespaces/AndroidHelper/index.md) | Various Android view helper methods | | [ApplicationSettings](namespaces/ApplicationSettings/index.md) | - | | [capitalizationType](namespaces/capitalizationType/index.md) | Defines the capitalization type for prompt dialog. | | [Connectivity](namespaces/Connectivity/index.md) | - | | [CoreTypes](namespaces/CoreTypes/index.md) | - | | [CSSUtils](namespaces/CSSUtils/index.md) | - | | [DialogStrings](namespaces/DialogStrings/index.md) | - | | [encoding](namespaces/encoding/index.md) | Defines the supported character encodings. | | [FixedLength](namespaces/FixedLength/index.md) | - | | [FontStyle](namespaces/FontStyle/index.md) | - | | [FontVariationSettings](namespaces/FontVariationSettings/index.md) | - | | [FontWeight](namespaces/FontWeight/index.md) | - | | [GridUnitType](namespaces/GridUnitType/index.md) | - | | [Http](namespaces/Http/index.md) | - | | [inputType](namespaces/inputType/index.md) | Defines the input type for prompt dialog. | | [IOSHelper](namespaces/IOSHelper/index.md) | Various iOS view helper methods | | [knownFolders](namespaces/knownFolders/index.md) | Provides access to the top-level Folders instances that are accessible from the application. Use these as entry points to access the FileSystem. | | [Length](namespaces/Length/index.md) | - | | [path](namespaces/path/index.md) | Enables path-specific operations like join, extension, etc. | | [PercentLength](namespaces/PercentLength/index.md) | - | | [Trace](namespaces/Trace/index.md) | - | | [Utils](namespaces/Utils/index.md) | - | ## Enumerations | Enumeration | Description | | ------ | ------ | | [AccessibilityLiveRegion](enumerations/AccessibilityLiveRegion.md) | - | | [AccessibilityRole](enumerations/AccessibilityRole.md) | - | | [AccessibilityState](enumerations/AccessibilityState.md) | - | | [AccessibilityTrait](enumerations/AccessibilityTrait.md) | - | | [AndroidDirectory](enumerations/AndroidDirectory.md) | - | | [CacheMode](enumerations/CacheMode.md) | - | | [FontScaleCategory](enumerations/FontScaleCategory.md) | - | | [GestureEvents](enumerations/GestureEvents.md) | - | | [GestureStateTypes](enumerations/GestureStateTypes.md) | - | | [GestureTypes](enumerations/GestureTypes.md) | - | | [HttpResponseEncoding](enumerations/HttpResponseEncoding.md) | - | | [ImageSymbolEffects](enumerations/ImageSymbolEffects.md) | - | | [NavigationType](enumerations/NavigationType.md) | - | | [SharedTransitionAnimationType](enumerations/SharedTransitionAnimationType.md) | - | | [SwipeDirection](enumerations/SwipeDirection.md) | - | | [TouchAction](enumerations/TouchAction.md) | - | | [WritingToolsAllowedInput](enumerations/WritingToolsAllowedInput.md) | (iOS Only) Allowed input for Apple Intelligence Writing Tools | | [WritingToolsBehavior](enumerations/WritingToolsBehavior.md) | (iOS Only) Behavior for Apple Intelligence Writing Tools | ## Classes | Class | Description | | ------ | ------ | | [AbsoluteLayout](classes/AbsoluteLayout.md) | A layout that lets you specify exact locations (left/top coordinates) of its children. | | [ActionBar](classes/ActionBar.md) | Provides an abstraction over the ActionBar (android) and NavigationBar (iOS). | | [ActionItem](classes/ActionItem.md) | Represents an action item in the action bar. | | [ActionItems](classes/ActionItems.md) | Represents a collection of ActionItems. | | [ActivityIndicator](classes/ActivityIndicator.md) | Represents a UI widget which displays a progress indicator hinting the user for some background operation running. | | [AndroidApplication](classes/AndroidApplication.md) | - | | [Animation](classes/Animation.md) | Defines a animation set. | | [ApplicationCommon](classes/ApplicationCommon.md) | - | | [Background](classes/Background.md) | - | | [Binding](classes/Binding.md) | - | | [Builder](classes/Builder.md) | - | | [Button](classes/Button.md) | Represents a standard Button widget. | | [ChangeType](classes/ChangeType.md) | - | | [CoercibleProperty](classes/CoercibleProperty.md) | - | | [Color](classes/Color.md) | Represents a color object. Stores all color components (alpha (opacity), red, green, blue) in a \[0..255] range. | | [ContainerView](classes/ContainerView.md) | Base class for all UI components that are containers. | | [ContentView](classes/ContentView.md) | - | | [ControlStateChangeListener](classes/ControlStateChangeListener.md) | An utility class used for supporting styling infrastructure. WARNING: This class is intended for IOS only. | | [CssAnimationParser](classes/CssAnimationParser.md) | - | | [CssAnimationProperty](classes/CssAnimationProperty.md) | - | | [CssProperty](classes/CssProperty.md) | - | | [CustomLayoutView](classes/CustomLayoutView.md) | Base class for all UI components that implement custom layouts. | | [DatePicker](classes/DatePicker.md) | Represents an date picker. | | [DockLayout](classes/DockLayout.md) | A Layout that arranges its children at its outer edges, and allows its last child to take up the remaining space. | | [EditableTextBase](classes/EditableTextBase.md) | Represents the base class for all editable text views. | | [FadeTransition](classes/FadeTransition.md) | - | | [File](classes/File.md) | Represents a File entity on the file system. | | [FileSystemEntity](classes/FileSystemEntity.md) | Represents a single entity on the file system. | | [FlexboxLayout](classes/FlexboxLayout.md) | - | | [Folder](classes/Folder.md) | Represents a Folder (directory) entity on the file system. | | [Font](classes/Font.md) | - | | [FormattedString](classes/FormattedString.md) | A class used to create a formatted (rich text) string. | | [Frame](classes/Frame.md) | Represents the logical View unit that is responsible for navigation within an application. Nested frames are supported, enabling hierarchical navigation scenarios. | | [GesturesObserver](classes/GesturesObserver.md) | Provides options for the GesturesObserver. | | [GridLayout](classes/GridLayout.md) | Defines a rectangular layout area that consists of columns and rows. | | [HtmlView](classes/HtmlView.md) | Represents a view with html content. Use this component instead WebView when you want to show just static HTML content. [iOS support](https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata) [android support](http://developer.android.com/reference/android/text/Html.html) | | [Image](classes/Image.md) | Represents a class that provides functionality for loading and streching image(s). | | [ImageAsset](classes/ImageAsset.md) | 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. | | [ImageCache](classes/ImageCache.md) | Represents a class that stores handles image download requests and caches the already downloaded images. | | [ImageSource](classes/ImageSource.md) | Encapsulates the common abstraction behind a platform specific object (typically a Bitmap) that is used as a source for images. | | [ImageSymbolEffect](classes/ImageSymbolEffect.md) | iOS only Symbol effects: https://developer.apple.com/documentation/symbols?language=objc | | [InheritedCssProperty](classes/InheritedCssProperty.md) | - | | [InheritedProperty](classes/InheritedProperty.md) | - | | [iOSApplication](classes/iOSApplication.md) | - | | [ItemSpec](classes/ItemSpec.md) | Defines row/column specific properties that apply to GridLayout elements. | | [KeyframeAnimation](classes/KeyframeAnimation.md) | - | | [KeyframeAnimationInfo](classes/KeyframeAnimationInfo.md) | - | | [KeyframeDeclaration](classes/KeyframeDeclaration.md) | - | | [KeyframeInfo](classes/KeyframeInfo.md) | - | | [Label](classes/Label.md) | Represents a text label. | | [LayoutBase](classes/LayoutBase.md) | Base class for all views that supports children positioning. | | [LinearGradient](classes/LinearGradient.md) | - | | [LiquidGlass](classes/LiquidGlass.md) | - | | [LiquidGlassContainer](classes/LiquidGlassContainer.md) | - | | [ListPicker](classes/ListPicker.md) | Represents an list picker. | | [ListView](classes/ListView.md) | Represents a view that shows items in a vertically scrolling list. | | [ModalTransition](classes/ModalTransition.md) | - | | [ModuleNameResolver](classes/ModuleNameResolver.md) | - | | [NavigationButton](classes/NavigationButton.md) | Represents the navigation (a.k.a. "back") button. | | [Observable](classes/Observable.md) | 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. | | [ObservableArray](classes/ObservableArray.md) | Advanced array like class used when you want to be notified when a change occurs. | | [Page](classes/Page.md) | Represents a logical unit for navigation (inside Frame). | | [PageBase](classes/PageBase.md) | - | | [PageTransition](classes/PageTransition.md) | - | | [ParserEvent](classes/ParserEvent.md) | Provides information for a parser event. | | [ParserEventType](classes/ParserEventType.md) | Specifies the type of parser event. | | [Placeholder](classes/Placeholder.md) | Represents a Placeholder, which is used to add a native view to the visual tree. | | [Progress](classes/Progress.md) | Represents a progress component. | | [Property](classes/Property.md) | - | | [ProxyViewContainer](classes/ProxyViewContainer.md) | Proxy view container that adds all its native children directly to the parent. To be used as a logical grouping container of views. | | [Repeater](classes/Repeater.md) | Represents a UI Repeater component. | | [RootLayout](classes/RootLayout.md) | - | | [Screen](classes/Screen.md) | An object describing general information about a display. | | [ScrollView](classes/ScrollView.md) | Represents a scrollable area that can have content that is larger than its bounds. | | [SearchBar](classes/SearchBar.md) | Represents a search bar component. | | [SegmentedBar](classes/SegmentedBar.md) | Represents a UI SegmentedBar component. | | [SegmentedBarItem](classes/SegmentedBarItem.md) | Represents a SegmentedBar item. | | [SharedTransition](classes/SharedTransition.md) | 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. | | [SharedTransitionHelper](classes/SharedTransitionHelper.md) | Platform helper to aid in creating your own custom Shared Element Transition classes. (iOS Only) | | [ShorthandProperty](classes/ShorthandProperty.md) | - | | [Slider](classes/Slider.md) | Represents a slider component. | | [SlideTransition](classes/SlideTransition.md) | - | | [Span](classes/Span.md) | A class used to create a single part of formatted string with a common text properties. | | [SplitView](classes/SplitView.md) | iOS UISplitViewController-backed container. On Android, acts as a simple container. | | [StackLayout](classes/StackLayout.md) | A Layout that arranges its children horizontally or vertically. The direction can be set by orientation property. | | [Style](classes/Style.md) | 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. | | [Switch](classes/Switch.md) | Represents a switch component. | | [TabView](classes/TabView.md) | Represents a tab view. | | [TabViewItem](classes/TabViewItem.md) | Represents a tab view entry. | | [TextBase](classes/TextBase.md) | - | | [TextField](classes/TextField.md) | Represents an editable text field. | | [TextView](classes/TextView.md) | Represents an editable multiline text view. | | [TimePicker](classes/TimePicker.md) | Represents an time picker. | | [TouchManager](classes/TouchManager.md) | Manage interactivity in your apps easily with TouchManager. Store reusable down/up animation settings for touches as well as optionally enable automatic tap (down/up) animations for your app. | | [Transition](classes/Transition.md) | - | | [View](classes/View.md) | This class is the base class for all UI components. A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within. | | [ViewBase](classes/ViewBase.md) | - | | [ViewHelper](classes/ViewHelper.md) | - | | [VirtualArray](classes/VirtualArray.md) | Advanced array like class that helps loading items on demand. | | [WebView](classes/WebView.md) | Represents a standard WebView widget. | | [WrapLayout](classes/WrapLayout.md) | WrapLayout position children in rows or columns depending on orientation property until space is filled and then wraps them on new row or column. | | [WrappedValue](classes/WrappedValue.md) | Helper class that is used to fire property change even when real object is the same. By default property change will not be fired for a same object. By wrapping object into a WrappedValue instance `same object restriction` will be passed. | | [XmlParser](classes/XmlParser.md) | A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14 | ## Interfaces | Interface | Description | | ------ | ------ | | [AccessibilityDecrementEventData](interfaces/AccessibilityDecrementEventData.md) | Base event data. | | [AccessibilityIncrementEventData](interfaces/AccessibilityIncrementEventData.md) | Base event data. | | [ActionOptions](interfaces/ActionOptions.md) | Provides options for the dialog. | | [AddArrayFromBuilder](interfaces/AddArrayFromBuilder.md) | Defines an interface for adding arrays declared in xml. | | [AddChildFromBuilder](interfaces/AddChildFromBuilder.md) | Defines an interface for adding a child element declared in xml. | | [AlertOptions](interfaces/AlertOptions.md) | Provides options for the alert. | | [AndroidActivityBackPressedEventData](interfaces/AndroidActivityBackPressedEventData.md) | Data for the Android activity back pressed event. | | [AndroidActivityBundleEventData](interfaces/AndroidActivityBundleEventData.md) | Data for the Android activity events with bundle. | | [AndroidActivityCallbacks](interfaces/AndroidActivityCallbacks.md) | - | | [AndroidActivityEventData](interfaces/AndroidActivityEventData.md) | Data for the Android activity events. | | [AndroidActivityNewIntentEventData](interfaces/AndroidActivityNewIntentEventData.md) | Data for the Android activity newIntent event. | | [AndroidActivityRequestPermissionsEventData](interfaces/AndroidActivityRequestPermissionsEventData.md) | Data for the Android activity onRequestPermissions callback | | [AndroidActivityResultEventData](interfaces/AndroidActivityResultEventData.md) | Data for the Android activity result event. | | [AndroidOverflowInsetData](interfaces/AndroidOverflowInsetData.md) | Defines the data for the androidOverflowInset event. | | [AnimationDefinition](interfaces/AnimationDefinition.md) | - | | [AnimationDefinitionInternal](interfaces/AnimationDefinitionInternal.md) | - | | [ApplicationEventData](interfaces/ApplicationEventData.md) | Event data containing information for the application events. | | [BackstackEntry](interfaces/BackstackEntry.md) | Represents an entry in the back stack of a Frame object. | | [BindingOptions](interfaces/BindingOptions.md) | The options object used in the Bindable.bind method. | | [Cancelable](interfaces/Cancelable.md) | - | | [CancelableOptions](interfaces/CancelableOptions.md) | Provides options for the dialog. | | [ChangedData](interfaces/ChangedData.md) | Event args for "changed" event. | | [CommonLayoutParams](interfaces/CommonLayoutParams.md) | - | | [ComponentModule](interfaces/ComponentModule.md) | - | | [ConfirmOptions](interfaces/ConfirmOptions.md) | Provides options for the confirm dialog. | | [CreateViewEventData](interfaces/CreateViewEventData.md) | Event data containing information for creating a native view that will be added to the visual tree. | | [CssChangedEventData](interfaces/CssChangedEventData.md) | Event data containing information about application css change. | | [DialogOptions](interfaces/DialogOptions.md) | Provides options for the dialog. | | [DiscardedErrorEventData](interfaces/DiscardedErrorEventData.md) | Event data containing information about discarded application errors. | | [DownloadedData](interfaces/DownloadedData.md) | Provides data for downloaded event. | | [DownloadError](interfaces/DownloadError.md) | Provides data for download error. | | [DownloadRequest](interfaces/DownloadRequest.md) | Represents a single download request. | | [EventData](interfaces/EventData.md) | Base event data. | | [EventDataValue](interfaces/EventDataValue.md) | Base event data. | | [FontScaleChangedEventData](interfaces/FontScaleChangedEventData.md) | Event data containing information for font scale changed event. | | [GestureEventData](interfaces/GestureEventData.md) | Base event data. | | [GestureEventDataWithState](interfaces/GestureEventDataWithState.md) | Base event data. | | [HttpContent](interfaces/HttpContent.md) | Encapsulates the content of an HttpResponse. | | [HttpRequestOptions](interfaces/HttpRequestOptions.md) | Provides options for the http requests. | | [HttpResponse](interfaces/HttpResponse.md) | Encapsulates HTTP-response information from an HTTP-request. | | [IDevice](interfaces/IDevice.md) | - | | [ImageAssetOptions](interfaces/ImageAssetOptions.md) | - | | [InitRootViewEventData](interfaces/InitRootViewEventData.md) | Event data containing information about root view application. | | [IOSView](interfaces/IOSView.md) | This class is the base class for all UI components. A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within. | | [ItemEventData](interfaces/ItemEventData.md) | Event data containing information for the index and the view associated to a list view item. | | [ItemsLoading](interfaces/ItemsLoading.md) | Event args for "itemsLoading" event. | | [ItemsSource](interfaces/ItemsSource.md) | - | | [KeyedTemplate](interfaces/KeyedTemplate.md) | Defines an interface for Template with a key. | | [LaunchEventData](interfaces/LaunchEventData.md) | Event data containing information for launch event. | | [LayoutDirectionChangedEventData](interfaces/LayoutDirectionChangedEventData.md) | Event data containing information for system layout direction changed event. | | [LoadAppCSSEventData](interfaces/LoadAppCSSEventData.md) | Event data containing information for the application events. | | [LoadEventData](interfaces/LoadEventData.md) | Event data containing information for the loading events of a WebView. | | [LoadOptions](interfaces/LoadOptions.md) | - | | [LoginOptions](interfaces/LoginOptions.md) | Provides options for the login dialog. | | [LoginResult](interfaces/LoginResult.md) | Provides result data from the login dialog. | | [NativeScriptConfig](interfaces/NativeScriptConfig.md) | IMPORTANT: this is not generated automatically due to this issue: https://github.com/microsoft/TypeScript/issues/36763 the reference path above will get rewritten and break on compilation unless kept here Once issue is resolve we can remove this index.d.ts from repo and go back to auto generation on tsc | | [NativeScriptError](interfaces/NativeScriptError.md) | An extended JavaScript Error which will have the nativeError property initialized in case the error is caused by executing platform-specific code. | | [NavigatedData](interfaces/NavigatedData.md) | Defines the data for the page navigation events. | | [NavigationContext](interfaces/NavigationContext.md) | Represents a context passed to navigation methods. | | [NavigationData](interfaces/NavigationData.md) | Base event data. | | [NavigationEntry](interfaces/NavigationEntry.md) | Represents an entry in passed to navigate method. | | [NavigationTransition](interfaces/NavigationTransition.md) | Represents an object specifying a page navigation transition. | | [OrientationChangedEventData](interfaces/OrientationChangedEventData.md) | Event data containing information for orientation changed event. | | [Pair](interfaces/Pair.md) | - | | [PanGestureEventData](interfaces/PanGestureEventData.md) | Base event data. | | [PinchGestureEventData](interfaces/PinchGestureEventData.md) | Base event data. | | [PlatformContext](interfaces/PlatformContext.md) | Used with qualifier matchers and module resolution | | [Point3D](interfaces/Point3D.md) | - | | [PromptOptions](interfaces/PromptOptions.md) | Provides options for the prompt dialog. | | [PromptResult](interfaces/PromptResult.md) | Provides result data from the prompt dialog. | | [PropertyAnimation](interfaces/PropertyAnimation.md) | - | | [PropertyAnimationInfo](interfaces/PropertyAnimationInfo.md) | - | | [PropertyChangeData](interfaces/PropertyChangeData.md) | Data for the "propertyChange" event. | | [RootLayoutOptions](interfaces/RootLayoutOptions.md) | - | | [RotationGestureEventData](interfaces/RotationGestureEventData.md) | Base event data. | | [SceneEventData](interfaces/SceneEventData.md) | iOS Event data containing information for scene lifecycle events (iOS 13+). | | [ScrollEventData](interfaces/ScrollEventData.md) | Base event data. | | [SearchEventData](interfaces/SearchEventData.md) | Event data containing information for the search text change event. | | [SelectedIndexChangedEventData](interfaces/SelectedIndexChangedEventData.md) | Defines the data for the SegmentedBar.selectedIndexChanged event. | | [ShadeCoverOptions](interfaces/ShadeCoverOptions.md) | - | | [ShadowCSSValues](interfaces/ShadowCSSValues.md) | - | | [SharedTransitionConfig](interfaces/SharedTransitionConfig.md) | - | | [ShowModalOptions](interfaces/ShowModalOptions.md) | - | | [ShownModallyData](interfaces/ShownModallyData.md) | Defines the data for the shownModally event. | | [Size](interfaces/Size.md) | The Size interface describes abstract dimensions in two dimensional space. It has two properties width and height, representing the width and height values of the size. | | [StrokeCSSValues](interfaces/StrokeCSSValues.md) | - | | [SwipeGestureEventData](interfaces/SwipeGestureEventData.md) | Base event data. | | [SystemAppearanceChangedEventData](interfaces/SystemAppearanceChangedEventData.md) | Event data containing information for system appearance changed event. | | [TapGestureEventData](interfaces/TapGestureEventData.md) | Base event data. | | [Template](interfaces/Template.md) | Defines an interface for a View factory function. Commonly used to specify the visualization of data objects. | | [TemplatedItemsView](interfaces/TemplatedItemsView.md) | - | | [TimerInfo](interfaces/TimerInfo.md) | Contains contains utility methods for profiling. All methods in this module are experimental and may be changed in a non-major version. | | [TouchGestureEventData](interfaces/TouchGestureEventData.md) | - | | [TraceErrorHandler](interfaces/TraceErrorHandler.md) | An interface used to for handling trace error | | [TraceEventListener](interfaces/TraceEventListener.md) | An interface used to trace information about specific event. | | [TraceWriter](interfaces/TraceWriter.md) | An interface used to define a writer used by trace to print (log). | | [UnhandledErrorEventData](interfaces/UnhandledErrorEventData.md) | Event data containing information about unhandled application errors. | | [ViewEntry](interfaces/ViewEntry.md) | Represents an entry to be used to create a view or load it form file | ## Type Aliases | Type Alias | Description | | ------ | ------ | | [AlignContent](type-aliases/AlignContent.md) | - | | [AlignItems](type-aliases/AlignItems.md) | - | | [AlignSelf](type-aliases/AlignSelf.md) | - | | [AnimationPromise](type-aliases/AnimationPromise.md) | - | | [~~dip~~](type-aliases/dip.md) | - | | [Flex](type-aliases/Flex.md) | - | | [FlexDirection](type-aliases/FlexDirection.md) | - | | [FlexFlow](type-aliases/FlexFlow.md) | - | | [FlexWrap](type-aliases/FlexWrap.md) | - | | [FontStyleType](type-aliases/FontStyleType.md) | - | | [FontVariationSettingsType](type-aliases/FontVariationSettingsType.md) | - | | [FontWeightType](type-aliases/FontWeightType.md) | - | | [GlassEffectConfig](type-aliases/GlassEffectConfig.md) | - | | [GlassEffectType](type-aliases/GlassEffectType.md) | - | | [GlassEffectVariant](type-aliases/GlassEffectVariant.md) | Glass effects | | [GridUnitType](type-aliases/GridUnitType.md) | - | | [Headers](type-aliases/Headers.md) | - | | [~~HorizontalAlignment~~](type-aliases/HorizontalAlignment.md) | - | | [InstrumentationMode](type-aliases/InstrumentationMode.md) | Profiling mode to use. - `counters` Accumulates method call counts and times until dumpProfiles is called and then prints aggregated statistic in the console. This is the default. - `timeline` Outputs method names along start/end timestamps in the console on the go. - `lifecycle` Outputs basic non-verbose times for startup, navigation, etc. | | [iosSymbolScaleType](type-aliases/iosSymbolScaleType.md) | iOS only SF Symbol scale | | [JustifyContent](type-aliases/JustifyContent.md) | - | | [~~LengthDipUnit~~](type-aliases/LengthDipUnit.md) | - | | [~~LengthPercentUnit~~](type-aliases/LengthPercentUnit.md) | - | | [~~LengthPxUnit~~](type-aliases/LengthPxUnit.md) | - | | [~~LengthType~~](type-aliases/LengthType.md) | - | | [ModuleListProvider](type-aliases/ModuleListProvider.md) | - | | [~~percent~~](type-aliases/percent.md) | - | | [~~PercentLengthType~~](type-aliases/PercentLengthType.md) | - | | [~~px~~](type-aliases/px.md) | - | | [SceneEventName](type-aliases/SceneEventName.md) | - | | [SharedTransitionTagProperties](type-aliases/SharedTransitionTagProperties.md) | Properties which can be set on individual Shared Elements | | [SplitBehavior](type-aliases/SplitBehavior.md) | - | | [SplitDisplayMode](type-aliases/SplitDisplayMode.md) | - | | [SplitRole](type-aliases/SplitRole.md) | - | | [SplitStyle](type-aliases/SplitStyle.md) | - | | [TouchAnimationOptions](type-aliases/TouchAnimationOptions.md) | - | | [Transformation](type-aliases/Transformation.md) | - | | [TransformationType](type-aliases/TransformationType.md) | - | | [TransformationValue](type-aliases/TransformationValue.md) | - | | [TransformFunctionsInfo](type-aliases/TransformFunctionsInfo.md) | - | | [~~VerticalAlignment~~](type-aliases/VerticalAlignment.md) | - | | [VisionHoverOptions](type-aliases/VisionHoverOptions.md) | - | | [WebViewNavigationType](type-aliases/WebViewNavigationType.md) | Represents navigation type | ## Variables | Variable | Description | | ------ | ------ | | [~~\_resetRootView~~](variables/resetRootView.md) | - | | [~~addCss~~](variables/addCss.md) | - | | [~~android~~](variables/android.md) | - | | [androidDynamicElevationOffsetProperty](variables/androidDynamicElevationOffsetProperty.md) | - | | [androidElevationProperty](variables/androidElevationProperty.md) | - | | [androidRegisterBroadcastReceiver](variables/androidRegisterBroadcastReceiver.md) | - | | [~~AnimationCurve~~](variables/AnimationCurve.md) | - | | [Application](variables/Application.md) | - | | [autocapitalizationTypeProperty](variables/autocapitalizationTypeProperty.md) | - | | [autocorrectProperty](variables/autocorrectProperty.md) | - | | [backgroundColorProperty](variables/backgroundColorProperty.md) | - | | [~~backgroundEvent~~](variables/backgroundEvent.md) | - | | [backgroundImageProperty](variables/backgroundImageProperty.md) | - | | [backgroundInternalProperty](variables/backgroundInternalProperty.md) | - | | [backgroundPositionProperty](variables/backgroundPositionProperty.md) | - | | [backgroundRepeatProperty](variables/backgroundRepeatProperty.md) | - | | [backgroundSizeProperty](variables/backgroundSizeProperty.md) | - | | [borderBottomColorProperty](variables/borderBottomColorProperty.md) | - | | [borderBottomLeftRadiusProperty](variables/borderBottomLeftRadiusProperty.md) | - | | [borderBottomRightRadiusProperty](variables/borderBottomRightRadiusProperty.md) | - | | [borderBottomWidthProperty](variables/borderBottomWidthProperty.md) | - | | [borderLeftColorProperty](variables/borderLeftColorProperty.md) | - | | [borderLeftWidthProperty](variables/borderLeftWidthProperty.md) | - | | [borderRightColorProperty](variables/borderRightColorProperty.md) | - | | [borderRightWidthProperty](variables/borderRightWidthProperty.md) | - | | [borderTopColorProperty](variables/borderTopColorProperty.md) | - | | [borderTopLeftRadiusProperty](variables/borderTopLeftRadiusProperty.md) | - | | [borderTopRightRadiusProperty](variables/borderTopRightRadiusProperty.md) | - | | [borderTopWidthProperty](variables/borderTopWidthProperty.md) | - | | [clipPathProperty](variables/clipPathProperty.md) | - | | [colorProperty](variables/colorProperty.md) | - | | [CSSHelper](variables/CSSHelper.md) | - | | [Device](variables/Device.md) | Gets the current device information. | | [Dialogs](variables/Dialogs.md) | Singular rollup for convenience of all dialog methods | | [directionProperty](variables/directionProperty.md) | - | | [~~discardedErrorEvent~~](variables/discardedErrorEvent.md) | - | | [~~displayedEvent~~](variables/displayedEvent.md) | - | | [editableProperty](variables/editableProperty.md) | - | | [~~Enums~~](variables/Enums.md) | - | | [~~exitEvent~~](variables/exitEvent.md) | - | | [fontFamilyProperty](variables/fontFamilyProperty.md) | - | | [fontInternalProperty](variables/fontInternalProperty.md) | - | | [~~fontScaleChangedEvent~~](variables/fontScaleChangedEvent.md) | - | | [fontScaleInternalProperty](variables/fontScaleInternalProperty.md) | - | | [fontSizeProperty](variables/fontSizeProperty.md) | - | | [fontStyleProperty](variables/fontStyleProperty.md) | - | | [fontVariationSettingsProperty](variables/fontVariationSettingsProperty.md) | - | | [fontWeightProperty](variables/fontWeightProperty.md) | - | | [~~foregroundEvent~~](variables/foregroundEvent.md) | - | | [~~getCssFileName~~](variables/getCssFileName.md) | - | | [~~getMainEntry~~](variables/getMainEntry.md) | - | | [~~getNativeApplication~~](variables/getNativeApplication.md) | - | | [~~getResources~~](variables/getResources.md) | - | | [~~getRootView~~](variables/getRootView.md) | - | | [~~hasLaunched~~](variables/hasLaunched.md) | - | | [~~hasListeners~~](variables/hasListeners.md) | - | | [heightProperty](variables/heightProperty.md) | - | | [hintProperty](variables/hintProperty.md) | - | | [horizontalAlignmentProperty](variables/horizontalAlignmentProperty.md) | - | | [~~inBackground~~](variables/inBackground.md) | - | | [~~ios~~](variables/ios.md) | - | | [isAndroid](variables/isAndroid.md) | Gets a value indicating if the app is running on the Android platform. | | [isApple](variables/isApple.md) | Gets a value indicating if the app is running on an Apple platform. | | [isIOS](variables/isIOS.md) | Gets a value indicating if the app is running on the iOS platform. | | [isUserInteractionEnabledProperty](variables/isUserInteractionEnabledProperty.md) | - | | [isVisionOS](variables/isVisionOS.md) | Gets a value indicating if the app is running on the iOS platform. | | [keyboardTypeProperty](variables/keyboardTypeProperty.md) | - | | [~~launchEvent~~](variables/launchEvent.md) | - | | [~~layoutDirection~~](variables/layoutDirection.md) | - | | [~~layoutDirectionChanged~~](variables/layoutDirectionChanged.md) | - | | [~~layoutDirectionChangedEvent~~](variables/layoutDirectionChangedEvent.md) | - | | [letterSpacingProperty](variables/letterSpacingProperty.md) | - | | [lineHeightProperty](variables/lineHeightProperty.md) | - | | [~~loadAppCss~~](variables/loadAppCss.md) | - | | [~~lowMemoryEvent~~](variables/lowMemoryEvent.md) | - | | [marginBottomProperty](variables/marginBottomProperty.md) | - | | [marginLeftProperty](variables/marginLeftProperty.md) | - | | [marginRightProperty](variables/marginRightProperty.md) | - | | [marginTopProperty](variables/marginTopProperty.md) | - | | [maxLengthProperty](variables/maxLengthProperty.md) | - | | [minHeightProperty](variables/minHeightProperty.md) | - | | [minWidthProperty](variables/minWidthProperty.md) | - | | [~~notify~~](variables/notify.md) | - | | [~~off~~](variables/off.md) | - | | [~~on~~](variables/on.md) | - | | [opacityProperty](variables/opacityProperty.md) | - | | [~~orientation~~](variables/orientation.md) | - | | [~~orientationChangedEvent~~](variables/orientationChangedEvent.md) | - | | [paddingBottomProperty](variables/paddingBottomProperty.md) | - | | [paddingInternalProperty](variables/paddingInternalProperty.md) | - | | [paddingLeftProperty](variables/paddingLeftProperty.md) | - | | [paddingRightProperty](variables/paddingRightProperty.md) | - | | [paddingTopProperty](variables/paddingTopProperty.md) | - | | [perspectiveProperty](variables/perspectiveProperty.md) | - | | [placeholderColorProperty](variables/placeholderColorProperty.md) | - | | [platformNames](variables/platformNames.md) | - | | [~~resetRootView~~](variables/resetRootView-1.md) | - | | [~~resumeEvent~~](variables/resumeEvent.md) | - | | [returnKeyTypeProperty](variables/returnKeyTypeProperty.md) | - | | [rotateProperty](variables/rotateProperty.md) | - | | [rotateXProperty](variables/rotateXProperty.md) | - | | [rotateYProperty](variables/rotateYProperty.md) | - | | [~~run~~](variables/run.md) | - | | [scaleXProperty](variables/scaleXProperty.md) | - | | [scaleYProperty](variables/scaleYProperty.md) | - | | [SceneEvents](variables/SceneEvents.md) | - | | [~~setAutoSystemAppearanceChanged~~](variables/setAutoSystemAppearanceChanged.md) | - | | [~~setCssFileName~~](variables/setCssFileName.md) | - | | [~~setMaxRefreshRate~~](variables/setMaxRefreshRate.md) | - | | [~~setResources~~](variables/setResources.md) | - | | [~~suspended~~](variables/suspended.md) | - | | [~~suspendEvent~~](variables/suspendEvent.md) | - | | [~~systemAppearance~~](variables/systemAppearance.md) | - | | [~~systemAppearanceChanged~~](variables/systemAppearanceChanged.md) | - | | [~~systemAppearanceChangedEvent~~](variables/systemAppearanceChangedEvent.md) | - | | [textAlignmentProperty](variables/textAlignmentProperty.md) | - | | [textDecorationProperty](variables/textDecorationProperty.md) | - | | [textOverflowProperty](variables/textOverflowProperty.md) | - | | [textShadowProperty](variables/textShadowProperty.md) | - | | [textStrokeProperty](variables/textStrokeProperty.md) | - | | [textTransformProperty](variables/textTransformProperty.md) | - | | [translateXProperty](variables/translateXProperty.md) | - | | [translateYProperty](variables/translateYProperty.md) | - | | [~~uncaughtErrorEvent~~](variables/uncaughtErrorEvent.md) | - | | [unsetValue](variables/unsetValue.md) | Value specifying that Property should be set to its initial value. | | [updateTextTriggerProperty](variables/updateTextTriggerProperty.md) | - | | [VALID\_FONT\_SCALES](variables/VALID_FONT_SCALES.md) | - | | [verticalAlignmentProperty](variables/verticalAlignmentProperty.md) | - | | [visibilityProperty](variables/visibilityProperty.md) | - | | [whiteSpaceProperty](variables/whiteSpaceProperty.md) | - | | [widthProperty](variables/widthProperty.md) | - | | [zIndexProperty](variables/zIndexProperty.md) | - | ## Functions | Function | Description | | ------ | ------ | | [\_resolveAnimationCurve](functions/resolveAnimationCurve.md) | - | | [\_setResolver](functions/setResolver.md) | Used to set a global singular instance of ModuleNameResolver | | [action](functions/action.md) | The action() method displays a action box that prompts the visitor to choose some action. | | [addTaggedAdditionalCSS](functions/addTaggedAdditionalCSS.md) | - | | [addWeakEventListener](functions/addWeakEventListener.md) | Attaches a WeakEventListener. | | [alert](functions/alert.md) | The alert() method displays an alert box with a specified message. | | [animationTimingFunctionConverter](functions/animationTimingFunctionConverter.md) | - | | [booleanConverter](functions/booleanConverter.md) | - | | [confirm](functions/confirm.md) | The confirm() method displays a dialog box with a specified message. | | [CSSType](functions/CSSType.md) | Specifies the type name for the instances of this View class, that is used when matching CSS type selectors. | | [eachDescendant](functions/eachDescendant.md) | Iterates through all child views (via visual tree) and executes a function. | | [fromObject](functions/fromObject.md) | Creates an Observable instance and sets its properties according to the supplied JavaScript object. param obj - A JavaScript object used to initialize nativescript Observable instance. | | [fromObjectRecursive](functions/fromObjectRecursive.md) | Creates an Observable instance and sets its properties according to the supplied JavaScript object. This function will create new Observable for each nested object (expect arrays and functions) from supplied JavaScript object. param obj - A JavaScript object used to initialize nativescript Observable instance. | | [getAncestor](functions/getAncestor.md) | Gets an ancestor from a given type. | | [getAndroidAccessibilityManager](functions/getAndroidAccessibilityManager.md) | - | | [getCurrentFontScale](functions/getCurrentFontScale.md) | - | | [getCurrentPage](functions/getCurrentPage.md) | - | | [getFileAccess](functions/getFileAccess.md) | Returns FileSystemAccess, a shared singleton utility class to provide methods to access and work with the file system. This is used under the hood of all the file system apis in @nativescript/core and provided as a lower level convenience if needed. | | [getLastFocusedViewOnPage](functions/getLastFocusedViewOnPage.md) | Find the last view focused on a page. | | [getNativeApp](functions/getNativeApp.md) | Get the current application instance. | | [getRootLayout](functions/getRootLayout.md) | - | | [getRootLayoutById](functions/getRootLayoutById.md) | - | | [getTransformedText](functions/getTransformedText.md) | - | | [getViewById](functions/getViewById.md) | Gets a child view by id. | | [initializeSdkVersionClass](functions/initializeSdkVersionClass.md) | - | | [isAccessibilityServiceEnabled](functions/isAccessibilityServiceEnabled.md) | Is Android TalkBack or iOS VoiceOver enabled? | | [isEmbedded](functions/isEmbedded.md) | Whether the app is embedded into a host project or standalone project | | [login](functions/login.md) | The login() method displays a login dialog box that prompts the visitor for user name and password. | | [makeParser](functions/makeParser.md) | - | | [makeValidator](functions/makeValidator.md) | - | | [parseCSSShadow](functions/parseCSSShadow.md) | Parse a string into ShadowCSSValues Supports any valid css box/text shadow combination. | | [parseCSSStroke](functions/parseCSSStroke.md) | Parse a string into StrokeCSSValues https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-stroke | | [parseKeyframeDeclarations](functions/parseKeyframeDeclarations.md) | - | | [profile](functions/profile.md) | Method decorator factory. It will intercept the method call and start and pause a timer before and after the method call. Works only if profiling is enabled. | | [profilingDisable](functions/profilingDisable.md) | Disables profiling. | | [profilingDumpProfiles](functions/profilingDumpProfiles.md) | Prints the timer for all methods instrumented with profile decorator. | | [profilingEnable](functions/profilingEnable.md) | Enables profiling. | | [profilingIsRunning](functions/profilingIsRunning.md) | Returns true if a timer is currently running. | | [profilingResetProfiles](functions/profilingResetProfiles.md) | Resets the timers for all methods instrumented with profile decorator. | | [profilingStart](functions/profilingStart.md) | Starts a timer with a specific name. Works only if profiling is enabled. | | [profilingStartCPU](functions/profilingStartCPU.md) | Starts android cpu profiling. | | [profilingStop](functions/profilingStop.md) | Pauses a timer with a specific name. This will increase call count and accumulate time. Works only if profiling is enabled. | | [profilingStopCPU](functions/profilingStopCPU.md) | Stops android cpu profiling. | | [profilingTime](functions/profilingTime.md) | Gets accurate system timestamp in ms. | | [profilingUptime](functions/profilingUptime.md) | Gets the uptime of the current process in milliseconds. | | [prompt](functions/prompt.md) | The prompt() method displays a dialog box that prompts the visitor for input. | | [PseudoClassHandler](functions/PseudoClassHandler.md) | - | | [querySelectorAll](functions/querySelectorAll.md) | Gets a child view by selector. | | [removeTaggedAdditionalCSS](functions/removeTaggedAdditionalCSS.md) | - | | [removeWeakEventListener](functions/removeWeakEventListener.md) | Removes a WeakEventListener. | | [resolveFileNameFromUrl](functions/resolveFileNameFromUrl.md) | - | | [sendAccessibilityEvent](functions/sendAccessibilityEvent.md) | Android: helper function for triggering accessibility events | | [setActivityCallbacks](functions/setActivityCallbacks.md) | - | | [setNativeApp](functions/setNativeApp.md) | This is called internally to set the native application instance. You typically do not need to call this directly. However, it's exposed for special case purposes, such as custom application initialization. | | [timeConverter](functions/timeConverter.md) | - | | [updateAccessibilityProperties](functions/updateAccessibilityProperties.md) | Update accessibility properties on nativeView | ## References ### androidRegisteredReceivers Renames and re-exports [androidRegisterBroadcastReceiver](variables/androidRegisterBroadcastReceiver.md) *** ### androidUnregisterBroadcastReceiver Renames and re-exports [androidRegisterBroadcastReceiver](variables/androidRegisterBroadcastReceiver.md) *** ### iosAddNotificationObserver Renames and re-exports [androidRegisterBroadcastReceiver](variables/androidRegisterBroadcastReceiver.md) *** ### iosNotificationObservers Renames and re-exports [androidRegisterBroadcastReceiver](variables/androidRegisterBroadcastReceiver.md) *** ### iosRemoveNotificationObserver Renames and re-exports [androidRegisterBroadcastReceiver](variables/androidRegisterBroadcastReceiver.md) *** ### sanitizeModuleName Re-exports [sanitizeModuleName](namespaces/Utils/functions/sanitizeModuleName.md) --- --- url: 'https://docs.nativescript.org/api/namespaces/AccessibilityEvents.md' --- ## Variables | Variable | Description | | ------ | ------ | | [accessibilityBlurEvent](variables/accessibilityBlurEvent.md) | - | | [accessibilityFocusChangedEvent](variables/accessibilityFocusChangedEvent.md) | - | | [accessibilityFocusEvent](variables/accessibilityFocusEvent.md) | - | | [accessibilityPerformEscapeEvent](variables/accessibilityPerformEscapeEvent.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/AccessibilityEvents/variables/accessibilityBlurEvent.md --- ```ts const accessibilityBlurEvent: "accessibilityBlur"; ``` Defined in: [index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/index.d.ts#L15) --- --- url: >- https://docs.nativescript.org/api/namespaces/AccessibilityEvents/variables/accessibilityFocusChangedEvent.md --- ```ts const accessibilityFocusChangedEvent: "accessibilityFocusChanged"; ``` Defined in: [index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/index.d.ts#L17) --- --- url: >- https://docs.nativescript.org/api/namespaces/AccessibilityEvents/variables/accessibilityFocusEvent.md --- ```ts const accessibilityFocusEvent: "accessibilityFocus"; ``` Defined in: [index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/index.d.ts#L16) --- --- url: >- https://docs.nativescript.org/api/namespaces/AccessibilityEvents/variables/accessibilityPerformEscapeEvent.md --- ```ts const accessibilityPerformEscapeEvent: "accessibilityPerformEscape"; ``` Defined in: [index.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/index.d.ts#L18) --- --- url: 'https://docs.nativescript.org/api/namespaces/AndroidHelper.md' description: Various Android view helper methods --- Various Android view helper methods ## Functions | Function | Description | | ------ | ------ | | [clearDrawableColor](functions/clearDrawableColor.md) | - | | [getCopyOrDrawable](functions/getCopyOrDrawable.md) | - | | [getDrawableColor](functions/getDrawableColor.md) | - | | [setDrawableColor](functions/setDrawableColor.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/AndroidHelper/functions/clearDrawableColor.md --- ```ts function clearDrawableColor(drawable: any): void; ``` Defined in: [ui/core/view/view-helper/index.d.ts:42](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L42) ## Parameters | Parameter | Type | | ------ | ------ | | `drawable` | `any` | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/AndroidHelper/functions/getCopyOrDrawable.md --- ```ts function getCopyOrDrawable(drawable: any, resources?: any): any; ``` Defined in: [ui/core/view/view-helper/index.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L43) ## Parameters | Parameter | Type | | ------ | ------ | | `drawable` | `any` | | `resources?` | `any` | ## Returns `any` --- --- url: >- https://docs.nativescript.org/api/namespaces/AndroidHelper/functions/getDrawableColor.md --- ```ts function getDrawableColor(drawable: any): Color; ``` Defined in: [ui/core/view/view-helper/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L40) ## Parameters | Parameter | Type | | ------ | ------ | | `drawable` | `any` | ## Returns `Color` --- --- url: >- https://docs.nativescript.org/api/namespaces/AndroidHelper/functions/setDrawableColor.md --- ```ts function setDrawableColor( color: number, drawable: any, blendMode?: any): void; ``` Defined in: [ui/core/view/view-helper/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L41) ## Parameters | Parameter | Type | | ------ | ------ | | `color` | `number` | | `drawable` | `any` | | `blendMode?` | `any` | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/ApplicationSettings.md' --- ## Functions | Function | Description | | ------ | ------ | | [clear](functions/clear.md) | Removes all values. | | [flush](functions/flush.md) | Flush all changes to disk synchronously. | | [getAllKeys](functions/getAllKeys.md) | Get all stored keys | | [getBoolean](functions/getBoolean.md) | Gets a value (if existing) for a key as a Boolean Object. A default value can be provided in case there is no existing value. | | [getNumber](functions/getNumber.md) | Gets a value (if existing) for a key as a Number Object. A default value can be provided in case there is no existing value. | | [getString](functions/getString.md) | Gets a value (if existing) for a key as a String Object. A default value can be provided in case there is no existing value. | | [hasKey](functions/hasKey.md) | Checks whether such a key exists. | | [remove](functions/remove.md) | Removes a value (if existing) for a key. | | [setBoolean](functions/setBoolean.md) | Sets a Boolean Object for a key. | | [setNumber](functions/setNumber.md) | Sets a Number Object for a key. | | [setString](functions/setString.md) | Sets a String Object for a key. | --- --- url: >- https://docs.nativescript.org/api/namespaces/ApplicationSettings/functions/clear.md --- ```ts function clear(): void; ``` Defined in: [application-settings/index.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application-settings/index.d.ts#L58) Removes all values. ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/ApplicationSettings/functions/flush.md --- ```ts function flush(): boolean; ``` Defined in: [application-settings/index.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application-settings/index.d.ts#L64) Flush all changes to disk synchronously. ## Returns `boolean` boolean flag indicating if changes were saved successfully to disk. --- --- url: >- https://docs.nativescript.org/api/namespaces/ApplicationSettings/functions/getAllKeys.md --- ```ts function getAllKeys(): string[]; ``` Defined in: [application-settings/index.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application-settings/index.d.ts#L70) Get all stored keys ## Returns `string`\[] Array containing all stored keys --- --- url: >- https://docs.nativescript.org/api/namespaces/ApplicationSettings/functions/getBoolean.md --- ```ts function getBoolean(key: string, defaultValue?: boolean): boolean; ``` Defined in: [application-settings/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application-settings/index.d.ts#L12) Gets a value (if existing) for a key as a Boolean Object. A default value can be provided in case there is no existing value. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `key` | `string` | The key to check for. | | `defaultValue?` | `boolean` | An optional value to be returned in case there is no existing value. | ## Returns `boolean` --- --- url: >- https://docs.nativescript.org/api/namespaces/ApplicationSettings/functions/getNumber.md --- ```ts function getNumber(key: string, defaultValue?: number): number; ``` Defined in: [application-settings/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application-settings/index.d.ts#L26) Gets a value (if existing) for a key as a Number Object. A default value can be provided in case there is no existing value. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `key` | `string` | The key to check for. | | `defaultValue?` | `number` | An optional value to be returned in case there is no existing value. | ## Returns `number` --- --- url: >- https://docs.nativescript.org/api/namespaces/ApplicationSettings/functions/getString.md --- ```ts function getString(key: string, defaultValue?: string): string; ``` Defined in: [application-settings/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application-settings/index.d.ts#L19) Gets a value (if existing) for a key as a String Object. A default value can be provided in case there is no existing value. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `key` | `string` | The key to check for. | | `defaultValue?` | `string` | An optional value to be returned in case there is no existing value. | ## Returns `string` --- --- url: >- https://docs.nativescript.org/api/namespaces/ApplicationSettings/functions/hasKey.md --- ```ts function hasKey(key: string): boolean; ``` Defined in: [application-settings/index.d.ts:5](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application-settings/index.d.ts#L5) Checks whether such a key exists. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `key` | `string` | The key to check for. | ## Returns `boolean` --- --- url: >- https://docs.nativescript.org/api/namespaces/ApplicationSettings/functions/remove.md --- ```ts function remove(key: string): void; ``` Defined in: [application-settings/index.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application-settings/index.d.ts#L53) Removes a value (if existing) for a key. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `key` | `string` | The key to check for. | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/ApplicationSettings/functions/setBoolean.md --- ```ts function setBoolean(key: string, value: boolean): void; ``` Defined in: [application-settings/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application-settings/index.d.ts#L33) Sets a Boolean Object for a key. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `key` | `string` | The key. | | `value` | `boolean` | The value. | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/ApplicationSettings/functions/setNumber.md --- ```ts function setNumber(key: string, value: number): void; ``` Defined in: [application-settings/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application-settings/index.d.ts#L47) Sets a Number Object for a key. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `key` | `string` | The key. | | `value` | `number` | The value. | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/ApplicationSettings/functions/setString.md --- ```ts function setString(key: string, value: string): void; ``` Defined in: [application-settings/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application-settings/index.d.ts#L40) Sets a String Object for a key. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `key` | `string` | The key. | | `value` | `string` | The value. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/capitalizationType.md' description: Defines the capitalization type for prompt dialog. --- Defines the capitalization type for prompt dialog. ## Variables | Variable | Description | | ------ | ------ | | [all](variables/all.md) | Capitalizes every character. | | [none](variables/none.md) | No automatic capitalization. | | [sentences](variables/sentences.md) | Capitalize the first word of each sentence. | | [words](variables/words.md) | Capitalize the first letter of every word. | --- --- url: >- https://docs.nativescript.org/api/namespaces/capitalizationType/variables/all.md description: Capitalizes every character. --- ```ts const all: string; ``` Defined in: [ui/dialogs/index.d.ts:49](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/index.d.ts#L49) Capitalizes every character. --- --- url: >- https://docs.nativescript.org/api/namespaces/capitalizationType/variables/none.md description: No automatic capitalization. --- ```ts const none: string; ``` Defined in: [ui/dialogs/index.d.ts:44](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/index.d.ts#L44) No automatic capitalization. --- --- url: >- https://docs.nativescript.org/api/namespaces/capitalizationType/variables/sentences.md description: Capitalize the first word of each sentence. --- ```ts const sentences: string; ``` Defined in: [ui/dialogs/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/index.d.ts#L54) Capitalize the first word of each sentence. --- --- url: >- https://docs.nativescript.org/api/namespaces/capitalizationType/variables/words.md description: Capitalize the first letter of every word. --- ```ts const words: string; ``` Defined in: [ui/dialogs/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/index.d.ts#L59) Capitalize the first letter of every word. --- --- url: 'https://docs.nativescript.org/api/namespaces/Connectivity.md' --- ## Enumerations | Enumeration | Description | | ------ | ------ | | [connectionType](enumerations/connectionType.md) | Defines the different connection types. | ## Functions | Function | Description | | ------ | ------ | | [getConnectionType](functions/getConnectionType.md) | Gets the type of connection. Returns a value from the connectivity.connectionType enumeration. To use this method on Android you need to have the android.permission.ACCESS\_NETWORK\_STATE permission added to the AndroidManifest.xml file. | | [startMonitoring](functions/startMonitoring.md) | Starts monitoring the connection type. | | [stopMonitoring](functions/stopMonitoring.md) | Stops monitoring the connection type. | --- --- url: >- https://docs.nativescript.org/api/namespaces/Connectivity/enumerations/connectionType.md description: Defines the different connection types. --- Defined in: [connectivity/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/connectivity/index.d.ts#L11) Defines the different connection types. ## Enumeration Members | Enumeration Member | Value | Description | Defined in | | ------ | ------ | ------ | ------ | | `bluetooth` | `4` | Denotes a bluetooth connection | [connectivity/index.d.ts:35](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/connectivity/index.d.ts#L35) | | `ethernet` | `3` | Denotes an ethernet connection | [connectivity/index.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/connectivity/index.d.ts#L30) | | `mobile` | `2` | Denotes a mobile connection, i.e. cellular network or WAN. | [connectivity/index.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/connectivity/index.d.ts#L25) | | `none` | `0` | Denotes no connection. | [connectivity/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/connectivity/index.d.ts#L15) | | `vpn` | `5` | Denotes a vpn connection | [connectivity/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/connectivity/index.d.ts#L40) | | `wifi` | `1` | Denotes a WiFi connection. | [connectivity/index.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/connectivity/index.d.ts#L20) | --- --- url: >- https://docs.nativescript.org/api/namespaces/Connectivity/functions/getConnectionType.md --- ```ts function getConnectionType(): number; ``` Defined in: [connectivity/index.d.ts:6](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/connectivity/index.d.ts#L6) Gets the type of connection. Returns a value from the connectivity.connectionType enumeration. To use this method on Android you need to have the android.permission.ACCESS\_NETWORK\_STATE permission added to the AndroidManifest.xml file. ## Returns `number` --- --- url: >- https://docs.nativescript.org/api/namespaces/Connectivity/functions/startMonitoring.md --- ```ts function startMonitoring(connectionTypeChangedCallback: (newConnectionType: number) => void): void; ``` Defined in: [connectivity/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/connectivity/index.d.ts#L47) Starts monitoring the connection type. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `connectionTypeChangedCallback` | (`newConnectionType`: `number`) => `void` | A function that will be called when the connection type changes. | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/Connectivity/functions/stopMonitoring.md --- ```ts function stopMonitoring(): void; ``` Defined in: [connectivity/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/connectivity/index.d.ts#L52) Stops monitoring the connection type. ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/CoreTypes.md' --- ## Namespaces | Namespace | Description | | ------ | ------ | | [Accuracy](namespaces/Accuracy/index.md) | - | | [AndroidActionBarIconVisibility](namespaces/AndroidActionBarIconVisibility/index.md) | - | | [AndroidActionItemPosition](namespaces/AndroidActionItemPosition/index.md) | - | | [AnimationCurve](namespaces/AnimationCurve/index.md) | - | | [AutocapitalizationType](namespaces/AutocapitalizationType/index.md) | - | | [AutofillType](namespaces/AutofillType/index.md) | - | | [BackgroundRepeat](namespaces/BackgroundRepeat/index.md) | - | | [DeviceOrientation](namespaces/DeviceOrientation/index.md) | - | | [DeviceType](namespaces/DeviceType/index.md) | - | | [Dock](namespaces/Dock/index.md) | - | | [FontAttributes](namespaces/FontAttributes/index.md) | - | | [FontStyle](namespaces/FontStyle/index.md) | - | | [FontWeight](namespaces/FontWeight/index.md) | - | | [HorizontalAlignment](namespaces/HorizontalAlignment/index.md) | - | | [ImageFormat](namespaces/ImageFormat/index.md) | - | | [ImageStretch](namespaces/ImageStretch/index.md) | - | | [IOSActionItemPosition](namespaces/IOSActionItemPosition/index.md) | - | | [KeyboardType](namespaces/KeyboardType/index.md) | - | | [LayoutDirection](namespaces/LayoutDirection/index.md) | - | | [NavigationBarVisibility](namespaces/NavigationBarVisibility/index.md) | - | | [Orientation](namespaces/Orientation/index.md) | - | | [ReturnKeyType](namespaces/ReturnKeyType/index.md) | - | | [StatusBarStyle](namespaces/StatusBarStyle/index.md) | - | | [SystemAppearance](namespaces/SystemAppearance/index.md) | - | | [TextAlignment](namespaces/TextAlignment/index.md) | - | | [TextDecoration](namespaces/TextDecoration/index.md) | - | | [TextOverflow](namespaces/TextOverflow/index.md) | - | | [TextTransform](namespaces/TextTransform/index.md) | - | | [UpdateTextTrigger](namespaces/UpdateTextTrigger/index.md) | - | | [VerticalAlignment](namespaces/VerticalAlignment/index.md) | - | | [VerticalAlignmentText](namespaces/VerticalAlignmentText/index.md) | - | | [Visibility](namespaces/Visibility/index.md) | - | | [WhiteSpace](namespaces/WhiteSpace/index.md) | - | ## Type Aliases | Type Alias | Description | | ------ | ------ | | [AndroidOverflow](type-aliases/AndroidOverflow.md) | - | | [AutocapitalizationInputType](type-aliases/AutocapitalizationInputType.md) | - | | [AutofillType](type-aliases/AutofillType.md) | - | | [BackgroundRepeatType](type-aliases/BackgroundRepeatType.md) | - | | [CSSWideKeywords](type-aliases/CSSWideKeywords.md) | - | | [DeviceOrientationType](type-aliases/DeviceOrientationType.md) | - | | [dip](type-aliases/dip.md) | Denotes a length number that is in device independent pixel units. | | [DockType](type-aliases/DockType.md) | - | | [FixedLengthType](type-aliases/FixedLengthType.md) | - | | [HorizontalAlignmentType](type-aliases/HorizontalAlignmentType.md) | - | | [ImageStretchType](type-aliases/ImageStretchType.md) | - | | [KeyboardInputType](type-aliases/KeyboardInputType.md) | - | | [LayoutDirectionType](type-aliases/LayoutDirectionType.md) | - | | [LengthDipUnit](type-aliases/LengthDipUnit.md) | - | | [LengthPercentUnit](type-aliases/LengthPercentUnit.md) | - | | [LengthPxUnit](type-aliases/LengthPxUnit.md) | - | | [LengthType](type-aliases/LengthType.md) | - | | [MaxLinesType](type-aliases/MaxLinesType.md) | - | | [OrientationType](type-aliases/OrientationType.md) | - | | [percent](type-aliases/percent.md) | Denotes a normalized percent number. 0% is represented as 0 50% is represented as 0.5 100% is represented as 1 | | [PercentLengthType](type-aliases/PercentLengthType.md) | - | | [px](type-aliases/px.md) | Denotes a length number that is in physical device pixels. | | [ReturnKeyButtonType](type-aliases/ReturnKeyButtonType.md) | - | | [TextAlignmentType](type-aliases/TextAlignmentType.md) | - | | [TextDecorationType](type-aliases/TextDecorationType.md) | - | | [TextOverflowType](type-aliases/TextOverflowType.md) | - | | [TextTransformType](type-aliases/TextTransformType.md) | - | | [UpdateTextTriggerType](type-aliases/UpdateTextTriggerType.md) | - | | [VerticalAlignmentTextType](type-aliases/VerticalAlignmentTextType.md) | - | | [VerticalAlignmentType](type-aliases/VerticalAlignmentType.md) | - | | [VisibilityType](type-aliases/VisibilityType.md) | - | | [WhiteSpaceType](type-aliases/WhiteSpaceType.md) | - | ## Variables | Variable | Description | | ------ | ------ | | [zeroLength](variables/zeroLength.md) | - | --- --- url: 'https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Accuracy.md' --- ## Variables | Variable | Description | | ------ | ------ | | [any](variables/any.md) | - | | [high](variables/high.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Accuracy/variables/any.md --- ```ts const any: number; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Accuracy/variables/high.md --- ```ts const high: number; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AndroidActionBarIconVisibility.md --- ## Variables | Variable | Description | | ------ | ------ | | [always](variables/always.md) | - | | [auto](variables/auto.md) | - | | [never](variables/never.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AndroidActionBarIconVisibility/variables/always.md --- ```ts const always: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AndroidActionBarIconVisibility/variables/auto.md --- ```ts const auto: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AndroidActionBarIconVisibility/variables/never.md --- ```ts const never: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AndroidActionItemPosition.md --- ## Variables | Variable | Description | | ------ | ------ | | [actionBar](variables/actionBar.md) | - | | [actionBarIfRoom](variables/actionBarIfRoom.md) | - | | [popup](variables/popup.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AndroidActionItemPosition/variables/actionBar.md --- ```ts const actionBar: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AndroidActionItemPosition/variables/actionBarIfRoom.md --- ```ts const actionBarIfRoom: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AndroidActionItemPosition/variables/popup.md --- ```ts const popup: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AnimationCurve.md --- ## Variables | Variable | Description | | ------ | ------ | | [ease](variables/ease.md) | - | | [easeIn](variables/easeIn.md) | - | | [easeInOut](variables/easeInOut.md) | - | | [easeOut](variables/easeOut.md) | - | | [linear](variables/linear.md) | - | | [spring](variables/spring.md) | - | ## Functions | Function | Description | | ------ | ------ | | [cubicBezier](functions/cubicBezier.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AnimationCurve/variables/ease.md --- ```ts const ease: "ease" = "ease"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AnimationCurve/variables/easeIn.md --- ```ts const easeIn: "easeIn" = "easeIn"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AnimationCurve/variables/easeInOut.md --- ```ts const easeInOut: "easeInOut" = "easeInOut"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AnimationCurve/variables/easeOut.md --- ```ts const easeOut: "easeOut" = "easeOut"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AnimationCurve/variables/linear.md --- ```ts const linear: "linear" = "linear"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AnimationCurve/variables/spring.md --- ```ts const spring: "spring" = "spring"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AnimationCurve/functions/cubicBezier.md --- ```ts function cubicBezier( x1: number, y1: number, x2: number, y2: number): CubicBezierAnimationCurve; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `x1` | `number` | | `y1` | `number` | | `x2` | `number` | | `y2` | `number` | ## Returns `CubicBezierAnimationCurve` --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutocapitalizationType.md --- ## Variables | Variable | Description | | ------ | ------ | | [allCharacters](variables/allCharacters.md) | - | | [none](variables/none.md) | - | | [sentences](variables/sentences.md) | - | | [words](variables/words.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutocapitalizationType/variables/allCharacters.md --- ```ts const allCharacters: AutocapitalizationInputType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutocapitalizationType/variables/none.md --- ```ts const none: AutocapitalizationInputType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutocapitalizationType/variables/sentences.md --- ```ts const sentences: AutocapitalizationInputType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutocapitalizationType/variables/words.md --- ```ts const words: AutocapitalizationInputType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutofillType.md --- ## Variables | Variable | Description | | ------ | ------ | | [newPassword](variables/newPassword.md) | - | | [newUsername](variables/newUsername.md) | - | | [none](variables/none.md) | - | | [oneTimeCode](variables/oneTimeCode.md) | - | | [password](variables/password.md) | - | | [username](variables/username.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutofillType/variables/newPassword.md --- ```ts const newPassword: "newPassword" = "newPassword"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutofillType/variables/newUsername.md --- ```ts const newUsername: "newUsername" = "newUsername"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutofillType/variables/none.md --- ```ts const none: "none" = "none"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutofillType/variables/oneTimeCode.md --- ```ts const oneTimeCode: "oneTimeCode" = "oneTimeCode"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutofillType/variables/password.md --- ```ts const password: "password" = "password"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/AutofillType/variables/username.md --- ```ts const username: "username" = "username"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/BackgroundRepeat.md --- ## Variables | Variable | Description | | ------ | ------ | | [isValid](variables/isValid.md) | - | | [noRepeat](variables/noRepeat.md) | - | | [parse](variables/parse.md) | - | | [repeat](variables/repeat.md) | - | | [repeatX](variables/repeatX.md) | - | | [repeatY](variables/repeatY.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/BackgroundRepeat/variables/isValid.md --- ```ts const isValid: (value: any) => value is BackgroundRepeatType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ## Returns `value is BackgroundRepeatType` --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/BackgroundRepeat/variables/noRepeat.md --- ```ts const noRepeat: BackgroundRepeatType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/BackgroundRepeat/variables/parse.md --- ```ts const parse: (value: any) => BackgroundRepeatType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ## Returns [`BackgroundRepeatType`](../../../type-aliases/BackgroundRepeatType.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/BackgroundRepeat/variables/repeat.md --- ```ts const repeat: BackgroundRepeatType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/BackgroundRepeat/variables/repeatX.md --- ```ts const repeatX: BackgroundRepeatType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/BackgroundRepeat/variables/repeatY.md --- ```ts const repeatY: BackgroundRepeatType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/DeviceOrientation.md --- ## Variables | Variable | Description | | ------ | ------ | | [landscape](variables/landscape.md) | - | | [portrait](variables/portrait.md) | - | | [unknown](variables/unknown.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/DeviceOrientation/variables/landscape.md --- ```ts const landscape: "landscape" = "landscape"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/DeviceOrientation/variables/portrait.md --- ```ts const portrait: "portrait" = "portrait"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/DeviceOrientation/variables/unknown.md --- ```ts const unknown: "unknown" = "unknown"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/DeviceType.md --- ## Variables | Variable | Description | | ------ | ------ | | [Phone](variables/Phone.md) | - | | [Tablet](variables/Tablet.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/DeviceType/variables/Phone.md --- ```ts const Phone: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/DeviceType/variables/Tablet.md --- ```ts const Tablet: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Dock.md' --- ## Variables | Variable | Description | | ------ | ------ | | [bottom](variables/bottom.md) | - | | [left](variables/left.md) | - | | [right](variables/right.md) | - | | [top](variables/top.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Dock/variables/bottom.md --- ```ts const bottom: DockType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Dock/variables/left.md --- ```ts const left: DockType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Dock/variables/right.md --- ```ts const right: DockType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Dock/variables/top.md --- ```ts const top: DockType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontAttributes.md --- ## Variables | Variable | Description | | ------ | ------ | | [Bold](variables/Bold.md) | - | | [Italic](variables/Italic.md) | - | | [Normal](variables/Normal.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontAttributes/variables/Bold.md --- ```ts const Bold: 1 = 1; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontAttributes/variables/Italic.md --- ```ts const Italic: number; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontAttributes/variables/Normal.md --- ```ts const Normal: 0 = 0; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontStyle.md' --- ## Variables | Variable | Description | | ------ | ------ | | [italic](variables/italic.md) | - | | [normal](variables/normal.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontStyle/variables/italic.md --- ```ts const italic: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontStyle/variables/normal.md --- ```ts const normal: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontWeight.md --- ## Variables | Variable | Description | | ------ | ------ | | [black](variables/black.md) | - | | [bold](variables/bold.md) | - | | [extraBold](variables/extraBold.md) | - | | [extraLight](variables/extraLight.md) | - | | [light](variables/light.md) | - | | [medium](variables/medium.md) | - | | [normal](variables/normal.md) | - | | [semiBold](variables/semiBold.md) | - | | [thin](variables/thin.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontWeight/variables/black.md --- ```ts const black: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontWeight/variables/bold.md --- ```ts const bold: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontWeight/variables/extraBold.md --- ```ts const extraBold: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontWeight/variables/extraLight.md --- ```ts const extraLight: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontWeight/variables/light.md --- ```ts const light: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontWeight/variables/medium.md --- ```ts const medium: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontWeight/variables/normal.md --- ```ts const normal: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontWeight/variables/semiBold.md --- ```ts const semiBold: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/FontWeight/variables/thin.md --- ```ts const thin: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/HorizontalAlignment.md --- ## Variables | Variable | Description | | ------ | ------ | | [center](variables/center.md) | - | | [end](variables/end.md) | - | | [isValid](variables/isValid.md) | - | | [left](variables/left.md) | - | | [parse](variables/parse.md) | - | | [right](variables/right.md) | - | | [start](variables/start.md) | - | | [stretch](variables/stretch.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/HorizontalAlignment/variables/center.md --- ```ts const center: "center" = "center"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/HorizontalAlignment/variables/end.md --- ```ts const end: "end" = "end"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/HorizontalAlignment/variables/isValid.md --- ```ts const isValid: (value: any) => value is HorizontalAlignmentType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ## Returns `value is HorizontalAlignmentType` --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/HorizontalAlignment/variables/left.md --- ```ts const left: "left" = "left"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/HorizontalAlignment/variables/parse.md --- ```ts const parse: (value: any) => HorizontalAlignmentType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ## Returns [`HorizontalAlignmentType`](../../../type-aliases/HorizontalAlignmentType.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/HorizontalAlignment/variables/right.md --- ```ts const right: "right" = "right"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/HorizontalAlignment/variables/start.md --- ```ts const start: "start" = "start"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/HorizontalAlignment/variables/stretch.md --- ```ts const stretch: "stretch" = "stretch"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ImageFormat.md --- ## Variables | Variable | Description | | ------ | ------ | | [jpeg](variables/jpeg.md) | - | | [jpg](variables/jpg.md) | - | | [png](variables/png.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ImageFormat/variables/jpeg.md --- ```ts const jpeg: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ImageFormat/variables/jpg.md --- ```ts const jpg: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ImageFormat/variables/png.md --- ```ts const png: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ImageStretch.md --- ## Variables | Variable | Description | | ------ | ------ | | [aspectFill](variables/aspectFill.md) | - | | [aspectFit](variables/aspectFit.md) | - | | [fill](variables/fill.md) | - | | [none](variables/none.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ImageStretch/variables/aspectFill.md --- ```ts const aspectFill: ImageStretchType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ImageStretch/variables/aspectFit.md --- ```ts const aspectFit: ImageStretchType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ImageStretch/variables/fill.md --- ```ts const fill: ImageStretchType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ImageStretch/variables/none.md --- ```ts const none: ImageStretchType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/IOSActionItemPosition.md --- ## Variables | Variable | Description | | ------ | ------ | | [left](variables/left.md) | - | | [right](variables/right.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/IOSActionItemPosition/variables/left.md --- ```ts const left: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/IOSActionItemPosition/variables/right.md --- ```ts const right: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/KeyboardType.md --- ## Variables | Variable | Description | | ------ | ------ | | [datetime](variables/datetime.md) | - | | [decimal](variables/decimal.md) | - | | [email](variables/email.md) | - | | [integer](variables/integer.md) | - | | [number](variables/number.md) | - | | [phone](variables/phone.md) | - | | [url](variables/url.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/KeyboardType/variables/datetime.md --- ```ts const datetime: "datetime" = "datetime"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/KeyboardType/variables/decimal.md --- ```ts const decimal: "decimal" = "decimal"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/KeyboardType/variables/email.md --- ```ts const email: "email" = "email"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/KeyboardType/variables/integer.md --- ```ts const integer: "integer" = "integer"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/KeyboardType/variables/number.md --- ```ts const number: "number" = "number"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/KeyboardType/variables/phone.md --- ```ts const phone: "phone" = "phone"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/KeyboardType/variables/url.md --- ```ts const url: "url" = "url"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/LayoutDirection.md --- ## Variables | Variable | Description | | ------ | ------ | | [ltr](variables/ltr.md) | - | | [rtl](variables/rtl.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/LayoutDirection/variables/ltr.md --- ```ts const ltr: "ltr" = "ltr"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/LayoutDirection/variables/rtl.md --- ```ts const rtl: "rtl" = "rtl"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/NavigationBarVisibility.md --- ## Variables | Variable | Description | | ------ | ------ | | [always](variables/always.md) | - | | [auto](variables/auto.md) | - | | [never](variables/never.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/NavigationBarVisibility/variables/always.md --- ```ts const always: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/NavigationBarVisibility/variables/auto.md --- ```ts const auto: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/NavigationBarVisibility/variables/never.md --- ```ts const never: string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Orientation.md --- ## Variables | Variable | Description | | ------ | ------ | | [horizontal](variables/horizontal.md) | - | | [vertical](variables/vertical.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Orientation/variables/horizontal.md --- ```ts const horizontal: "horizontal" = "horizontal"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Orientation/variables/vertical.md --- ```ts const vertical: "vertical" = "vertical"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ReturnKeyType.md --- ## Variables | Variable | Description | | ------ | ------ | | [done](variables/done.md) | - | | [go](variables/go.md) | - | | [next](variables/next.md) | - | | [search](variables/search.md) | - | | [send](variables/send.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ReturnKeyType/variables/done.md --- ```ts const done: "done" = "done"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ReturnKeyType/variables/go.md --- ```ts const go: "go" = "go"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ReturnKeyType/variables/next.md --- ```ts const next: "next" = "next"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ReturnKeyType/variables/search.md --- ```ts const search: "search" = "search"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/ReturnKeyType/variables/send.md --- ```ts const send: "send" = "send"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/StatusBarStyle.md --- ## Variables | Variable | Description | | ------ | ------ | | [dark](variables/dark.md) | - | | [light](variables/light.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/StatusBarStyle/variables/dark.md --- ```ts const dark: "dark" = "dark"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/StatusBarStyle/variables/light.md --- ```ts const light: "light" = "light"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/SystemAppearance.md --- ## Variables | Variable | Description | | ------ | ------ | | [dark](variables/dark.md) | - | | [light](variables/light.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/SystemAppearance/variables/dark.md --- ```ts const dark: "dark" = "dark"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/SystemAppearance/variables/light.md --- ```ts const light: "light" = "light"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextAlignment.md --- ## Variables | Variable | Description | | ------ | ------ | | [center](variables/center.md) | - | | [justify](variables/justify.md) | - | | [left](variables/left.md) | - | | [right](variables/right.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextAlignment/variables/center.md --- ```ts const center: "center" = "center"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextAlignment/variables/justify.md --- ```ts const justify: "justify" = "justify"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextAlignment/variables/left.md --- ```ts const left: "left" = "left"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextAlignment/variables/right.md --- ```ts const right: "right" = "right"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextDecoration.md --- ## Variables | Variable | Description | | ------ | ------ | | [lineThrough](variables/lineThrough.md) | - | | [none](variables/none.md) | - | | [underline](variables/underline.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextDecoration/variables/lineThrough.md --- ```ts const lineThrough: "line-through" = "line-through"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextDecoration/variables/none.md --- ```ts const none: "none" = "none"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextDecoration/variables/underline.md --- ```ts const underline: "underline" = "underline"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextOverflow.md --- ## Variables | Variable | Description | | ------ | ------ | | [clip](variables/clip.md) | - | | [ellipsis](variables/ellipsis.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextOverflow/variables/clip.md --- ```ts const clip: "clip" = "clip"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextOverflow/variables/ellipsis.md --- ```ts const ellipsis: "ellipsis" = "ellipsis"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextTransform.md --- ## Variables | Variable | Description | | ------ | ------ | | [capitalize](variables/capitalize.md) | - | | [lowercase](variables/lowercase.md) | - | | [none](variables/none.md) | - | | [uppercase](variables/uppercase.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextTransform/variables/capitalize.md --- ```ts const capitalize: "capitalize" = "capitalize"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextTransform/variables/lowercase.md --- ```ts const lowercase: "lowercase" = "lowercase"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextTransform/variables/none.md --- ```ts const none: "none" = "none"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/TextTransform/variables/uppercase.md --- ```ts const uppercase: "uppercase" = "uppercase"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/UpdateTextTrigger.md --- ## Variables | Variable | Description | | ------ | ------ | | [focusLost](variables/focusLost.md) | - | | [textChanged](variables/textChanged.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/UpdateTextTrigger/variables/focusLost.md --- ```ts const focusLost: UpdateTextTriggerType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/UpdateTextTrigger/variables/textChanged.md --- ```ts const textChanged: UpdateTextTriggerType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignment.md --- ## Variables | Variable | Description | | ------ | ------ | | [bottom](variables/bottom.md) | - | | [middle](variables/middle.md) | - | | [stretch](variables/stretch.md) | - | | [top](variables/top.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignment/variables/bottom.md --- ```ts const bottom: "bottom" = "bottom"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignment/variables/middle.md --- ```ts const middle: "middle" = "middle"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignment/variables/stretch.md --- ```ts const stretch: "stretch" = "stretch"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignment/variables/top.md --- ```ts const top: "top" = "top"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText.md --- ## Variables | Variable | Description | | ------ | ------ | | [baseline](variables/baseline.md) | - | | [bottom](variables/bottom.md) | - | | [isValid](variables/isValid.md) | - | | [middle](variables/middle.md) | - | | [parse](variables/parse.md) | - | | [stretch](variables/stretch.md) | - | | [sub](variables/sub.md) | - | | [sup](variables/sup.md) | - | | [textbottom](variables/textbottom.md) | - | | [texttop](variables/texttop.md) | - | | [top](variables/top.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText/variables/baseline.md --- ```ts const baseline: "baseline" = "baseline"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText/variables/bottom.md --- ```ts const bottom: "bottom" = "bottom"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText/variables/isValid.md --- ```ts const isValid: (value: any) => value is VerticalAlignmentTextType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ## Returns `value is VerticalAlignmentTextType` --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText/variables/middle.md --- ```ts const middle: "middle" = "middle"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText/variables/parse.md --- ```ts const parse: (value: string) => VerticalAlignmentTextType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns [`VerticalAlignmentTextType`](../../../type-aliases/VerticalAlignmentTextType.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText/variables/stretch.md --- ```ts const stretch: "stretch" = "stretch"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText/variables/sub.md --- ```ts const sub: "sub" = "sub"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText/variables/sup.md --- ```ts const sup: "sup" = "sup"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText/variables/textbottom.md --- ```ts const textbottom: "text-bottom" = "text-bottom"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText/variables/texttop.md --- ```ts const texttop: "text-top" = "text-top"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/VerticalAlignmentText/variables/top.md --- ```ts const top: "top" = "top"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Visibility.md --- ## Variables | Variable | Description | | ------ | ------ | | [collapse](variables/collapse.md) | - | | [collapsed](variables/collapsed.md) | - | | [hidden](variables/hidden.md) | - | | [isValid](variables/isValid.md) | - | | [parse](variables/parse.md) | - | | [visible](variables/visible.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Visibility/variables/collapse.md --- ```ts const collapse: VisibilityType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Visibility/variables/collapsed.md --- ```ts const collapsed: VisibilityType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Visibility/variables/hidden.md --- ```ts const hidden: VisibilityType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Visibility/variables/isValid.md --- ```ts const isValid: (value: any) => value is VisibilityType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ## Returns `value is VisibilityType` --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Visibility/variables/parse.md --- ```ts const parse: (value: string) => VisibilityType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns [`VisibilityType`](../../../type-aliases/VisibilityType.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/Visibility/variables/visible.md --- ```ts const visible: VisibilityType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/WhiteSpace.md --- ## Variables | Variable | Description | | ------ | ------ | | [normal](variables/normal.md) | - | | [nowrap](variables/nowrap.md) | - | | [wrap](variables/wrap.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/WhiteSpace/variables/normal.md --- ```ts const normal: "normal" = "normal"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/WhiteSpace/variables/nowrap.md --- ```ts const nowrap: "nowrap" = "nowrap"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/namespaces/WhiteSpace/variables/wrap.md --- ```ts const wrap: "wrap" = "wrap"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/AndroidOverflow.md --- ```ts type AndroidOverflow = | AndroidOverflowSingle | AndroidOverflowMultiple | AndroidOverflowStacked; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/AutocapitalizationInputType.md --- ```ts type AutocapitalizationInputType = "none" | "words" | "sentences" | "allcharacters"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/AutofillType.md --- ```ts type AutofillType = "username" | "password" | "none" | string; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md --- ```ts type BackgroundRepeatType = | "repeat" | "repeat-x" | "repeat-y" | "no-repeat" | CSSWideKeywords; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/CSSWideKeywords.md --- ```ts type CSSWideKeywords = "initial" | "inherit" | "unset" | "revert"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/DeviceOrientationType.md --- ```ts type DeviceOrientationType = "portrait" | "landscape" | "unknown"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/dip.md' description: Denotes a length number that is in device independent pixel units. --- ```ts type dip = number; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) Denotes a length number that is in device independent pixel units. --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/DockType.md --- ```ts type DockType = "left" | "top" | "right" | "bottom"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/FixedLengthType.md --- ```ts type FixedLengthType = | dip | LengthDipUnit | LengthPxUnit | CSSWideKeywords; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/HorizontalAlignmentType.md --- ```ts type HorizontalAlignmentType = | "start" | "left" | "center" | "right" | "end" | "stretch" | CSSWideKeywords; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/ImageStretchType.md --- ```ts type ImageStretchType = "none" | "aspectFill" | "aspectFit" | "fill"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/KeyboardInputType.md --- ```ts type KeyboardInputType = "datetime" | "phone" | "number" | "decimal" | "url" | "email" | "integer"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/LayoutDirectionType.md --- ```ts type LayoutDirectionType = "ltr" | "rtl"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/LengthDipUnit.md --- ```ts type LengthDipUnit = { unit: "dip"; value: dip; }; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Properties ### unit ```ts readonly unit: "dip"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) *** ### value ```ts readonly value: dip; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/LengthPercentUnit.md --- ```ts type LengthPercentUnit = { unit: "%"; value: percent; }; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Properties ### unit ```ts readonly unit: "%"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) *** ### value ```ts readonly value: percent; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/LengthPxUnit.md --- ```ts type LengthPxUnit = { unit: "px"; value: px; }; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) ## Properties ### unit ```ts readonly unit: "px"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) *** ### value ```ts readonly value: px; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/LengthType.md --- ```ts type LengthType = "auto" | FixedLengthType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/MaxLinesType.md --- ```ts type MaxLinesType = number; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/OrientationType.md --- ```ts type OrientationType = "horizontal" | "vertical"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/percent.md' description: >- Denotes a normalized percent number. 0% is represented as 0 50% is represented as 0.5 100% is represented as 1 --- ```ts type percent = number; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) Denotes a normalized percent number. 0% is represented as 0 50% is represented as 0.5 100% is represented as 1 --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/PercentLengthType.md --- ```ts type PercentLengthType = | "auto" | FixedLengthType | LengthPercentUnit; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/px.md' description: Denotes a length number that is in physical device pixels. --- ```ts type px = number; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) Denotes a length number that is in physical device pixels. --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/ReturnKeyButtonType.md --- ```ts type ReturnKeyButtonType = "done" | "next" | "go" | "search" | "send"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/TextAlignmentType.md --- ```ts type TextAlignmentType = | "left" | "center" | "right" | "justify" | CSSWideKeywords; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/TextDecorationType.md --- ```ts type TextDecorationType = | "none" | "underline" | "line-through" | "underline line-through" | CSSWideKeywords; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/TextOverflowType.md --- ```ts type TextOverflowType = "clip" | "ellipsis" | CSSWideKeywords; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/TextTransformType.md --- ```ts type TextTransformType = | "none" | "capitalize" | "uppercase" | "lowercase" | CSSWideKeywords; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/UpdateTextTriggerType.md --- ```ts type UpdateTextTriggerType = "focusLost" | "textChanged"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/VerticalAlignmentTextType.md --- ```ts type VerticalAlignmentTextType = | VerticalAlignmentType | "text-top" | "text-bottom" | "sup" | "sub" | "baseline"; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/VerticalAlignmentType.md --- ```ts type VerticalAlignmentType = | "top" | "middle" | "bottom" | "stretch" | CSSWideKeywords; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/VisibilityType.md --- ```ts type VisibilityType = | "visible" | "hidden" | "collapse" | "collapsed" | CSSWideKeywords; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CoreTypes/type-aliases/WhiteSpaceType.md --- ```ts type WhiteSpaceType = "normal" | "nowrap" | "wrap" | CSSWideKeywords; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/CoreTypes/variables/zeroLength.md' --- ```ts const zeroLength: LengthType; ``` Defined in: [core-types/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/core-types/index.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/CSSUtils.md' --- ## Variables | Variable | Description | | ------ | ------ | | [CLASS\_PREFIX](variables/CLASS_PREFIX.md) | - | | [MODAL\_ROOT\_VIEW\_CSS\_CLASS](variables/MODAL_ROOT_VIEW_CSS_CLASS.md) | - | | [ROOT\_VIEW\_CSS\_CLASS](variables/ROOT_VIEW_CSS_CLASS.md) | - | ## Functions | Function | Description | | ------ | ------ | | [getModalRootViewCssClass](functions/getModalRootViewCssClass.md) | - | | [getRootViewCssClasses](functions/getRootViewCssClasses.md) | - | | [getSystemCssClasses](functions/getSystemCssClasses.md) | - | | [pushToRootViewCssClasses](functions/pushToRootViewCssClasses.md) | - | | [pushToSystemCssClasses](functions/pushToSystemCssClasses.md) | - | | [removeFromRootViewCssClasses](functions/removeFromRootViewCssClasses.md) | - | | [removeSystemCssClass](functions/removeSystemCssClass.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/variables/CLASS_PREFIX.md --- ```ts const CLASS_PREFIX: "ns-" = "ns-"; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/css/system-classes.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/variables/MODAL_ROOT_VIEW_CSS_CLASS.md --- ```ts const MODAL_ROOT_VIEW_CSS_CLASS: "ns-modal" = "ns-modal"; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/css/system-classes.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/variables/ROOT_VIEW_CSS_CLASS.md --- ```ts const ROOT_VIEW_CSS_CLASS: "ns-root" = "ns-root"; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/css/system-classes.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/functions/getModalRootViewCssClass.md --- ```ts function getModalRootViewCssClass(): string; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/css/system-classes.ts) ## Returns `string` --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/functions/getRootViewCssClasses.md --- ```ts function getRootViewCssClasses(): string[]; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/css/system-classes.ts) ## Returns `string`\[] --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/functions/getSystemCssClasses.md --- ```ts function getSystemCssClasses(): string[]; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/css/system-classes.ts) ## Returns `string`\[] --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/functions/pushToRootViewCssClasses.md --- ```ts function pushToRootViewCssClasses(value: string): number; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/css/system-classes.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns `number` --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/functions/pushToSystemCssClasses.md --- ```ts function pushToSystemCssClasses(value: string): number; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/css/system-classes.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns `number` --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/functions/removeFromRootViewCssClasses.md --- ```ts function removeFromRootViewCssClasses(value: string): string; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/css/system-classes.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns `string` --- --- url: >- https://docs.nativescript.org/api/namespaces/CSSUtils/functions/removeSystemCssClass.md --- ```ts function removeSystemCssClass(value: string): string; ``` Defined in: [css/system-classes.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/css/system-classes.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/DialogStrings.md' --- ## Variables | Variable | Description | | ------ | ------ | | [ALERT](variables/ALERT.md) | - | | [CANCEL](variables/CANCEL.md) | - | | [CONFIRM](variables/CONFIRM.md) | - | | [LOGIN](variables/LOGIN.md) | - | | [OK](variables/OK.md) | - | | [PROMPT](variables/PROMPT.md) | - | | [STRING](variables/STRING.md) | - | --- --- url: 'https://docs.nativescript.org/api/namespaces/DialogStrings/variables/ALERT.md' --- ```ts const ALERT: "Alert" = "Alert"; ``` Defined in: [ui/dialogs/dialogs-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/dialogs-common.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/DialogStrings/variables/CANCEL.md' --- ```ts const CANCEL: "Cancel" = "Cancel"; ``` Defined in: [ui/dialogs/dialogs-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/dialogs-common.ts) --- --- url: >- https://docs.nativescript.org/api/namespaces/DialogStrings/variables/CONFIRM.md --- ```ts const CONFIRM: "Confirm" = "Confirm"; ``` Defined in: [ui/dialogs/dialogs-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/dialogs-common.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/DialogStrings/variables/LOGIN.md' --- ```ts const LOGIN: "Login" = "Login"; ``` Defined in: [ui/dialogs/dialogs-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/dialogs-common.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/DialogStrings/variables/OK.md' --- ```ts const OK: "OK" = "OK"; ``` Defined in: [ui/dialogs/dialogs-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/dialogs-common.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/DialogStrings/variables/PROMPT.md' --- ```ts const PROMPT: "Prompt" = "Prompt"; ``` Defined in: [ui/dialogs/dialogs-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/dialogs-common.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/DialogStrings/variables/STRING.md' --- ```ts const STRING: "string" = "string"; ``` Defined in: [ui/dialogs/dialogs-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/dialogs-common.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/encoding.md' description: Defines the supported character encodings. --- Defines the supported character encodings. ## Variables | Variable | Description | | ------ | ------ | | [ISO\_8859\_1](variables/ISO_8859_1.md) | Denotes ISO-8859-1 character encoding. | | [US\_ASCII](variables/US_ASCII.md) | Denotes US\_ASCII character encoding. | | [UTF\_16](variables/UTF_16.md) | Denotes UTF\_16 character encoding. | | [UTF\_16BE](variables/UTF_16BE.md) | Denotes UTF\_16BE character encoding. | | [UTF\_16LE](variables/UTF_16LE.md) | Denotes UTF\_16LE character encoding. | | [UTF\_8](variables/UTF_8.md) | Denotes UTF\_8 character encoding. | --- --- url: 'https://docs.nativescript.org/api/namespaces/encoding/variables/ISO_8859_1.md' description: Denotes ISO-8859-1 character encoding. --- ```ts const ISO_8859_1: any; ``` Defined in: [text/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/text/index.d.ts#L10) Denotes ISO-8859-1 character encoding. --- --- url: 'https://docs.nativescript.org/api/namespaces/encoding/variables/US_ASCII.md' description: Denotes US_ASCII character encoding. --- ```ts const US_ASCII: any; ``` Defined in: [text/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/text/index.d.ts#L15) Denotes US\_ASCII character encoding. --- --- url: 'https://docs.nativescript.org/api/namespaces/encoding/variables/UTF_16.md' description: Denotes UTF_16 character encoding. --- ```ts const UTF_16: any; ``` Defined in: [text/index.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/text/index.d.ts#L20) Denotes UTF\_16 character encoding. --- --- url: 'https://docs.nativescript.org/api/namespaces/encoding/variables/UTF_16BE.md' description: Denotes UTF_16BE character encoding. --- ```ts const UTF_16BE: any; ``` Defined in: [text/index.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/text/index.d.ts#L25) Denotes UTF\_16BE character encoding. --- --- url: 'https://docs.nativescript.org/api/namespaces/encoding/variables/UTF_16LE.md' description: Denotes UTF_16LE character encoding. --- ```ts const UTF_16LE: any; ``` Defined in: [text/index.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/text/index.d.ts#L30) Denotes UTF\_16LE character encoding. --- --- url: 'https://docs.nativescript.org/api/namespaces/encoding/variables/UTF_8.md' description: Denotes UTF_8 character encoding. --- ```ts const UTF_8: any; ``` Defined in: [text/index.d.ts:35](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/text/index.d.ts#L35) Denotes UTF\_8 character encoding. --- --- url: 'https://docs.nativescript.org/api/namespaces/FixedLength.md' --- ## Variables | Variable | Description | | ------ | ------ | | [convertToString](variables/convertToString.md) | - | | [equals](variables/equals.md) | - | | [toDevicePixels](variables/toDevicePixels.md) | Converts FixedLengthType unit to device pixels. | ## Functions | Function | Description | | ------ | ------ | | [parse](functions/parse.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/FixedLength/variables/convertToString.md --- ```ts const convertToString: (length: FixedLengthType) => string; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `length` | [`FixedLengthType`](../../CoreTypes/type-aliases/FixedLengthType.md) | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/FixedLength/variables/equals.md' --- ```ts const equals: (a: FixedLengthType, b: FixedLengthType) => boolean; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `a` | [`FixedLengthType`](../../CoreTypes/type-aliases/FixedLengthType.md) | | `b` | [`FixedLengthType`](../../CoreTypes/type-aliases/FixedLengthType.md) | ## Returns `boolean` --- --- url: >- https://docs.nativescript.org/api/namespaces/FixedLength/variables/toDevicePixels.md description: Converts FixedLengthType unit to device pixels. --- ```ts const toDevicePixels: (length: FixedLengthType) => number; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) Converts FixedLengthType unit to device pixels. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `length` | [`FixedLengthType`](../../CoreTypes/type-aliases/FixedLengthType.md) | The FixedLengthType to convert. | ## Returns `number` --- --- url: 'https://docs.nativescript.org/api/namespaces/FixedLength/functions/parse.md' --- ```ts function parse(fromValue: | string | number | LengthDipUnit | LengthPxUnit): FixedLengthType; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `fromValue` | | `string` | `number` | [`LengthDipUnit`](../../CoreTypes/type-aliases/LengthDipUnit.md) | [`LengthPxUnit`](../../CoreTypes/type-aliases/LengthPxUnit.md) | ## Returns [`FixedLengthType`](../../CoreTypes/type-aliases/FixedLengthType.md) --- --- url: 'https://docs.nativescript.org/api/namespaces/FontStyle.md' --- ## Variables | Variable | Description | | ------ | ------ | | [ITALIC](variables/ITALIC.md) | - | | [NORMAL](variables/NORMAL.md) | - | ## Functions | Function | Description | | ------ | ------ | | [isValid](functions/isValid.md) | - | | [parse](functions/parse.md) | - | --- --- url: 'https://docs.nativescript.org/api/namespaces/FontStyle/variables/ITALIC.md' --- ```ts const ITALIC: "italic"; ``` Defined in: [ui/styling/font.d.ts:36](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L36) --- --- url: 'https://docs.nativescript.org/api/namespaces/FontStyle/variables/NORMAL.md' --- ```ts const NORMAL: "normal"; ``` Defined in: [ui/styling/font.d.ts:35](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L35) --- --- url: 'https://docs.nativescript.org/api/namespaces/FontStyle/functions/isValid.md' --- ```ts function isValid(value: any): boolean; ``` Defined in: [ui/styling/font.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L37) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/FontStyle/functions/parse.md' --- ```ts function parse(value: string): FontStyleType; ``` Defined in: [ui/styling/font.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L38) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns `FontStyleType` --- --- url: 'https://docs.nativescript.org/api/namespaces/FontVariationSettings.md' --- ## Functions | Function | Description | | ------ | ------ | | [parse](functions/parse.md) | - | | [toString](functions/toString.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/FontVariationSettings/functions/parse.md --- ```ts function parse(fontVariationSettings: string): FontVariationSettingsType[]; ``` Defined in: [ui/styling/font.d.ts:56](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L56) ## Parameters | Parameter | Type | | ------ | ------ | | `fontVariationSettings` | `string` | ## Returns `FontVariationSettingsType`\[] --- --- url: >- https://docs.nativescript.org/api/namespaces/FontVariationSettings/functions/toString.md --- ```ts function toString(fontVariationSettings: FontVariationSettingsType[]): string; ``` Defined in: [ui/styling/font.d.ts:57](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L57) ## Parameters | Parameter | Type | | ------ | ------ | | `fontVariationSettings` | `FontVariationSettingsType`\[] | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/FontWeight.md' --- ## Variables | Variable | Description | | ------ | ------ | | [BLACK](variables/BLACK.md) | - | | [BOLD](variables/BOLD.md) | - | | [EXTRA\_BOLD](variables/EXTRA_BOLD.md) | - | | [EXTRA\_LIGHT](variables/EXTRA_LIGHT.md) | - | | [LIGHT](variables/LIGHT.md) | - | | [MEDIUM](variables/MEDIUM.md) | - | | [NORMAL](variables/NORMAL.md) | - | | [SEMI\_BOLD](variables/SEMI_BOLD.md) | - | | [THIN](variables/THIN.md) | - | ## Functions | Function | Description | | ------ | ------ | | [isValid](functions/isValid.md) | - | | [parse](functions/parse.md) | - | --- --- url: 'https://docs.nativescript.org/api/namespaces/FontWeight/variables/BLACK.md' --- ```ts const BLACK: "900"; ``` Defined in: [ui/styling/font.d.ts:50](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L50) --- --- url: 'https://docs.nativescript.org/api/namespaces/FontWeight/variables/BOLD.md' --- ```ts const BOLD: "bold"; ``` Defined in: [ui/styling/font.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L48) --- --- url: >- https://docs.nativescript.org/api/namespaces/FontWeight/variables/EXTRA_BOLD.md --- ```ts const EXTRA_BOLD: "800"; ``` Defined in: [ui/styling/font.d.ts:49](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L49) --- --- url: >- https://docs.nativescript.org/api/namespaces/FontWeight/variables/EXTRA_LIGHT.md --- ```ts const EXTRA_LIGHT: "200"; ``` Defined in: [ui/styling/font.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L43) --- --- url: 'https://docs.nativescript.org/api/namespaces/FontWeight/variables/LIGHT.md' --- ```ts const LIGHT: "300"; ``` Defined in: [ui/styling/font.d.ts:44](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L44) --- --- url: 'https://docs.nativescript.org/api/namespaces/FontWeight/variables/MEDIUM.md' --- ```ts const MEDIUM: "500"; ``` Defined in: [ui/styling/font.d.ts:46](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L46) --- --- url: 'https://docs.nativescript.org/api/namespaces/FontWeight/variables/NORMAL.md' --- ```ts const NORMAL: "normal"; ``` Defined in: [ui/styling/font.d.ts:45](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L45) --- --- url: 'https://docs.nativescript.org/api/namespaces/FontWeight/variables/SEMI_BOLD.md' --- ```ts const SEMI_BOLD: "600"; ``` Defined in: [ui/styling/font.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L47) --- --- url: 'https://docs.nativescript.org/api/namespaces/FontWeight/variables/THIN.md' --- ```ts const THIN: "100"; ``` Defined in: [ui/styling/font.d.ts:42](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L42) --- --- url: 'https://docs.nativescript.org/api/namespaces/FontWeight/functions/isValid.md' --- ```ts function isValid(value: any): boolean; ``` Defined in: [ui/styling/font.d.ts:51](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L51) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/FontWeight/functions/parse.md' --- ```ts function parse(value: string): FontWeightType; ``` Defined in: [ui/styling/font.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L52) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns `FontWeightType` --- --- url: 'https://docs.nativescript.org/api/namespaces/GridUnitType.md' --- ## Variables | Variable | Description | | ------ | ------ | | [AUTO](variables/AUTO.md) | - | | [PIXEL](variables/PIXEL.md) | - | | [STAR](variables/STAR.md) | - | ## Functions | Function | Description | | ------ | ------ | | [isValid](functions/isValid.md) | - | | [parse](functions/parse.md) | - | --- --- url: 'https://docs.nativescript.org/api/namespaces/GridUnitType/variables/AUTO.md' --- ```ts const AUTO: "auto"; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:198](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L198) --- --- url: 'https://docs.nativescript.org/api/namespaces/GridUnitType/variables/PIXEL.md' --- ```ts const PIXEL: "pixel"; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:196](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L196) --- --- url: 'https://docs.nativescript.org/api/namespaces/GridUnitType/variables/STAR.md' --- ```ts const STAR: "star"; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:197](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L197) --- --- url: 'https://docs.nativescript.org/api/namespaces/GridUnitType/functions/isValid.md' --- ```ts function isValid(value: any): boolean; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:199](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L199) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/GridUnitType/functions/parse.md' --- ```ts function parse(value: string): GridUnitType; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:200](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L200) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns [`GridUnitType`](../../../../type-aliases/GridUnitType.md) --- --- url: 'https://docs.nativescript.org/api/namespaces/Http.md' --- ## Interfaces | Interface | Description | | ------ | ------ | | [HttpContentHandler](interfaces/HttpContentHandler.md) | - | ## Variables | Variable | Description | | ------ | ------ | | [request](variables/request.md) | Makes a generic http request using the provided options and returns a HttpResponse Object. | ## Functions | Function | Description | | ------ | ------ | | [getBinary](functions/getBinary.md) | Downloads the content from the specified URL as binary and returns an ArrayBuffer. | | [getFile](functions/getFile.md) | Downloads the content from the specified URL and attempts to save it as file. | | [getImage](functions/getImage.md) | Downloads the content from the specified URL and attempts to decode it as an image. | | [getJSON](functions/getJSON.md) | Downloads the content from the specified URL as a string and returns its JSON.parse representation. | | [getString](functions/getString.md) | Downloads the content from the specified URL as a string. | ## References ### Headers Re-exports [Headers](../../../type-aliases/Headers.md) *** ### HttpContent Re-exports [HttpContent](../../../interfaces/HttpContent.md) *** ### HttpRequestOptions Re-exports [HttpRequestOptions](../../../interfaces/HttpRequestOptions.md) *** ### HttpResponse Re-exports [HttpResponse](../../../interfaces/HttpResponse.md) *** ### HttpResponseEncoding Re-exports [HttpResponseEncoding](../../../enumerations/HttpResponseEncoding.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/Http/interfaces/HttpContentHandler.md --- Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/http-interfaces.ts) ## Extended by * [`HttpContent`](../../../../interfaces/HttpContent.md) ## Properties ### toArrayBuffer ```ts toArrayBuffer: () => ArrayBuffer; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/http-interfaces.ts) Gets the response body as ArrayBuffer #### Returns `ArrayBuffer` *** ### toFile ```ts toFile: (destinationFilePath?: string) => File; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/http-interfaces.ts) Gets the response body as file. #### Parameters | Parameter | Type | | ------ | ------ | | `destinationFilePath?` | `string` | #### Returns [`File`](../../../../classes/File.md) *** ### toImage ```ts toImage: () => Promise; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/http-interfaces.ts) Gets the response body as ImageSource. #### Returns `Promise`<[`ImageSource`](../../../../classes/ImageSource.md)> *** ### toJSON ```ts toJSON: (encoding?: HttpResponseEncoding) => any; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/http-interfaces.ts) Gets the response body as JSON object. #### Parameters | Parameter | Type | | ------ | ------ | | `encoding?` | [`HttpResponseEncoding`](../../../../enumerations/HttpResponseEncoding.md) | #### Returns `any` *** ### toString ```ts toString: (encoding?: HttpResponseEncoding) => string; ``` Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/http-interfaces.ts) Gets the response body as string. #### Parameters | Parameter | Type | | ------ | ------ | | `encoding?` | [`HttpResponseEncoding`](../../../../enumerations/HttpResponseEncoding.md) | #### Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/Http/variables/request.md' description: >- Makes a generic http request using the provided options and returns a HttpResponse Object. --- ```ts const request: (options: HttpRequestOptions) => Promise; ``` Defined in: [http/http-request/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/http-request/index.d.ts#L7) Makes a generic http request using the provided options and returns a HttpResponse Object. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`HttpRequestOptions`](../../../../interfaces/HttpRequestOptions.md) | An object that specifies various request options. | ## Returns `Promise`<[`HttpResponse`](../../../../interfaces/HttpResponse.md)> --- --- url: 'https://docs.nativescript.org/api/namespaces/Http/functions/getBinary.md' --- ## Call Signature ```ts function getBinary(url: string): Promise; ``` Defined in: [http/index.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/index.d.ts#L61) Downloads the content from the specified URL as binary and returns an ArrayBuffer. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `url` | `string` | The URL to request from. | ### Returns `Promise`<`ArrayBuffer`> ## Call Signature ```ts function getBinary(options: HttpRequestOptions): Promise; ``` Defined in: [http/index.d.ts:67](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/index.d.ts#L67) Downloads the content from the specified URL as binary and returns an ArrayBuffer. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`HttpRequestOptions`](../../../../interfaces/HttpRequestOptions.md) | An object that specifies various request options. | ### Returns `Promise`<`ArrayBuffer`> --- --- url: 'https://docs.nativescript.org/api/namespaces/Http/functions/getFile.md' --- ## Call Signature ```ts function getFile(url: string, destinationFilePath?: string): Promise; ``` Defined in: [http/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/index.d.ts#L48) Downloads the content from the specified URL and attempts to save it as file. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `url` | `string` | The URL to request from. | | `destinationFilePath?` | `string` | Optional. The downloaded file path. | ### Returns `Promise`<`any`> ## Call Signature ```ts function getFile(options: HttpRequestOptions, destinationFilePath?: string): Promise; ``` Defined in: [http/index.d.ts:55](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/index.d.ts#L55) Downloads the content from the specified URL and attempts to save it as file. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`HttpRequestOptions`](../../../../interfaces/HttpRequestOptions.md) | An object that specifies various request options. | | `destinationFilePath?` | `string` | Optional. The downloaded file path. | ### Returns `Promise`<[`File`](../../../../classes/File.md)> --- --- url: 'https://docs.nativescript.org/api/namespaces/Http/functions/getImage.md' --- ## Call Signature ```ts function getImage(url: string): Promise; ``` Defined in: [http/index.d.ts:35](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/index.d.ts#L35) Downloads the content from the specified URL and attempts to decode it as an image. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `url` | `string` | The URL to request from. | ### Returns `Promise`<[`ImageSource`](../../../../classes/ImageSource.md)> ## Call Signature ```ts function getImage(options: HttpRequestOptions): Promise; ``` Defined in: [http/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/index.d.ts#L41) Downloads the content from the specified URL and attempts to decode it as an image. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`HttpRequestOptions`](../../../../interfaces/HttpRequestOptions.md) | An object that specifies various request options. | ### Returns `Promise`<[`ImageSource`](../../../../classes/ImageSource.md)> --- --- url: 'https://docs.nativescript.org/api/namespaces/Http/functions/getJSON.md' --- ## Call Signature ```ts function getJSON(url: string): Promise; ``` Defined in: [http/index.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/index.d.ts#L23) Downloads the content from the specified URL as a string and returns its JSON.parse representation. ### Type Parameters | Type Parameter | | ------ | | `T` | ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `url` | `string` | The URL to request from. | ### Returns `Promise`<`T`> ## Call Signature ```ts function getJSON(options: HttpRequestOptions): Promise; ``` Defined in: [http/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/index.d.ts#L29) Downloads the content from the specified URL as a string and returns its JSON.parse representation. ### Type Parameters | Type Parameter | | ------ | | `T` | ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`HttpRequestOptions`](../../../../interfaces/HttpRequestOptions.md) | An object that specifies various request options. | ### Returns `Promise`<`T`> --- --- url: 'https://docs.nativescript.org/api/namespaces/Http/functions/getString.md' --- ## Call Signature ```ts function getString(url: string): Promise; ``` Defined in: [http/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/index.d.ts#L11) Downloads the content from the specified URL as a string. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `url` | `string` | The URL to request from. | ### Returns `Promise`<`string`> ## Call Signature ```ts function getString(options: HttpRequestOptions): Promise; ``` Defined in: [http/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/index.d.ts#L17) Downloads the content from the specified URL as a string. ### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options` | [`HttpRequestOptions`](../../../../interfaces/HttpRequestOptions.md) | An object that specifies various request options. | ### Returns `Promise`<`string`> --- --- url: 'https://docs.nativescript.org/api/namespaces/inputType.md' description: Defines the input type for prompt dialog. --- Defines the input type for prompt dialog. ## Variables | Variable | Description | | ------ | ------ | | [decimal](variables/decimal.md) | Decimal input type. | | [email](variables/email.md) | Email input type. | | [number](variables/number.md) | Number input type. | | [password](variables/password.md) | Password input type. | | [phone](variables/phone.md) | Phone input type. | | [text](variables/text.md) | Plain text input type. | --- --- url: 'https://docs.nativescript.org/api/namespaces/inputType/variables/decimal.md' description: Decimal input type. --- ```ts const decimal: string; ``` Defined in: [ui/dialogs/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/index.d.ts#L29) Decimal input type. --- --- url: 'https://docs.nativescript.org/api/namespaces/inputType/variables/email.md' description: Email input type. --- ```ts const email: string; ``` Defined in: [ui/dialogs/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/index.d.ts#L19) Email input type. --- --- url: 'https://docs.nativescript.org/api/namespaces/inputType/variables/number.md' description: Number input type. --- ```ts const number: string; ``` Defined in: [ui/dialogs/index.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/index.d.ts#L24) Number input type. --- --- url: 'https://docs.nativescript.org/api/namespaces/inputType/variables/password.md' description: Password input type. --- ```ts const password: string; ``` Defined in: [ui/dialogs/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/index.d.ts#L14) Password input type. --- --- url: 'https://docs.nativescript.org/api/namespaces/inputType/variables/phone.md' description: Phone input type. --- ```ts const phone: string; ``` Defined in: [ui/dialogs/index.d.ts:34](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/index.d.ts#L34) Phone input type. --- --- url: 'https://docs.nativescript.org/api/namespaces/inputType/variables/text.md' description: Plain text input type. --- ```ts const text: string; ``` Defined in: [ui/dialogs/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/dialogs/index.d.ts#L9) Plain text input type. --- --- url: 'https://docs.nativescript.org/api/namespaces/IOSHelper.md' description: Various iOS view helper methods --- Various iOS view helper methods ## Classes | Class | Description | | ------ | ------ | | [UIAdaptivePresentationControllerDelegateImp](classes/UIAdaptivePresentationControllerDelegateImp.md) | - | | [UILayoutViewController](classes/UILayoutViewController.md) | - | | [UIPopoverPresentationControllerDelegateImp](classes/UIPopoverPresentationControllerDelegateImp.md) | - | ## Variables | Variable | Description | | ------ | ------ | | [traitCollectionColorAppearanceChangedEvent](variables/traitCollectionColorAppearanceChangedEvent.md) | String value used when hooking to traitCollectionColorAppearanceChangedEvent event. | | [traitCollectionLayoutDirectionChangedEvent](variables/traitCollectionLayoutDirectionChangedEvent.md) | String value used when hooking to traitCollectionLayoutDirectionChangedEvent event. | ## Functions | Function | Description | | ------ | ------ | | [expandBeyondSafeArea](functions/expandBeyondSafeArea.md) | - | | [getFrameFromPosition](functions/getFrameFromPosition.md) | - | | [getParentWithViewController](functions/getParentWithViewController.md) | Returns a view with viewController or undefined if no such found along the view's parent chain. | | [getPositionFromFrame](functions/getPositionFromFrame.md) | - | | [invalidateStatusBarAppearance](functions/invalidateStatusBarAppearance.md) | - | | [layoutView](functions/layoutView.md) | - | | [shrinkToSafeArea](functions/shrinkToSafeArea.md) | - | | [updateAutoAdjustScrollInsets](functions/updateAutoAdjustScrollInsets.md) | - | | [updateConstraints](functions/updateConstraints.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/classes/UIAdaptivePresentationControllerDelegateImp.md --- Defined in: [ui/core/view/view-helper/index.d.ts:76](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L76) ## Constructors ### Constructor ```ts new UIAdaptivePresentationControllerDelegateImp(): UIAdaptivePresentationControllerDelegateImp; ``` #### Returns `UIAdaptivePresentationControllerDelegateImp` ## Methods ### initWithOwnerAndCallback() ```ts static initWithOwnerAndCallback(owner: WeakRef, whenClosedCallback: Function): UIAdaptivePresentationControllerDelegateImp; ``` Defined in: [ui/core/view/view-helper/index.d.ts:77](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L77) #### Parameters | Parameter | Type | | ------ | ------ | | `owner` | `WeakRef`<[`View`](../../../../classes/View.md)> | | `whenClosedCallback` | `Function` | #### Returns `UIAdaptivePresentationControllerDelegateImp` --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/classes/UILayoutViewController.md --- Defined in: [ui/core/view/view-helper/index.d.ts:73](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L73) ## Constructors ### Constructor ```ts new UILayoutViewController(): UILayoutViewController; ``` #### Returns `UILayoutViewController` ## Methods ### initWithOwner() ```ts static initWithOwner(owner: WeakRef): UILayoutViewController; ``` Defined in: [ui/core/view/view-helper/index.d.ts:74](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L74) #### Parameters | Parameter | Type | | ------ | ------ | | `owner` | `WeakRef`<[`View`](../../../../classes/View.md)> | #### Returns `UILayoutViewController` --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/classes/UIPopoverPresentationControllerDelegateImp.md --- Defined in: [ui/core/view/view-helper/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L79) ## Constructors ### Constructor ```ts new UIPopoverPresentationControllerDelegateImp(): UIPopoverPresentationControllerDelegateImp; ``` #### Returns `UIPopoverPresentationControllerDelegateImp` ## Methods ### initWithOwnerAndCallback() ```ts static initWithOwnerAndCallback(owner: WeakRef, whenClosedCallback: Function): UIPopoverPresentationControllerDelegateImp; ``` Defined in: [ui/core/view/view-helper/index.d.ts:80](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L80) #### Parameters | Parameter | Type | | ------ | ------ | | `owner` | `WeakRef`<[`View`](../../../../classes/View.md)> | | `whenClosedCallback` | `Function` | #### Returns `UIPopoverPresentationControllerDelegateImp` --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/variables/traitCollectionColorAppearanceChangedEvent.md description: >- String value used when hooking to traitCollectionColorAppearanceChangedEvent event. --- ```ts const traitCollectionColorAppearanceChangedEvent: string; ``` Defined in: [ui/core/view/view-helper/index.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L53) String value used when hooking to traitCollectionColorAppearanceChangedEvent event. --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/variables/traitCollectionLayoutDirectionChangedEvent.md description: >- String value used when hooking to traitCollectionLayoutDirectionChangedEvent event. --- ```ts const traitCollectionLayoutDirectionChangedEvent: string; ``` Defined in: [ui/core/view/view-helper/index.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L58) String value used when hooking to traitCollectionLayoutDirectionChangedEvent event. --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/functions/expandBeyondSafeArea.md --- ```ts function expandBeyondSafeArea(view: View, frame: any): any; ``` Defined in: [ui/core/view/view-helper/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L72) ## Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](../../../../classes/View.md) | | `frame` | `any` | ## Returns `any` --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/functions/getFrameFromPosition.md --- ```ts function getFrameFromPosition(position: Position, insets?: Position): any; ``` Defined in: [ui/core/view/view-helper/index.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L70) ## Parameters | Parameter | Type | | ------ | ------ | | `position` | `Position` | | `insets?` | `Position` | ## Returns `any` --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/functions/getParentWithViewController.md --- ```ts function getParentWithViewController(view: View): View; ``` Defined in: [ui/core/view/view-helper/index.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L64) Returns a view with viewController or undefined if no such found along the view's parent chain. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](../../../../classes/View.md) | The view form which to start the search. | ## Returns [`View`](../../../../classes/View.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/functions/getPositionFromFrame.md --- ```ts function getPositionFromFrame(frame: any): Position; ``` Defined in: [ui/core/view/view-helper/index.d.ts:69](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L69) ## Parameters | Parameter | Type | | ------ | ------ | | `frame` | `any` | ## Returns `Position` --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/functions/invalidateStatusBarAppearance.md --- ```ts function invalidateStatusBarAppearance(controller?: any, reason?: string): void; ``` Defined in: [ui/core/view/view-helper/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L65) ## Parameters | Parameter | Type | | ------ | ------ | | `controller?` | `any` | | `reason?` | `string` | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/IOSHelper/functions/layoutView.md' --- ```ts function layoutView(controller: any, owner: View): void; ``` Defined in: [ui/core/view/view-helper/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L68) ## Parameters | Parameter | Type | | ------ | ------ | | `controller` | `any` | | `owner` | [`View`](../../../../classes/View.md) | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/functions/shrinkToSafeArea.md --- ```ts function shrinkToSafeArea(view: View, frame: any): any; ``` Defined in: [ui/core/view/view-helper/index.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L71) ## Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](../../../../classes/View.md) | | `frame` | `any` | ## Returns `any` --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/functions/updateAutoAdjustScrollInsets.md --- ```ts function updateAutoAdjustScrollInsets(controller: any, owner: View): void; ``` Defined in: [ui/core/view/view-helper/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L66) ## Parameters | Parameter | Type | | ------ | ------ | | `controller` | `any` | | `owner` | [`View`](../../../../classes/View.md) | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/IOSHelper/functions/updateConstraints.md --- ```ts function updateConstraints(controller: any, owner: View): void; ``` Defined in: [ui/core/view/view-helper/index.d.ts:67](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-helper/index.d.ts#L67) ## Parameters | Parameter | Type | | ------ | ------ | | `controller` | `any` | | `owner` | [`View`](../../../../classes/View.md) | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/knownFolders.md' description: >- Provides access to the top-level Folders instances that are accessible from the application. Use these as entry points to access the FileSystem. --- Provides access to the top-level Folders instances that are accessible from the application. Use these as entry points to access the FileSystem. ## Namespaces | Namespace | Description | | ------ | ------ | | [ios](namespaces/ios/index.md) | Contains iOS-specific known folders. | ## Functions | Function | Description | | ------ | ------ | | [currentApp](functions/currentApp.md) | Gets the root folder for the current application. This Folder is private for the application and not accessible from Users/External apps. iOS - this folder is read-only and contains the app and all its resources. | | [documents](functions/documents.md) | Gets the Documents folder available for the current application. This Folder is private for the application and not accessible from Users/External apps. | | [externalDocuments](functions/externalDocuments.md) | Gets the Documents folder available for the current application on an external storage. This Folder is private for the application and not accessible from Users/External apps. On android this requires READ\_EXTERNAL\_STORAGE/WRITE\_EXTERNAL\_STORAGE permissions There is no external storage on iOS os it is the same as `documents()` | | [temp](functions/temp.md) | Gets the Temporary (Caches) folder available for the current application. This Folder is private for the application and not accessible from Users/External apps. | --- --- url: 'https://docs.nativescript.org/api/namespaces/knownFolders/namespaces/ios.md' description: Contains iOS-specific known folders. --- Contains iOS-specific known folders. ## Functions | Function | Description | | ------ | ------ | | [desktop](functions/desktop.md) | Gets the NSDesktopDirectory. Note that the folder will not be created if it did not exist. | | [developer](functions/developer.md) | Gets the NSDeveloperDirectory. Note that the folder will not be created if it did not exist. | | [downloads](functions/downloads.md) | Gets the NSDownloadsDirectory. Note that the folder will not be created if it did not exist. | | [library](functions/library.md) | Gets the NSLibraryDirectory. Note that the folder will not be created if it did not exist. | | [movies](functions/movies.md) | Gets the NSMoviesDirectory. Note that the folder will not be created if it did not exist. | | [music](functions/music.md) | Gets the NSMusicDirectory. Note that the folder will not be created if it did not exist. | | [pictures](functions/pictures.md) | Gets the NSPicturesDirectory. Note that the folder will not be created if it did not exist. | | [sharedPublic](functions/sharedPublic.md) | Gets the NSSharedPublicDirectory. Note that the folder will not be created if it did not exist. | --- --- url: >- https://docs.nativescript.org/api/namespaces/knownFolders/namespaces/ios/functions/desktop.md --- ```ts function desktop(): Folder; ``` Defined in: [file-system/index.d.ts:331](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L331) Gets the NSDesktopDirectory. Note that the folder will not be created if it did not exist. ## Returns [`Folder`](../../../../../../classes/Folder.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/knownFolders/namespaces/ios/functions/developer.md --- ```ts function developer(): Folder; ``` Defined in: [file-system/index.d.ts:326](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L326) Gets the NSDeveloperDirectory. Note that the folder will not be created if it did not exist. ## Returns [`Folder`](../../../../../../classes/Folder.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/knownFolders/namespaces/ios/functions/downloads.md --- ```ts function downloads(): Folder; ``` Defined in: [file-system/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L336) Gets the NSDownloadsDirectory. Note that the folder will not be created if it did not exist. ## Returns [`Folder`](../../../../../../classes/Folder.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/knownFolders/namespaces/ios/functions/library.md --- ```ts function library(): Folder; ``` Defined in: [file-system/index.d.ts:321](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L321) Gets the NSLibraryDirectory. Note that the folder will not be created if it did not exist. ## Returns [`Folder`](../../../../../../classes/Folder.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/knownFolders/namespaces/ios/functions/movies.md --- ```ts function movies(): Folder; ``` Defined in: [file-system/index.d.ts:341](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L341) Gets the NSMoviesDirectory. Note that the folder will not be created if it did not exist. ## Returns [`Folder`](../../../../../../classes/Folder.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/knownFolders/namespaces/ios/functions/music.md --- ```ts function music(): Folder; ``` Defined in: [file-system/index.d.ts:346](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L346) Gets the NSMusicDirectory. Note that the folder will not be created if it did not exist. ## Returns [`Folder`](../../../../../../classes/Folder.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/knownFolders/namespaces/ios/functions/pictures.md --- ```ts function pictures(): Folder; ``` Defined in: [file-system/index.d.ts:351](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L351) Gets the NSPicturesDirectory. Note that the folder will not be created if it did not exist. ## Returns [`Folder`](../../../../../../classes/Folder.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/knownFolders/namespaces/ios/functions/sharedPublic.md --- ```ts function sharedPublic(): Folder; ``` Defined in: [file-system/index.d.ts:356](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L356) Gets the NSSharedPublicDirectory. Note that the folder will not be created if it did not exist. ## Returns [`Folder`](../../../../../../classes/Folder.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/knownFolders/functions/currentApp.md --- ```ts function currentApp(): Folder; ``` Defined in: [file-system/index.d.ts:312](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L312) Gets the root folder for the current application. This Folder is private for the application and not accessible from Users/External apps. iOS - this folder is read-only and contains the app and all its resources. ## Returns [`Folder`](../../../../classes/Folder.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/knownFolders/functions/documents.md --- ```ts function documents(): Folder; ``` Defined in: [file-system/index.d.ts:294](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L294) Gets the Documents folder available for the current application. This Folder is private for the application and not accessible from Users/External apps. ## Returns [`Folder`](../../../../classes/Folder.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/knownFolders/functions/externalDocuments.md --- ```ts function externalDocuments(): Folder; ``` Defined in: [file-system/index.d.ts:301](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L301) Gets the Documents folder available for the current application on an external storage. This Folder is private for the application and not accessible from Users/External apps. On android this requires READ\_EXTERNAL\_STORAGE/WRITE\_EXTERNAL\_STORAGE permissions There is no external storage on iOS os it is the same as `documents()` ## Returns [`Folder`](../../../../classes/Folder.md) --- --- url: 'https://docs.nativescript.org/api/namespaces/knownFolders/functions/temp.md' --- ```ts function temp(): Folder; ``` Defined in: [file-system/index.d.ts:306](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L306) Gets the Temporary (Caches) folder available for the current application. This Folder is private for the application and not accessible from Users/External apps. ## Returns [`Folder`](../../../../classes/Folder.md) --- --- url: 'https://docs.nativescript.org/api/namespaces/Length.md' --- ## Variables | Variable | Description | | ------ | ------ | | [convertToString](variables/convertToString.md) | - | | [equals](variables/equals.md) | - | | [toDevicePixels](variables/toDevicePixels.md) | Converts LengthType unit to device pixels. | ## Functions | Function | Description | | ------ | ------ | | [parse](functions/parse.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/Length/variables/convertToString.md --- ```ts const convertToString: (length: LengthType) => string; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `length` | [`LengthType`](../../CoreTypes/type-aliases/LengthType.md) | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/Length/variables/equals.md' --- ```ts const equals: (a: LengthType, b: LengthType) => boolean; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `a` | [`LengthType`](../../CoreTypes/type-aliases/LengthType.md) | | `b` | [`LengthType`](../../CoreTypes/type-aliases/LengthType.md) | ## Returns `boolean` --- --- url: >- https://docs.nativescript.org/api/namespaces/Length/variables/toDevicePixels.md description: Converts LengthType unit to device pixels. --- ```ts const toDevicePixels: (length: LengthType, auto?: number) => number; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) Converts LengthType unit to device pixels. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `length` | [`LengthType`](../../CoreTypes/type-aliases/LengthType.md) | The LengthType to convert. | | `auto?` | `number` | Value to use for conversion of "auto". By default is Math.NaN. | ## Returns `number` --- --- url: 'https://docs.nativescript.org/api/namespaces/Length/functions/parse.md' --- ```ts function parse(fromValue: | string | number | LengthDipUnit | LengthPxUnit): LengthType; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `fromValue` | | `string` | `number` | [`LengthDipUnit`](../../CoreTypes/type-aliases/LengthDipUnit.md) | [`LengthPxUnit`](../../CoreTypes/type-aliases/LengthPxUnit.md) | ## Returns [`LengthType`](../../CoreTypes/type-aliases/LengthType.md) --- --- url: 'https://docs.nativescript.org/api/namespaces/path.md' description: 'Enables path-specific operations like join, extension, etc.' --- Enables path-specific operations like join, extension, etc. ## Variables | Variable | Description | | ------ | ------ | | [separator](variables/separator.md) | Gets the string used to separate file paths. | ## Functions | Function | Description | | ------ | ------ | | [join](functions/join.md) | Joins all the provided string components, forming a valid and normalized path. | | [normalize](functions/normalize.md) | Normalizes a path, taking care of occurrances like ".." and "//". | --- --- url: 'https://docs.nativescript.org/api/namespaces/path/variables/separator.md' description: Gets the string used to separate file paths. --- ```ts const separator: string; ``` Defined in: [file-system/index.d.ts:379](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L379) Gets the string used to separate file paths. --- --- url: 'https://docs.nativescript.org/api/namespaces/path/functions/join.md' --- ```ts function join(...paths: string[]): string; ``` Defined in: [file-system/index.d.ts:374](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L374) Joins all the provided string components, forming a valid and normalized path. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | ...`paths` | `string`\[] | An array of string components to be joined. | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/path/functions/normalize.md' --- ```ts function normalize(path: string): string; ``` Defined in: [file-system/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L368) Normalizes a path, taking care of occurrances like ".." and "//". ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The path to be normalized. | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/PercentLength.md' --- ## Variables | Variable | Description | | ------ | ------ | | [convertToString](variables/convertToString.md) | - | | [equals](variables/equals.md) | - | | [toDevicePixels](variables/toDevicePixels.md) | Converts PercentLengthType unit to device pixels. | ## Functions | Function | Description | | ------ | ------ | | [parse](functions/parse.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/PercentLength/variables/convertToString.md --- ```ts const convertToString: (length: PercentLengthType) => string; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `length` | [`PercentLengthType`](../../CoreTypes/type-aliases/PercentLengthType.md) | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/PercentLength/variables/equals.md' --- ```ts const equals: (a: PercentLengthType, b: PercentLengthType) => boolean; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `a` | [`PercentLengthType`](../../CoreTypes/type-aliases/PercentLengthType.md) | | `b` | [`PercentLengthType`](../../CoreTypes/type-aliases/PercentLengthType.md) | ## Returns `boolean` --- --- url: >- https://docs.nativescript.org/api/namespaces/PercentLength/variables/toDevicePixels.md description: Converts PercentLengthType unit to device pixels. --- ```ts const toDevicePixels: (length: PercentLengthType, auto: number, parentAvailableWidth: number) => number; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) Converts PercentLengthType unit to device pixels. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `length` | [`PercentLengthType`](../../CoreTypes/type-aliases/PercentLengthType.md) | The PercentLengthType to convert. | | `auto` | `number` | Value to use for conversion of "auto". By default is Math.NaN. | | `parentAvailableWidth` | `number` | Value to use as base when converting percent unit. By default is Math.NaN. | ## Returns `number` --- --- url: 'https://docs.nativescript.org/api/namespaces/PercentLength/functions/parse.md' --- ```ts function parse(fromValue: | string | number | LengthDipUnit | LengthPxUnit): PercentLengthType; ``` Defined in: [ui/styling/length-shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/length-shared.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `fromValue` | | `string` | `number` | [`LengthDipUnit`](../../CoreTypes/type-aliases/LengthDipUnit.md) | [`LengthPxUnit`](../../CoreTypes/type-aliases/LengthPxUnit.md) | ## Returns [`PercentLengthType`](../../CoreTypes/type-aliases/PercentLengthType.md) --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace.md' --- ## Namespaces | Namespace | Description | | ------ | ------ | | [categories](namespaces/categories/index.md) | all predefined categories. | | [messageType](namespaces/messageType/index.md) | - | ## Classes | Class | Description | | ------ | ------ | | [ConsoleWriter](classes/ConsoleWriter.md) | An interface used to define a writer used by trace to print (log). | | [DefaultErrorHandler](classes/DefaultErrorHandler.md) | An interface used to for handling trace error | ## Functions | Function | Description | | ------ | ------ | | [addCategories](functions/addCategories.md) | Adds categories to existing categories the module will trace. | | [addEventListener](functions/addEventListener.md) | - | | [addWriter](functions/addWriter.md) | Adds a TraceWriter instance to the trace module. | | [clearWriters](functions/clearWriters.md) | Clears all the writers from the trace module. | | [disable](functions/disable.md) | Disables the trace module. | | [enable](functions/enable.md) | Enables the trace module. | | [error](functions/error.md) | Passes an error to the registered ErrorHandler | | [getErrorHandler](functions/getErrorHandler.md) | - | | [isCategorySet](functions/isCategorySet.md) | Check if category is already set in trace module. | | [isEnabled](functions/isEnabled.md) | A function that returns whether the tracer is enabled and there is a point in writing messages. Check this to avoid writing complex string templates. Send error messages even if tracing is disabled. | | [notifyEvent](functions/notifyEvent.md) | Notifies all the attached listeners for an event that has occurred in the sender object. | | [removeEventListener](functions/removeEventListener.md) | - | | [removeWriter](functions/removeWriter.md) | Removes a TraceWriter instance from the trace module. | | [setCategories](functions/setCategories.md) | Sets the categories the module will trace. | | [setErrorHandler](functions/setErrorHandler.md) | - | | [write](functions/write.md) | Writes a message using the available writers. | --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories.md' description: all predefined categories. --- all predefined categories. ## Variables | Variable | Description | | ------ | ------ | | [All](variables/All.md) | - | | [Animation](variables/Animation.md) | - | | [Binding](variables/Binding.md) | - | | [BindingError](variables/BindingError.md) | - | | [Debug](variables/Debug.md) | - | | [Error](variables/Error.md) | - | | [Layout](variables/Layout.md) | - | | [Livesync](variables/Livesync.md) | - | | [MediaQuery](variables/MediaQuery.md) | - | | [ModuleNameResolver](variables/ModuleNameResolver.md) | - | | [NativeLifecycle](variables/NativeLifecycle.md) | - | | [Navigation](variables/Navigation.md) | - | | [separator](variables/separator.md) | - | | [Style](variables/Style.md) | - | | [Test](variables/Test.md) | - | | [Transition](variables/Transition.md) | - | | [ViewHierarchy](variables/ViewHierarchy.md) | - | | [VisualTreeEvents](variables/VisualTreeEvents.md) | - | ## Functions | Function | Description | | ------ | ------ | | [concat](functions/concat.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/All.md --- ```ts const All: string; ``` Defined in: [trace/index.d.ts:125](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L125) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/Animation.md --- ```ts const Animation: "Animation" = 'Animation'; ``` Defined in: [trace/index.d.ts:118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L118) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/Binding.md --- ```ts const Binding: "Binding" = 'Binding'; ``` Defined in: [trace/index.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L115) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/BindingError.md --- ```ts const BindingError: "BindingError" = 'BindingError'; ``` Defined in: [trace/index.d.ts:116](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L116) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/Debug.md --- ```ts const Debug: "Debug" = 'Debug'; ``` Defined in: [trace/index.d.ts:112](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L112) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/Error.md --- ```ts const Error: "Error" = 'Error'; ``` Defined in: [trace/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L117) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/Layout.md --- ```ts const Layout: "Layout" = 'Layout'; ``` Defined in: [trace/index.d.ts:108](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L108) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/Livesync.md --- ```ts const Livesync: "Livesync" = 'Livesync'; ``` Defined in: [trace/index.d.ts:120](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L120) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/MediaQuery.md --- ```ts const MediaQuery: "MediaQuery" = 'MediaQuery'; ``` Defined in: [trace/index.d.ts:122](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L122) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/ModuleNameResolver.md --- ```ts const ModuleNameResolver: "ModuleNameResolver" = 'ModuleNameResolver'; ``` Defined in: [trace/index.d.ts:121](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L121) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/NativeLifecycle.md --- ```ts const NativeLifecycle: "NativeLifecycle" = 'NativeLifecycle'; ``` Defined in: [trace/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L111) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/Navigation.md --- ```ts const Navigation: "Navigation" = 'Navigation'; ``` Defined in: [trace/index.d.ts:113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L113) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/separator.md --- ```ts const separator: "," = ','; ``` Defined in: [trace/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L124) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/Style.md --- ```ts const Style: "Style" = 'Style'; ``` Defined in: [trace/index.d.ts:109](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L109) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/Test.md --- ```ts const Test: "Test" = 'Test'; ``` Defined in: [trace/index.d.ts:114](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L114) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/Transition.md --- ```ts const Transition: "Transition" = 'Transition'; ``` Defined in: [trace/index.d.ts:119](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L119) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/ViewHierarchy.md --- ```ts const ViewHierarchy: "ViewHierarchy" = 'ViewHierarchy'; ``` Defined in: [trace/index.d.ts:110](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L110) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/variables/VisualTreeEvents.md --- ```ts const VisualTreeEvents: "VisualTreeEvents" = 'VisualTreeEvents'; ``` Defined in: [trace/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L107) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/categories/functions/concat.md --- ```ts function concat(...args: any): string; ``` Defined in: [trace/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L127) ## Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any` | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/namespaces/messageType.md' --- ## Variables | Variable | Description | | ------ | ------ | | [error](variables/error.md) | - | | [info](variables/info.md) | - | | [log](variables/log.md) | - | | [warn](variables/warn.md) | - | --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/messageType/variables/error.md --- ```ts const error: 3 = 3; ``` Defined in: [trace/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L100) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/messageType/variables/info.md --- ```ts const info: 1 = 1; ``` Defined in: [trace/index.d.ts:98](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L98) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/messageType/variables/log.md --- ```ts const log: 0 = 0; ``` Defined in: [trace/index.d.ts:97](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L97) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/namespaces/messageType/variables/warn.md --- ```ts const warn: 2 = 2; ``` Defined in: [trace/index.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L99) --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/classes/ConsoleWriter.md' description: An interface used to define a writer used by trace to print (log). --- Defined in: [trace/index.d.ts:130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L130) An interface used to define a writer used by trace to print (log). ## Implements * [`TraceWriter`](../../../../interfaces/TraceWriter.md) ## Constructors ### Constructor ```ts new ConsoleWriter(): ConsoleWriter; ``` #### Returns `ConsoleWriter` ## Methods ### write() ```ts write( message: any, category: string, type?: number): void; ``` Defined in: [trace/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L131) #### Parameters | Parameter | Type | | ------ | ------ | | `message` | `any` | | `category` | `string` | | `type?` | `number` | #### Returns `void` #### Implementation of [`TraceWriter`](../../../../interfaces/TraceWriter.md).[`write`](../../../../interfaces/TraceWriter.md#write) --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/classes/DefaultErrorHandler.md description: An interface used to for handling trace error --- Defined in: [trace/index.d.ts:134](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L134) An interface used to for handling trace error ## Implements * [`TraceErrorHandler`](../../../../interfaces/TraceErrorHandler.md) ## Constructors ### Constructor ```ts new DefaultErrorHandler(): DefaultErrorHandler; ``` #### Returns `DefaultErrorHandler` ## Methods ### handlerError() ```ts handlerError(error: any): void; ``` Defined in: [trace/index.d.ts:135](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L135) #### Parameters | Parameter | Type | | ------ | ------ | | `error` | `any` | #### Returns `void` #### Implementation of [`TraceErrorHandler`](../../../../interfaces/TraceErrorHandler.md).[`handlerError`](../../../../interfaces/TraceErrorHandler.md#handlererror) --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/addCategories.md' --- ```ts function addCategories(categories: string): void; ``` Defined in: [trace/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L68) Adds categories to existing categories the module will trace. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `categories` | `string` | The comma-separated list of categories. If not specified all messages from all categories will be traced. | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/functions/addEventListener.md --- ```ts function addEventListener(listener: TraceEventListener): void; ``` Defined in: [trace/index.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L92) ## Parameters | Parameter | Type | | ------ | ------ | | `listener` | [`TraceEventListener`](../../../../interfaces/TraceEventListener.md) | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/addWriter.md' --- ```ts function addWriter(writer: TraceWriter): void; ``` Defined in: [trace/index.d.ts:45](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L45) Adds a TraceWriter instance to the trace module. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `writer` | [`TraceWriter`](../../../../interfaces/TraceWriter.md) | The TraceWriter instance to add. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/clearWriters.md' --- ```ts function clearWriters(): void; ``` Defined in: [trace/index.d.ts:56](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L56) Clears all the writers from the trace module. ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/disable.md' --- ```ts function disable(): void; ``` Defined in: [trace/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L32) Disables the trace module. ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/enable.md' --- ```ts function enable(): void; ``` Defined in: [trace/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L27) Enables the trace module. ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/error.md' --- ```ts function error(error: string | Error): void; ``` Defined in: [trace/index.d.ts:146](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L146) Passes an error to the registered ErrorHandler ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `error` | `string` | `Error` | The error to be handled. | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/functions/getErrorHandler.md --- ```ts function getErrorHandler(): TraceErrorHandler; ``` Defined in: [trace/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L138) ## Returns [`TraceErrorHandler`](../../../../interfaces/TraceErrorHandler.md) --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/isCategorySet.md' --- ```ts function isCategorySet(category: string): boolean; ``` Defined in: [trace/index.d.ts:74](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L74) Check if category is already set in trace module. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `category` | `string` | The category to check. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/isEnabled.md' --- ```ts function isEnabled(): boolean; ``` Defined in: [trace/index.d.ts:39](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L39) A function that returns whether the tracer is enabled and there is a point in writing messages. Check this to avoid writing complex string templates. Send error messages even if tracing is disabled. ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/notifyEvent.md' --- ```ts function notifyEvent( object: Object, name: string, data?: any): void; ``` Defined in: [trace/index.d.ts:90](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L90) Notifies all the attached listeners for an event that has occurred in the sender object. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `object` | `Object` | The Object instance that raised the event. | | `name` | `string` | The name of the raised event. | | `data?` | `any` | An optional parameter that passes the data associated with the event. | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/functions/removeEventListener.md --- ```ts function removeEventListener(listener: TraceEventListener): void; ``` Defined in: [trace/index.d.ts:94](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L94) ## Parameters | Parameter | Type | | ------ | ------ | | `listener` | [`TraceEventListener`](../../../../interfaces/TraceEventListener.md) | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/removeWriter.md' --- ```ts function removeWriter(writer: TraceWriter): void; ``` Defined in: [trace/index.d.ts:51](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L51) Removes a TraceWriter instance from the trace module. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `writer` | [`TraceWriter`](../../../../interfaces/TraceWriter.md) | The TraceWriter instance to remove. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/setCategories.md' --- ```ts function setCategories(categories: string): void; ``` Defined in: [trace/index.d.ts:62](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L62) Sets the categories the module will trace. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `categories` | `string` | The comma-separated list of categories. If not specified all messages from all categories will be traced. | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/Trace/functions/setErrorHandler.md --- ```ts function setErrorHandler(handler: TraceErrorHandler): void; ``` Defined in: [trace/index.d.ts:140](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L140) ## Parameters | Parameter | Type | | ------ | ------ | | `handler` | [`TraceErrorHandler`](../../../../interfaces/TraceErrorHandler.md) | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Trace/functions/write.md' --- ```ts function write( message: any, category: string, type?: number): void; ``` Defined in: [trace/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/trace/index.d.ts#L82) Writes a message using the available writers. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `message` | `any` | The message to be written. | | `category` | `string` | The category of the message. | | `type?` | `number` | Optional, the type of the message - info, warning, error. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils.md' --- ## Namespaces | Namespace | Description | | ------ | ------ | | [layout](namespaces/layout/index.md) | Utility module related to layout. | ## Classes | Class | Description | | ------ | ------ | | [ClassInfo](classes/ClassInfo.md) | A Class holding information about a class | | [ScopeError](classes/ScopeError.md) | An Error class that provides additional context to an error. | | [Source](classes/Source.md) | A class encapsulating information for source code origin. | | [SourceError](classes/SourceError.md) | Represents a scope error providing addiot | ## Type Aliases | Type Alias | Description | | ------ | ------ | | [NativeWindow](type-aliases/NativeWindow.md) | - | ## Variables | Variable | Description | | ------ | ------ | | [~~ad~~](variables/ad.md) | - | | [android](variables/android.md) | Utilities related to Android. | | [CORE\_ANIMATION\_DEFAULTS](variables/CORE_ANIMATION_DEFAULTS.md) | Default animation values used throughout core | | [debug](variables/debug.md) | A runtime option indicating whether the build has debugging enabled. | | [FILE\_PREFIX](variables/FILE_PREFIX.md) | - | | [FONT\_PREFIX](variables/FONT_PREFIX.md) | - | | [ios](variables/ios.md) | Utilities related to iOS. | | [~~iOSNativeHelper~~](variables/iOSNativeHelper.md) | - | | [RESOURCE\_PREFIX](variables/RESOURCE_PREFIX.md) | - | | [SDK\_VERSION](variables/SDK_VERSION.md) | - | | [SYSTEM\_PREFIX](variables/SYSTEM_PREFIX.md) | - | ## Functions | Function | Description | | ------ | ------ | | [clearInterval](functions/clearInterval.md) | Clears repeated function which was set up by calling setInterval(). | | [clearTimeout](functions/clearTimeout.md) | Clears the delay set by a call to the setTimeout function. | | [convertString](functions/convertString.md) | Converts string value to number or boolean. | | [copyToClipboard](functions/copyToClipboard.md) | Copy value to device clipboard. | | [dataDeserialize](functions/dataDeserialize.md) | Data deserialization from Native > JS | | [dataSerialize](functions/dataSerialize.md) | Data serialization from JS > Native | | [debounce](functions/debounce.md) | Creates a debounced function that delays invoking the provided function until after a specified delay | | [dismissKeyboard](functions/dismissKeyboard.md) | Dismiss any keyboard visible on the screen. | | [dismissSoftInput](functions/dismissSoftInput.md) | Hides the soft input method, usually a soft keyboard. | | [dispatchToMainThread](functions/dispatchToMainThread.md) | Dispatches the passed function for execution on the main thread | | [dispatchToUIThread](functions/dispatchToUIThread.md) | Dispatches the passed function for execution on the UI thread | | [eliminateDuplicates](functions/eliminateDuplicates.md) | Removes duplicate elements from array. | | [escapeRegexSymbols](functions/escapeRegexSymbols.md) | Escapes special regex symbols (., \*, ^, $ and so on) in string in order to create a valid regex from it. | | [executeOnMainThread](functions/executeOnMainThread.md) | Checks if the current thread is the main thread. Directly calls the passed function if it is, or dispatches it to the main thread otherwise. | | [executeOnUIThread](functions/executeOnUIThread.md) | Runs the passed function on the UI Thread. | | [GC](functions/GC.md) | An utility function that invokes garbage collection on the JavaScript side. | | [getBaseClasses](functions/getBaseClasses.md) | A function that gets the entire class hierarchy of an object. | | [getClass](functions/getClass.md) | A function that gets the class name of an object. | | [getClassInfo](functions/getClassInfo.md) | A function that gets the ClassInfo for an object. | | [getDurationWithDampingFromSpring](functions/getDurationWithDampingFromSpring.md) | Get a duration with damping value from various spring related settings. Helpful when needing to convert spring settings to isolated duration value. | | [getFileExtension](functions/getFileExtension.md) | Get file extension from file path | | [getModuleName](functions/getModuleName.md) | Gets module name from path. | | [getWindow](functions/getWindow.md) | Get the UIWindow or android.view.Window of the app | | [hasDuplicates](functions/hasDuplicates.md) | Checks if array has any duplicate elements. | | [isBoolean](functions/isBoolean.md) | A function that checks if something is a valid boolean. | | [isDataURI](functions/isDataURI.md) | Returns true if the specified URI is data URI (http://en.wikipedia.org/wiki/Data\_URI\_scheme). | | [isDefined](functions/isDefined.md) | A function that checks if something is defined (not undefined). | | [isEmoji](functions/isEmoji.md) | - | | [isFileOrResourcePath](functions/isFileOrResourcePath.md) | Returns true if the specified path points to a resource or local file. | | [isFontIconURI](functions/isFontIconURI.md) | Returns true if the specified URI is a font icon URI like "fontIcon://\". | | [isFunction](functions/isFunction.md) | A function that checks if something is a function. | | [isMainThread](functions/isMainThread.md) | - | | [isNullOrUndefined](functions/isNullOrUndefined.md) | A function that checks if something is not defined (null or undefined). | | [isNumber](functions/isNumber.md) | A function that checks if something is a valid number. | | [isObject](functions/isObject.md) | A function that checks if something is an object. | | [isRealDevice](functions/isRealDevice.md) | Checks whether the application is running on real device and not on simulator/emulator. | | [isString](functions/isString.md) | A function that checks if something is a valid string. | | [isSystemURI](functions/isSystemURI.md) | Returns true if the specified URI is a system URI like "sys://...". | | [isUndefined](functions/isUndefined.md) | A function that checks if something is "undefined". | | [mainThreadify](functions/mainThreadify.md) | Returns a function wrapper which executes the supplied function on the main thread. The wrapper behaves like the original function and passes all of its arguments BUT discards its return value. | | [merge](functions/merge.md) | - | | [mergeSort](functions/mergeSort.md) | Sorts an array by using merge sort algorithm (which ensures stable sort since the built-in Array.sort() does not promise a stable sort). | | [numberHasDecimals](functions/numberHasDecimals.md) | Checks if the number has decimals | | [numberIs64Bit](functions/numberIs64Bit.md) | Checks if the number is 64 bit | | [openFile](functions/openFile.md) | Opens file. | | [openUrl](functions/openUrl.md) | Opens url. | | [openUrlAsync](functions/openUrlAsync.md) | Opens url asynchronously. | | [queueGC](functions/queueGC.md) | An utility function that queues a garbage collection, multiple calls in quick succession are debounced by default and only one gc will be executed after 900ms. | | [queueMacrotask](functions/queueMacrotask.md) | Queues the passed function to be ran in a macroTask | | [releaseNativeObject](functions/releaseNativeObject.md) | Releases the reference to the wrapped native object | | [sanitizeModuleName](functions/sanitizeModuleName.md) | Helps sanitize a module name if it is prefixed with '~/', '~' or '/' | | [setInterval](functions/setInterval.md) | Calls a function repeatedly with a delay between each call. | | [setTimeout](functions/setTimeout.md) | Calls a function after a specified delay. | | [supportsGlass](functions/supportsGlass.md) | - | | [throttle](functions/throttle.md) | Creates a throttled function that only invokes the provided function at most once per specified delay | | [toUIString](functions/toUIString.md) | Returns a string representation of an object to be shown in UI. | | [verifyCallback](functions/verifyCallback.md) | A function that checks if something is a valid function. | --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout.md' description: Utility module related to layout. --- Utility module related to layout. ## Variables | Variable | Description | | ------ | ------ | | [AT\_MOST](variables/AT_MOST.md) | - | | [EXACTLY](variables/EXACTLY.md) | - | | [MEASURED\_HEIGHT\_STATE\_SHIFT](variables/MEASURED_HEIGHT_STATE_SHIFT.md) | - | | [MEASURED\_SIZE\_MASK](variables/MEASURED_SIZE_MASK.md) | - | | [MEASURED\_STATE\_MASK](variables/MEASURED_STATE_MASK.md) | - | | [MEASURED\_STATE\_TOO\_SMALL](variables/MEASURED_STATE_TOO_SMALL.md) | - | | [MODE\_MASK](variables/MODE_MASK.md) | - | | [MODE\_SHIFT](variables/MODE_SHIFT.md) | Bits that provide the actual measured size. | | [UNSPECIFIED](variables/UNSPECIFIED.md) | - | ## Functions | Function | Description | | ------ | ------ | | [getDisplayDensity](functions/getDisplayDensity.md) | Gets display density for the current device. | | [getMeasureSpecMode](functions/getMeasureSpecMode.md) | Gets measure specification mode from a given specification. | | [getMeasureSpecSize](functions/getMeasureSpecSize.md) | Gets measure specification size from a given specification. | | [getMode](functions/getMode.md) | Gets layout mode from a given specification as string. | | [hasRtlSupport](functions/hasRtlSupport.md) | Checks whether application has RTL support. | | [makeMeasureSpec](functions/makeMeasureSpec.md) | Creates measure specification size from size and mode. | | [measureNativeView](functions/measureNativeView.md) | Converts device pixels to device independent pixes and measure the nativeView. Returns the desired size of the nativeView in device pixels. | | [measureSpecToString](functions/measureSpecToString.md) | Prints user friendly version of the measureSpec. | | [round](functions/round.md) | Rounds value used in layout. | | [toDeviceIndependentPixels](functions/toDeviceIndependentPixels.md) | Convert device pixels to device independent pixels - px to dip. | | [toDevicePixels](functions/toDevicePixels.md) | Convert device independent pixels to device pixels - dip to px. | --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/variables/AT_MOST.md --- ```ts const AT_MOST: number; ``` Defined in: [utils/layout-helper/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L14) --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/variables/EXACTLY.md --- ```ts const EXACTLY: number; ``` Defined in: [utils/layout-helper/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L13) --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/variables/MEASURED_HEIGHT_STATE_SHIFT.md --- ```ts const MEASURED_HEIGHT_STATE_SHIFT: number; ``` Defined in: [utils/layout-helper/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L15) --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/variables/MEASURED_SIZE_MASK.md --- ```ts const MEASURED_SIZE_MASK: number; ``` Defined in: [utils/layout-helper/index.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L18) --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/variables/MEASURED_STATE_MASK.md --- ```ts const MEASURED_STATE_MASK: number; ``` Defined in: [utils/layout-helper/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L17) --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/variables/MEASURED_STATE_TOO_SMALL.md --- ```ts const MEASURED_STATE_TOO_SMALL: number; ``` Defined in: [utils/layout-helper/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L16) --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/variables/MODE_MASK.md --- ```ts const MODE_MASK: number; ``` Defined in: [utils/layout-helper/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L11) --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/variables/MODE_SHIFT.md description: Bits that provide the actual measured size. --- ```ts const MODE_SHIFT: number; ``` Defined in: [utils/layout-helper/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L10) Bits that provide the actual measured size. --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/variables/UNSPECIFIED.md --- ```ts const UNSPECIFIED: number; ``` Defined in: [utils/layout-helper/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L12) --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/functions/getDisplayDensity.md --- ```ts function getDisplayDensity(): number; ``` Defined in: [utils/layout-helper/index.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L53) Gets display density for the current device. ## Returns `number` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/functions/getMeasureSpecMode.md --- ```ts function getMeasureSpecMode(spec: number): number; ``` Defined in: [utils/layout-helper/index.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L30) Gets measure specification mode from a given specification. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `spec` | `number` | The measure specification. | ## Returns `number` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/functions/getMeasureSpecSize.md --- ```ts function getMeasureSpecSize(spec: number): number; ``` Defined in: [utils/layout-helper/index.d.ts:36](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L36) Gets measure specification size from a given specification. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `spec` | `number` | The measure specification. | ## Returns `number` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/functions/getMode.md --- ```ts function getMode(mode: number): string; ``` Defined in: [utils/layout-helper/index.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L24) Gets layout mode from a given specification as string. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `mode` | `number` | The measure specification mode. | ## Returns `string` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/functions/hasRtlSupport.md --- ```ts function hasRtlSupport(): boolean; ``` Defined in: [utils/layout-helper/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L48) Checks whether application has RTL support. ## Returns `boolean` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/functions/makeMeasureSpec.md --- ```ts function makeMeasureSpec(px: number, mode: number): number; ``` Defined in: [utils/layout-helper/index.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L43) Creates measure specification size from size and mode. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `px` | `number` | - | | `mode` | `number` | The mode component of measure specification. | ## Returns `number` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/functions/measureNativeView.md --- ```ts function measureNativeView( nativeView: any, width: number, widthMode: number, height: number, heightMode: number): { height: number; width: number; }; ``` Defined in: [utils/layout-helper/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L82) Converts device pixels to device independent pixes and measure the nativeView. Returns the desired size of the nativeView in device pixels. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `nativeView` | `any` | the nativeView to measure (UIView or android.view.View) | | `width` | `number` | the available width | | `widthMode` | `number` | width mode - UNSPECIFIED, EXACTLY or AT\_MOST | | `height` | `number` | the available hegiht | | `heightMode` | `number` | height mode - UNSPECIFIED, EXACTLY or AT\_MOST | ## Returns ```ts { height: number; width: number; } ``` ### height ```ts height: number; ``` ### width ```ts width: number; ``` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/functions/measureSpecToString.md --- ```ts function measureSpecToString(measureSpec: number): string; ``` Defined in: [utils/layout-helper/index.d.ts:88](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L88) Prints user friendly version of the measureSpec. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measureSpec` | `number` | the spec to print | ## Returns `string` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/functions/round.md --- ```ts function round(px: number): number; ``` Defined in: [utils/layout-helper/index.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L71) Rounds value used in layout. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `px` | `number` | to round. | ## Returns `number` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/functions/toDeviceIndependentPixels.md --- ```ts function toDeviceIndependentPixels(value: number): number; ``` Defined in: [utils/layout-helper/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L65) Convert device pixels to device independent pixels - px to dip. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `number` | The pixel to convert. | ## Returns `number` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/namespaces/layout/functions/toDevicePixels.md --- ```ts function toDevicePixels(value: number): number; ``` Defined in: [utils/layout-helper/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/layout-helper/index.d.ts#L59) Convert device independent pixels to device pixels - dip to px. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `number` | The pixel to convert. | ## Returns `number` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/classes/ClassInfo.md' description: A Class holding information about a class --- Defined in: [utils/types.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L100) A Class holding information about a class ## Constructors ### Constructor ```ts new ClassInfo(): ClassInfo; ``` #### Returns `ClassInfo` ## Properties ### baseClassInfo ```ts baseClassInfo: ClassInfo; ``` Defined in: [utils/types.d.ts:109](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L109) Gets the ClassInfo for the base class of the current info. *** ### name ```ts name: string; ``` Defined in: [utils/types.d.ts:104](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L104) Gets the name of the class. --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/classes/ScopeError.md' description: An Error class that provides additional context to an error. --- Defined in: [utils/debug.d.ts:44](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L44) An Error class that provides additional context to an error. ## Extends * `Error` ## Extended by * [`SourceError`](SourceError.md) ## Constructors ### Constructor ```ts new ScopeError(child: Error, message?: string): ScopeError; ``` Defined in: [utils/debug.d.ts:50](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L50) Creates a new ScopeError providing addtional context to the child error. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | `Error` | The child error to extend. | | `message?` | `string` | Additional message to prepend to the child error. | #### Returns `ScopeError` #### Overrides ```ts Error.constructor ``` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/classes/Source.md' description: A class encapsulating information for source code origin. --- Defined in: [utils/debug.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L9) A class encapsulating information for source code origin. ## Constructors ### Constructor ```ts new Source( uri: string, line: number, column: number): Source; ``` Defined in: [utils/debug.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L13) Creates a new Source instance by given uri, line and column. #### Parameters | Parameter | Type | | ------ | ------ | | `uri` | `string` | | `line` | `number` | | `column` | `number` | #### Returns `Source` ## Properties ### column ```ts column: number; ``` Defined in: [utils/debug.d.ts:28](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L28) Gets the position in the source document. *** ### line ```ts line: number; ``` Defined in: [utils/debug.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L23) Gets the line in the source document. *** ### uri ```ts uri: string; ``` Defined in: [utils/debug.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L18) Gets the URI of the source document; ## Methods ### get() ```ts static get(object: any): Source; ``` Defined in: [utils/debug.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L33) Get the source of an object. #### Parameters | Parameter | Type | | ------ | ------ | | `object` | `any` | #### Returns `Source` *** ### set() ```ts static set(object: any, src: Source): any; ``` Defined in: [utils/debug.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L38) Set the source of an object. #### Parameters | Parameter | Type | | ------ | ------ | | `object` | `any` | | `src` | `Source` | #### Returns `any` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/classes/SourceError.md' description: Represents a scope error providing addiot --- Defined in: [utils/debug.d.ts:56](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L56) Represents a scope error providing addiot ## Extends * [`ScopeError`](ScopeError.md) ## Constructors ### Constructor ```ts new SourceError( child: Error, source: Source, message?: string): SourceError; ``` Defined in: [utils/debug.d.ts:63](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L63) Creates a new SourceError by child error, source and optional message. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | `Error` | The child error to extend. | | `source` | [`Source`](Source.md) | The source where the error occured. | | `message?` | `string` | Additonal message to prepend along the source location and the child error's message. | #### Returns `SourceError` #### Overrides [`ScopeError`](ScopeError.md).[`constructor`](ScopeError.md#constructor) --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/type-aliases/NativeWindow.md --- ```ts type NativeWindow = android.view.Window | UIWindow; ``` Defined in: [utils/native-helper.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/native-helper.d.ts#L17) --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/variables/ad.md' --- ```ts const ad: { collections: { stringArrayToStringSet: HashSet; stringSetToStringArray: string[]; }; dismissSoftInput: (nativeView?: View) => void; getApplication: () => Application; getApplicationContext: () => Context; getCurrentActivity: () => any; getInputMethodManager: () => InputMethodManager; getPackageName: () => string; getResources: () => Resources; getWindow: () => Window; resources: { getDrawableId: (name: any) => number; getId: (name: string) => number; getPaletteColor: (name: string, context: Context) => number; getResource: (name: string, type?: string) => number; getStringId: (name: any) => number; }; showSoftInput: (nativeView: View) => void; enableEdgeToEdge: void; getIgnoreEdgeToEdgeOnOlderDevices: boolean; setDarkModeHandler: void; setIgnoreEdgeToEdgeOnOlderDevices: void; setNavigationBarColor: void; setStatusBarColor: void; } = android; ``` Defined in: [utils/native-helper.d.ts:172](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/native-helper.d.ts#L172) ## Type Declaration ### ~~collections~~ ```ts collections: { stringArrayToStringSet: HashSet; stringSetToStringArray: string[]; }; ``` Utilities related to Android collections. #### collections.stringArrayToStringSet() ```ts stringArrayToStringSet(str: string[]): HashSet; ``` Converts string array into a String [hash set](http://developer.android.com/reference/java/util/HashSet.html). ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `str` | `string`\[] | An array of strings to convert. | ##### Returns `HashSet`<`string`> #### collections.stringSetToStringArray() ```ts stringSetToStringArray(stringSet: any): string[]; ``` Converts string hash set into array of strings. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `stringSet` | `any` | A string hash set to convert. | ##### Returns `string`\[] ### ~~dismissSoftInput~~ ```ts dismissSoftInput: (nativeView?: View) => void; ``` Hides the soft input method, usually a soft keyboard. #### Parameters | Parameter | Type | | ------ | ------ | | `nativeView?` | `View` | #### Returns `void` ### ~~getApplication~~ ```ts getApplication: () => Application; ``` Gets the native Android application instance. #### Returns `Application` ### ~~getApplicationContext~~ ```ts getApplicationContext: () => Context; ``` Gets the Android application context. #### Returns `Context` ### ~~getCurrentActivity~~ ```ts getCurrentActivity: () => any; ``` Get the current native Android activity. #### Returns `any` ### ~~getInputMethodManager~~ ```ts getInputMethodManager: () => InputMethodManager; ``` Gets the native Android input method manager. #### Returns `InputMethodManager` ### ~~getPackageName~~ ```ts getPackageName: () => string; ``` #### Returns `string` ### ~~getResources~~ ```ts getResources: () => Resources; ``` Gets the native Android application resources. #### Returns `Resources` ### ~~getWindow~~ ```ts getWindow: () => Window; ``` #### Returns `Window` application window. #### Deprecated Use `Utils.getWindow()` instead. ### ~~resources~~ ```ts resources: { getDrawableId: (name: any) => number; getId: (name: string) => number; getPaletteColor: (name: string, context: Context) => number; getResource: (name: string, type?: string) => number; getStringId: (name: any) => number; }; ``` Utilities related to Android resources. #### resources.getDrawableId ```ts getDrawableId: (name: any) => number; ``` Gets the drawable id from a given name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `any` | Name of the resource. | ##### Returns `number` #### resources.getId ```ts getId: (name: string) => number; ``` Gets the id from a given name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the resource. | ##### Returns `number` #### resources.getPaletteColor ```ts getPaletteColor: (name: string, context: Context) => number; ``` Gets a color from the current theme. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the color resource. | | `context` | `Context` | Context to resolve the color. | ##### Returns `number` #### resources.getResource ```ts getResource: (name: string, type?: string) => number; ``` Gets the id from a given name with optional type. This sets an explicit package name. https://developer.android.com/reference/android/content/res/Resources#getIdentifier(java.lang.String,%20java.lang.String,%20java.lang.String) ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the resource. | | `type?` | `string` | (Optional) type | ##### Returns `number` #### resources.getStringId ```ts getStringId: (name: any) => number; ``` Gets the string id from a given name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `any` | Name of the resource. | ##### Returns `number` ### ~~showSoftInput~~ ```ts showSoftInput: (nativeView: View) => void; ``` Shows the soft input method, usually a soft keyboard. #### Parameters | Parameter | Type | | ------ | ------ | | `nativeView` | `View` | #### Returns `void` ### ~~enableEdgeToEdge()~~ #### Call Signature ```ts enableEdgeToEdge(activityOrWindow: ComponentActivity, options?: { handleDarkMode?: (bar: "status" | "navigation", resources: Resources) => boolean; navigationBarDarkColor?: Color; navigationBarLightColor?: Color; statusBarDarkColor?: Color; statusBarLightColor?: Color; }): void; ``` Enables edge-to-edge navigation for the provided activity. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `activityOrWindow` | `ComponentActivity` | - | | `options?` | { `handleDarkMode?`: (`bar`: `"status"` | `"navigation"`, `resources`: `Resources`) => `boolean`; `navigationBarDarkColor?`: `Color`; `navigationBarLightColor?`: `Color`; `statusBarDarkColor?`: `Color`; `statusBarLightColor?`: `Color`; } | Optional configuration for status and navigation bar colors. | | `options.handleDarkMode?` | (`bar`: `"status"` | `"navigation"`, `resources`: `Resources`) => `boolean` | - | | `options.navigationBarDarkColor?` | `Color` | - | | `options.navigationBarLightColor?` | `Color` | - | | `options.statusBarDarkColor?` | `Color` | - | | `options.statusBarLightColor?` | `Color` | - | ##### Returns `void` #### Call Signature ```ts enableEdgeToEdge( activity: ComponentActivity, window: Window, options?: { handleDarkMode?: (bar: "status" | "navigation", resources: Resources) => boolean; navigationBarDarkColor?: Color; navigationBarLightColor?: Color; statusBarDarkColor?: Color; statusBarLightColor?: Color; }): void; ``` Enables edge-to-edge navigation for the provided Window. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `activity` | `ComponentActivity` | The activity to enable edge-to-edge navigation for. | | `window` | `Window` | - | | `options?` | { `handleDarkMode?`: (`bar`: `"status"` | `"navigation"`, `resources`: `Resources`) => `boolean`; `navigationBarDarkColor?`: `Color`; `navigationBarLightColor?`: `Color`; `statusBarDarkColor?`: `Color`; `statusBarLightColor?`: `Color`; } | Optional configuration for status and navigation bar colors. | | `options.handleDarkMode?` | (`bar`: `"status"` | `"navigation"`, `resources`: `Resources`) => `boolean` | - | | `options.navigationBarDarkColor?` | `Color` | - | | `options.navigationBarLightColor?` | `Color` | - | | `options.statusBarDarkColor?` | `Color` | - | | `options.statusBarLightColor?` | `Color` | - | ##### Returns `void` ### ~~getIgnoreEdgeToEdgeOnOlderDevices()~~ ```ts getIgnoreEdgeToEdgeOnOlderDevices(): boolean; ``` Gets whether edge-to-edge is ignored on older devices (API 34 an older). #### Returns `boolean` ### ~~setDarkModeHandler()~~ ```ts setDarkModeHandler(options?: { activity?: AppCompatActivity; handler: (bar: "status" | "navigation", resources: Resources) => boolean; }): void; ``` Sets the dark mode handler for the application. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | { `activity?`: `AppCompatActivity`; `handler`: (`bar`: `"status"` | `"navigation"`, `resources`: `Resources`) => `boolean`; } | Options to set dark mode handler. | | `options.activity?` | `AppCompatActivity` | - | | `options.handler?` | (`bar`: `"status"` | `"navigation"`, `resources`: `Resources`) => `boolean` | - | #### Returns `void` ### ~~setIgnoreEdgeToEdgeOnOlderDevices()~~ ```ts setIgnoreEdgeToEdgeOnOlderDevices(value: boolean): void; ``` Sets whether to ignore edge-to-edge on older devices (API 34 an older). #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | #### Returns `void` ### ~~setNavigationBarColor()~~ ```ts setNavigationBarColor(options?: { activity?: AppCompatActivity; darkColor?: Color; lightColor?: Color; }): void; ``` Sets the navigation bar color for the application. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | { `activity?`: `AppCompatActivity`; `darkColor?`: `Color`; `lightColor?`: `Color`; } | Options to set navigation bar color. | | `options.activity?` | `AppCompatActivity` | - | | `options.darkColor?` | `Color` | - | | `options.lightColor?` | `Color` | - | #### Returns `void` ### ~~setStatusBarColor()~~ ```ts setStatusBarColor(options?: { activity?: AppCompatActivity; darkColor?: Color; lightColor?: Color; }): void; ``` Sets the status bar color for the application. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | { `activity?`: `AppCompatActivity`; `darkColor?`: `Color`; `lightColor?`: `Color`; } | Options to set status bar color. | | `options.activity?` | `AppCompatActivity` | - | | `options.darkColor?` | `Color` | - | | `options.lightColor?` | `Color` | - | #### Returns `void` ## Deprecated use Utils.android instead. --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/variables/android.md' description: Utilities related to Android. --- ```ts const android: { collections: { stringArrayToStringSet: HashSet; stringSetToStringArray: string[]; }; dismissSoftInput: (nativeView?: android.view.View) => void; getApplication: () => android.app.Application; getApplicationContext: () => android.content.Context; getCurrentActivity: () => androidx.appcompat.app.AppCompatActivity | android.app.Activity | null; getInputMethodManager: () => android.view.inputmethod.InputMethodManager; getPackageName: () => string; getResources: () => android.content.res.Resources; getWindow: () => android.view.Window; resources: { getDrawableId: (name: any) => number; getId: (name: string) => number; getPaletteColor: (name: string, context: android.content.Context) => number; getResource: (name: string, type?: string) => number; getStringId: (name: any) => number; }; showSoftInput: (nativeView: android.view.View) => void; enableEdgeToEdge: void; getIgnoreEdgeToEdgeOnOlderDevices: boolean; setDarkModeHandler: void; setIgnoreEdgeToEdgeOnOlderDevices: void; setNavigationBarColor: void; setStatusBarColor: void; }; ``` Defined in: [utils/native-helper.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/native-helper.d.ts#L26) Utilities related to Android. ## Type Declaration ### collections ```ts collections: { stringArrayToStringSet: HashSet; stringSetToStringArray: string[]; }; ``` Utilities related to Android collections. #### collections.stringArrayToStringSet() ```ts stringArrayToStringSet(str: string[]): HashSet; ``` Converts string array into a String [hash set](http://developer.android.com/reference/java/util/HashSet.html). ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `str` | `string`\[] | An array of strings to convert. | ##### Returns `HashSet`<`string`> #### collections.stringSetToStringArray() ```ts stringSetToStringArray(stringSet: any): string[]; ``` Converts string hash set into array of strings. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `stringSet` | `any` | A string hash set to convert. | ##### Returns `string`\[] ### dismissSoftInput ```ts dismissSoftInput: (nativeView?: android.view.View) => void; ``` Hides the soft input method, usually a soft keyboard. #### Parameters | Parameter | Type | | ------ | ------ | | `nativeView?` | `android.view.View` | #### Returns `void` ### getApplication ```ts getApplication: () => android.app.Application; ``` Gets the native Android application instance. #### Returns `android.app.Application` ### getApplicationContext ```ts getApplicationContext: () => android.content.Context; ``` Gets the Android application context. #### Returns `android.content.Context` ### getCurrentActivity ```ts getCurrentActivity: () => androidx.appcompat.app.AppCompatActivity | android.app.Activity | null; ``` Get the current native Android activity. #### Returns `androidx.appcompat.app.AppCompatActivity` | `android.app.Activity` | `null` ### getInputMethodManager ```ts getInputMethodManager: () => android.view.inputmethod.InputMethodManager; ``` Gets the native Android input method manager. #### Returns `android.view.inputmethod.InputMethodManager` ### getPackageName ```ts getPackageName: () => string; ``` #### Returns `string` ### getResources ```ts getResources: () => android.content.res.Resources; ``` Gets the native Android application resources. #### Returns `android.content.res.Resources` ### ~~getWindow~~ ```ts getWindow: () => android.view.Window; ``` #### Returns `android.view.Window` application window. #### Deprecated Use `Utils.getWindow()` instead. ### resources ```ts resources: { getDrawableId: (name: any) => number; getId: (name: string) => number; getPaletteColor: (name: string, context: android.content.Context) => number; getResource: (name: string, type?: string) => number; getStringId: (name: any) => number; }; ``` Utilities related to Android resources. #### resources.getDrawableId ```ts getDrawableId: (name: any) => number; ``` Gets the drawable id from a given name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `any` | Name of the resource. | ##### Returns `number` #### resources.getId ```ts getId: (name: string) => number; ``` Gets the id from a given name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the resource. | ##### Returns `number` #### resources.getPaletteColor ```ts getPaletteColor: (name: string, context: android.content.Context) => number; ``` Gets a color from the current theme. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the color resource. | | `context` | `android.content.Context` | Context to resolve the color. | ##### Returns `number` #### resources.getResource ```ts getResource: (name: string, type?: string) => number; ``` Gets the id from a given name with optional type. This sets an explicit package name. https://developer.android.com/reference/android/content/res/Resources#getIdentifier(java.lang.String,%20java.lang.String,%20java.lang.String) ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the resource. | | `type?` | `string` | (Optional) type | ##### Returns `number` #### resources.getStringId ```ts getStringId: (name: any) => number; ``` Gets the string id from a given name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `any` | Name of the resource. | ##### Returns `number` ### showSoftInput ```ts showSoftInput: (nativeView: android.view.View) => void; ``` Shows the soft input method, usually a soft keyboard. #### Parameters | Parameter | Type | | ------ | ------ | | `nativeView` | `android.view.View` | #### Returns `void` ### enableEdgeToEdge() #### Call Signature ```ts enableEdgeToEdge(activityOrWindow: ComponentActivity, options?: { handleDarkMode?: (bar: "status" | "navigation", resources: android.content.res.Resources) => boolean; navigationBarDarkColor?: Color; navigationBarLightColor?: Color; statusBarDarkColor?: Color; statusBarLightColor?: Color; }): void; ``` Enables edge-to-edge navigation for the provided activity. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `activityOrWindow` | `ComponentActivity` | - | | `options?` | { `handleDarkMode?`: (`bar`: `"status"` | `"navigation"`, `resources`: `android.content.res.Resources`) => `boolean`; `navigationBarDarkColor?`: `Color`; `navigationBarLightColor?`: `Color`; `statusBarDarkColor?`: `Color`; `statusBarLightColor?`: `Color`; } | Optional configuration for status and navigation bar colors. | | `options.handleDarkMode?` | (`bar`: `"status"` | `"navigation"`, `resources`: `android.content.res.Resources`) => `boolean` | - | | `options.navigationBarDarkColor?` | `Color` | - | | `options.navigationBarLightColor?` | `Color` | - | | `options.statusBarDarkColor?` | `Color` | - | | `options.statusBarLightColor?` | `Color` | - | ##### Returns `void` #### Call Signature ```ts enableEdgeToEdge( activity: ComponentActivity, window: Window, options?: { handleDarkMode?: (bar: "status" | "navigation", resources: android.content.res.Resources) => boolean; navigationBarDarkColor?: Color; navigationBarLightColor?: Color; statusBarDarkColor?: Color; statusBarLightColor?: Color; }): void; ``` Enables edge-to-edge navigation for the provided Window. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `activity` | `ComponentActivity` | The activity to enable edge-to-edge navigation for. | | `window` | `Window` | - | | `options?` | { `handleDarkMode?`: (`bar`: `"status"` | `"navigation"`, `resources`: `android.content.res.Resources`) => `boolean`; `navigationBarDarkColor?`: `Color`; `navigationBarLightColor?`: `Color`; `statusBarDarkColor?`: `Color`; `statusBarLightColor?`: `Color`; } | Optional configuration for status and navigation bar colors. | | `options.handleDarkMode?` | (`bar`: `"status"` | `"navigation"`, `resources`: `android.content.res.Resources`) => `boolean` | - | | `options.navigationBarDarkColor?` | `Color` | - | | `options.navigationBarLightColor?` | `Color` | - | | `options.statusBarDarkColor?` | `Color` | - | | `options.statusBarLightColor?` | `Color` | - | ##### Returns `void` ### getIgnoreEdgeToEdgeOnOlderDevices() ```ts getIgnoreEdgeToEdgeOnOlderDevices(): boolean; ``` Gets whether edge-to-edge is ignored on older devices (API 34 an older). #### Returns `boolean` ### setDarkModeHandler() ```ts setDarkModeHandler(options?: { activity?: androidx.appcompat.app.AppCompatActivity; handler: (bar: "status" | "navigation", resources: android.content.res.Resources) => boolean; }): void; ``` Sets the dark mode handler for the application. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | { `activity?`: `androidx.appcompat.app.AppCompatActivity`; `handler`: (`bar`: `"status"` | `"navigation"`, `resources`: `android.content.res.Resources`) => `boolean`; } | Options to set dark mode handler. | | `options.activity?` | `androidx.appcompat.app.AppCompatActivity` | - | | `options.handler?` | (`bar`: `"status"` | `"navigation"`, `resources`: `android.content.res.Resources`) => `boolean` | - | #### Returns `void` ### setIgnoreEdgeToEdgeOnOlderDevices() ```ts setIgnoreEdgeToEdgeOnOlderDevices(value: boolean): void; ``` Sets whether to ignore edge-to-edge on older devices (API 34 an older). #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | #### Returns `void` ### setNavigationBarColor() ```ts setNavigationBarColor(options?: { activity?: androidx.appcompat.app.AppCompatActivity; darkColor?: Color; lightColor?: Color; }): void; ``` Sets the navigation bar color for the application. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | { `activity?`: `androidx.appcompat.app.AppCompatActivity`; `darkColor?`: `Color`; `lightColor?`: `Color`; } | Options to set navigation bar color. | | `options.activity?` | `androidx.appcompat.app.AppCompatActivity` | - | | `options.darkColor?` | `Color` | - | | `options.lightColor?` | `Color` | - | #### Returns `void` ### setStatusBarColor() ```ts setStatusBarColor(options?: { activity?: androidx.appcompat.app.AppCompatActivity; darkColor?: Color; lightColor?: Color; }): void; ``` Sets the status bar color for the application. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | { `activity?`: `androidx.appcompat.app.AppCompatActivity`; `darkColor?`: `Color`; `lightColor?`: `Color`; } | Options to set status bar color. | | `options.activity?` | `androidx.appcompat.app.AppCompatActivity` | - | | `options.darkColor?` | `Color` | - | | `options.lightColor?` | `Color` | - | #### Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/variables/CORE_ANIMATION_DEFAULTS.md description: Default animation values used throughout core --- ```ts const CORE_ANIMATION_DEFAULTS: { duration: number; spring: { friction: number; mass: number; tension: number; velocity: number; }; }; ``` Defined in: [utils/animation-helpers.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/animation-helpers.ts) Default animation values used throughout core ## Type Declaration ### duration ```ts duration: number; ``` ### spring ```ts spring: { friction: number; mass: number; tension: number; velocity: number; }; ``` #### spring.friction ```ts friction: number; ``` #### spring.mass ```ts mass: number; ``` #### spring.tension ```ts tension: number; ``` #### spring.velocity ```ts velocity: number; ``` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/variables/debug.md' description: A runtime option indicating whether the build has debugging enabled. --- ```ts debug: boolean; ``` Defined in: [utils/debug.d.ts:4](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/debug.d.ts#L4) A runtime option indicating whether the build has debugging enabled. --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/variables/FILE_PREFIX.md' --- ```ts const FILE_PREFIX: string; ``` Defined in: [utils/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L14) --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/variables/FONT_PREFIX.md' --- ```ts const FONT_PREFIX: "font://" = "font://"; ``` Defined in: [utils/common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/common.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/variables/ios.md' description: Utilities related to iOS. --- ```ts const ios: { animateWithSpring: (options?: { animateOptions?: UIViewAnimationOptions; animations?: () => void; completion?: (finished?: boolean) => void; delay?: number; friction?: number; mass?: number; tension?: number; velocity?: number; }) => void; applyRotateTransform: (transform: CATransform3D, x: number, y: number, z: number) => CATransform3D; collections: { jsArrayToNSArray: NSArray; nsArrayToJSArray: T[]; }; copyLayerProperties: (view: UIView, toView: UIView, customProperties?: { layer?: keyof CALayer[]; view?: keyof UIView[]; }) => void; createUIDocumentInteractionControllerDelegate: () => NSObject; getCurrentAppPath: () => string; getMainScreen: () => UIScreen; getRootViewController: () => UIViewController; getVisibleViewController: (rootViewController: UIViewController) => UIViewController; getWindow: () => UIWindow; isLandscape: () => boolean; joinPaths: (...paths: string[]) => string; MajorVersion: number; printCGRect: (rect: CGRect) => void; setWindowBackgroundColor: (value: string) => void; snapshotView: (view: UIView, scale: number) => UIImage; }; ``` Defined in: [utils/native-helper.d.ts:177](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/native-helper.d.ts#L177) Utilities related to iOS. ## Type Declaration ### animateWithSpring ```ts animateWithSpring: (options?: { animateOptions?: UIViewAnimationOptions; animations?: () => void; completion?: (finished?: boolean) => void; delay?: number; friction?: number; mass?: number; tension?: number; velocity?: number; }) => void; ``` Animate views with a configurable spring effect #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | { `animateOptions?`: `UIViewAnimationOptions`; `animations?`: () => `void`; `completion?`: (`finished?`: `boolean`) => `void`; `delay?`: `number`; `friction?`: `number`; `mass?`: `number`; `tension?`: `number`; `velocity?`: `number`; } | various animation settings for the spring - tension: number - friction: number - mass: number - delay: number - velocity: number - animateOptions: UIViewAnimationOptions - animations: () => void, Callback containing the property changes you want animated - completion: (finished: boolean) => void, Callback when animation is finished | | `options.animateOptions?` | `UIViewAnimationOptions` | - | | `options.animations?` | () => `void` | - | | `options.completion?` | (`finished?`: `boolean`) => `void` | - | | `options.delay?` | `number` | - | | `options.friction?` | `number` | - | | `options.mass?` | `number` | - | | `options.tension?` | `number` | - | | `options.velocity?` | `number` | - | #### Returns `void` ### applyRotateTransform ```ts applyRotateTransform: (transform: CATransform3D, x: number, y: number, z: number) => CATransform3D; ``` Applies a rotation transform over X,Y and Z axis #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `transform` | `CATransform3D` | Applies a rotation transform over X,Y and Z axis | | `x` | `number` | Rotation over X axis in degrees | | `y` | `number` | Rotation over Y axis in degrees | | `z` | `number` | Rotation over Z axis in degrees | #### Returns `CATransform3D` ### collections ```ts collections: { jsArrayToNSArray: NSArray; nsArrayToJSArray: T[]; }; ``` Utilities related to iOS collections. #### collections.jsArrayToNSArray() ```ts jsArrayToNSArray(str: T[]): NSArray; ``` Converts JavaScript array to [NSArray](https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/). ##### Type Parameters | Type Parameter | | ------ | | `T` | ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `str` | `T`\[] | JavaScript string array to convert. | ##### Returns `NSArray`<`T`> #### collections.nsArrayToJSArray() ```ts nsArrayToJSArray(a: NSArray): T[]; ``` Converts NSArray to JavaScript array. ##### Type Parameters | Type Parameter | | ------ | | `T` | ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `a` | `NSArray`<`T`> | NSArray to convert. | ##### Returns `T`\[] ### copyLayerProperties ```ts copyLayerProperties: (view: UIView, toView: UIView, customProperties?: { layer?: keyof CALayer[]; view?: keyof UIView[]; }) => void; ``` Copy layer properties from one view to another. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | `UIView` | a view to copy layer properties to | | `toView` | `UIView` | a view to copy later properties from | | `customProperties?` | { `layer?`: keyof `CALayer`\[]; `view?`: keyof `UIView`\[]; } | - | | `customProperties.layer?` | keyof `CALayer`\[] | - | | `customProperties.view?` | keyof `UIView`\[] | - | #### Returns `void` ### createUIDocumentInteractionControllerDelegate ```ts createUIDocumentInteractionControllerDelegate: () => NSObject; ``` Create a UIDocumentInteractionControllerDelegate implementation for use with UIDocumentInteractionController #### Returns `NSObject` ### getCurrentAppPath ```ts getCurrentAppPath: () => string; ``` Gets the root folder for the current application. This Folder is private for the application and not accessible from Users/External apps. iOS - this folder is read-only and contains the app and all its resources. #### Returns `string` ### getMainScreen ```ts getMainScreen: () => UIScreen; ``` #### Returns `UIScreen` ### getRootViewController ```ts getRootViewController: () => UIViewController; ``` Get the root UIViewController of the app #### Returns `UIViewController` ### getVisibleViewController ```ts getVisibleViewController: (rootViewController: UIViewController) => UIViewController; ``` Gets the currently visible(topmost) UIViewController. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootViewController` | `UIViewController` | The root UIViewController instance to start searching from (normally window.rootViewController). Returns the visible UIViewController. | #### Returns `UIViewController` ### ~~getWindow~~ ```ts getWindow: () => UIWindow; ``` #### Returns `UIWindow` application window. #### Deprecated Use `Utils.getWindow()` instead. ### ~~isLandscape~~ ```ts isLandscape: () => boolean; ``` #### Returns `boolean` #### Deprecated use Application.orientation instead Gets an information about if current mode is Landscape. ### joinPaths ```ts joinPaths: (...paths: string[]) => string; ``` Joins an array of file paths. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | ...`paths` | `string`\[] | An array of paths. Returns the joined path. | #### Returns `string` ### ~~MajorVersion~~ ```ts MajorVersion: number; ``` #### Deprecated use Utils.SDK\_VERSION instead which is a float of the {major}.{minor} verison ### printCGRect ```ts printCGRect: (rect: CGRect) => void; ``` Debug utility to insert CGRect values into logging output. Note: when printing a CGRect directly it will print blank so this helps show the values. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rect` | `CGRect` | CGRect | #### Returns `void` ### setWindowBackgroundColor ```ts setWindowBackgroundColor: (value: string) => void; ``` Set the window background color of base view of the app. Often this is the view shown behind opening a modal, eg: a modal scales down revealing the window color. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `string` | color (hex, rgb, rgba, etc.) | #### Returns `void` ### snapshotView ```ts snapshotView: (view: UIView, scale: number) => UIImage; ``` Take a snapshot of a View on screen. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | `UIView` | view to snapshot | | `scale` | `number` | screen scale | #### Returns `UIImage` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/variables/iOSNativeHelper.md --- ```ts const iOSNativeHelper: { animateWithSpring: (options?: { animateOptions?: UIViewAnimationOptions; animations?: () => void; completion?: (finished?: boolean) => void; delay?: number; friction?: number; mass?: number; tension?: number; velocity?: number; }) => void; applyRotateTransform: (transform: CATransform3D, x: number, y: number, z: number) => CATransform3D; collections: { jsArrayToNSArray: NSArray; nsArrayToJSArray: T[]; }; copyLayerProperties: (view: UIView, toView: UIView, customProperties?: { layer?: (string | number | symbol)[]; view?: (string | number | symbol)[]; }) => void; createUIDocumentInteractionControllerDelegate: () => NSObject; getCurrentAppPath: () => string; getMainScreen: () => UIScreen; getRootViewController: () => UIViewController; getVisibleViewController: (rootViewController: UIViewController) => UIViewController; getWindow: () => UIWindow; isLandscape: () => boolean; joinPaths: (...paths: string[]) => string; MajorVersion: number; printCGRect: (rect: CGRect) => void; setWindowBackgroundColor: (value: string) => void; snapshotView: (view: UIView, scale: number) => UIImage; } = ios; ``` Defined in: [utils/native-helper.d.ts:285](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/native-helper.d.ts#L285) ## Type Declaration ### ~~animateWithSpring~~ ```ts animateWithSpring: (options?: { animateOptions?: UIViewAnimationOptions; animations?: () => void; completion?: (finished?: boolean) => void; delay?: number; friction?: number; mass?: number; tension?: number; velocity?: number; }) => void; ``` Animate views with a configurable spring effect #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | { `animateOptions?`: `UIViewAnimationOptions`; `animations?`: () => `void`; `completion?`: (`finished?`: `boolean`) => `void`; `delay?`: `number`; `friction?`: `number`; `mass?`: `number`; `tension?`: `number`; `velocity?`: `number`; } | various animation settings for the spring - tension: number - friction: number - mass: number - delay: number - velocity: number - animateOptions: UIViewAnimationOptions - animations: () => void, Callback containing the property changes you want animated - completion: (finished: boolean) => void, Callback when animation is finished | | `options.animateOptions?` | `UIViewAnimationOptions` | - | | `options.animations?` | () => `void` | - | | `options.completion?` | (`finished?`: `boolean`) => `void` | - | | `options.delay?` | `number` | - | | `options.friction?` | `number` | - | | `options.mass?` | `number` | - | | `options.tension?` | `number` | - | | `options.velocity?` | `number` | - | #### Returns `void` ### ~~applyRotateTransform~~ ```ts applyRotateTransform: (transform: CATransform3D, x: number, y: number, z: number) => CATransform3D; ``` Applies a rotation transform over X,Y and Z axis #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `transform` | `CATransform3D` | Applies a rotation transform over X,Y and Z axis | | `x` | `number` | Rotation over X axis in degrees | | `y` | `number` | Rotation over Y axis in degrees | | `z` | `number` | Rotation over Z axis in degrees | #### Returns `CATransform3D` ### ~~collections~~ ```ts collections: { jsArrayToNSArray: NSArray; nsArrayToJSArray: T[]; }; ``` Utilities related to iOS collections. #### collections.jsArrayToNSArray() ```ts jsArrayToNSArray(str: T[]): NSArray; ``` Converts JavaScript array to [NSArray](https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/). ##### Type Parameters | Type Parameter | | ------ | | `T` | ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `str` | `T`\[] | JavaScript string array to convert. | ##### Returns `NSArray`<`T`> #### collections.nsArrayToJSArray() ```ts nsArrayToJSArray(a: NSArray): T[]; ``` Converts NSArray to JavaScript array. ##### Type Parameters | Type Parameter | | ------ | | `T` | ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `a` | `NSArray`<`T`> | NSArray to convert. | ##### Returns `T`\[] ### ~~copyLayerProperties~~ ```ts copyLayerProperties: (view: UIView, toView: UIView, customProperties?: { layer?: (string | number | symbol)[]; view?: (string | number | symbol)[]; }) => void; ``` Copy layer properties from one view to another. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | `UIView` | a view to copy layer properties to | | `toView` | `UIView` | a view to copy later properties from | | `customProperties?` | { `layer?`: (`string` | `number` | `symbol`)\[]; `view?`: (`string` | `number` | `symbol`)\[]; } | - | | `customProperties.layer?` | (`string` | `number` | `symbol`)\[] | - | | `customProperties.view?` | (`string` | `number` | `symbol`)\[] | - | #### Returns `void` ### ~~createUIDocumentInteractionControllerDelegate~~ ```ts createUIDocumentInteractionControllerDelegate: () => NSObject; ``` Create a UIDocumentInteractionControllerDelegate implementation for use with UIDocumentInteractionController #### Returns `NSObject` ### ~~getCurrentAppPath~~ ```ts getCurrentAppPath: () => string; ``` Gets the root folder for the current application. This Folder is private for the application and not accessible from Users/External apps. iOS - this folder is read-only and contains the app and all its resources. #### Returns `string` ### ~~getMainScreen~~ ```ts getMainScreen: () => UIScreen; ``` #### Returns `UIScreen` ### ~~getRootViewController~~ ```ts getRootViewController: () => UIViewController; ``` Get the root UIViewController of the app #### Returns `UIViewController` ### ~~getVisibleViewController~~ ```ts getVisibleViewController: (rootViewController: UIViewController) => UIViewController; ``` Gets the currently visible(topmost) UIViewController. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootViewController` | `UIViewController` | The root UIViewController instance to start searching from (normally window.rootViewController). Returns the visible UIViewController. | #### Returns `UIViewController` ### ~~getWindow~~ ```ts getWindow: () => UIWindow; ``` #### Returns `UIWindow` application window. #### Deprecated Use `Utils.getWindow()` instead. ### ~~isLandscape~~ ```ts isLandscape: () => boolean; ``` #### Returns `boolean` #### Deprecated use Application.orientation instead Gets an information about if current mode is Landscape. ### ~~joinPaths~~ ```ts joinPaths: (...paths: string[]) => string; ``` Joins an array of file paths. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | ...`paths` | `string`\[] | An array of paths. Returns the joined path. | #### Returns `string` ### ~~MajorVersion~~ ```ts MajorVersion: number; ``` #### Deprecated use Utils.SDK\_VERSION instead which is a float of the {major}.{minor} verison ### ~~printCGRect~~ ```ts printCGRect: (rect: CGRect) => void; ``` Debug utility to insert CGRect values into logging output. Note: when printing a CGRect directly it will print blank so this helps show the values. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rect` | `CGRect` | CGRect | #### Returns `void` ### ~~setWindowBackgroundColor~~ ```ts setWindowBackgroundColor: (value: string) => void; ``` Set the window background color of base view of the app. Often this is the view shown behind opening a modal, eg: a modal scales down revealing the window color. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `string` | color (hex, rgb, rgba, etc.) | #### Returns `void` ### ~~snapshotView~~ ```ts snapshotView: (view: UIView, scale: number) => UIImage; ``` Take a snapshot of a View on screen. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | `UIView` | view to snapshot | | `scale` | `number` | screen scale | #### Returns `UIImage` ## Deprecated use Utils.ios instead. --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/variables/RESOURCE_PREFIX.md --- ```ts const RESOURCE_PREFIX: string; ``` Defined in: [utils/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L13) --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/variables/SDK_VERSION.md' --- ```ts const SDK_VERSION: number; ``` Defined in: [utils/constants.d.ts:1](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/constants.d.ts#L1) --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/variables/SYSTEM_PREFIX.md' --- ```ts const SYSTEM_PREFIX: "sys://" = "sys://"; ``` Defined in: [utils/common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/common.ts) --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/clearInterval.md' --- ```ts function clearInterval(id: number): void; ``` Defined in: [timer/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/timer/index.d.ts#L27) Clears repeated function which was set up by calling setInterval(). ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `id` | `number` | The identifier returned by the setInterval() method. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/clearTimeout.md' --- ```ts function clearTimeout(id: number): void; ``` Defined in: [timer/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/timer/index.d.ts#L13) Clears the delay set by a call to the setTimeout function. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `id` | `number` | The identifier returned by the previously called setTimeout() method. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/convertString.md' --- ```ts function convertString(value: any): any; ``` Defined in: [utils/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L132) Converts string value to number or boolean. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | The original value. | ## Returns `any` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/copyToClipboard.md --- ```ts function copyToClipboard(value: string): void; ``` Defined in: [utils/index.d.ts:177](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L177) Copy value to device clipboard. ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/dataDeserialize.md --- ```ts function dataDeserialize(nativeData?: any): any; ``` Defined in: [utils/native-helper.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/native-helper.d.ts#L10) Data deserialization from Native > JS ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `nativeData?` | `any` | Native platform data | ## Returns `any` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/dataSerialize.md' --- ```ts function dataSerialize(data?: any, wrapPrimitives?: boolean): any; ``` Defined in: [utils/native-helper.d.ts:5](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/native-helper.d.ts#L5) Data serialization from JS > Native ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data?` | `any` | - | | `wrapPrimitives?` | `boolean` | Optionally wrap primitive types (Some APIs may require this) | ## Returns `any` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/debounce.md' --- ```ts function debounce( fn: any, delay?: number, param2?: { leading?: boolean; }): (...args: any[]) => void; ``` Defined in: [utils/shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/shared.ts) Creates a debounced function that delays invoking the provided function until after a specified delay ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `fn` | `any` | The function to debounce | | `delay?` | `number` | The number of milliseconds to delay | | `param2?` | { `leading?`: `boolean`; } | Options for the debounce behavior | | `param2.leading?` | `boolean` | - | ## Returns A new debounced function (...`args`: `any`\[]) => `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/dismissKeyboard.md --- ```ts function dismissKeyboard(): void; ``` Defined in: [utils/index.d.ts:172](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L172) Dismiss any keyboard visible on the screen. ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/dismissSoftInput.md --- ```ts function dismissSoftInput(nativeView?: any): void; ``` Defined in: [utils/index.d.ts:167](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L167) Hides the soft input method, usually a soft keyboard. ## Parameters | Parameter | Type | | ------ | ------ | | `nativeView?` | `any` | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/dispatchToMainThread.md --- ```ts function dispatchToMainThread(func: Function): any; ``` Defined in: [utils/mainthread-helper.d.ts:5](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/mainthread-helper.d.ts#L5) Dispatches the passed function for execution on the main thread ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `func` | `Function` | The function to execute on the main thread. | ## Returns `any` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/dispatchToUIThread.md --- ```ts function dispatchToUIThread(func: Function): any; ``` Defined in: [utils/mainthread-helper.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/mainthread-helper.d.ts#L16) Dispatches the passed function for execution on the UI thread ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `func` | `Function` | The function to execute on the UI thread. | ## Returns `any` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/eliminateDuplicates.md --- ```ts function eliminateDuplicates(arr: any[]): any[]; ``` Defined in: [utils/index.d.ts:157](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L157) Removes duplicate elements from array. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `arr` | `any`\[] | The array. | ## Returns `any`\[] --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/escapeRegexSymbols.md --- ```ts function escapeRegexSymbols(source: string): string; ``` Defined in: [utils/index.d.ts:126](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L126) Escapes special regex symbols (., \*, ^, $ and so on) in string in order to create a valid regex from it. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `source` | `string` | The original value. | ## Returns `string` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/executeOnMainThread.md --- ```ts function executeOnMainThread(func: Function): any; ``` Defined in: [utils/index.d.ts:55](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L55) Checks if the current thread is the main thread. Directly calls the passed function if it is, or dispatches it to the main thread otherwise. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `func` | `Function` | The function to execute on the main thread. | ## Returns `any` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/executeOnUIThread.md --- ```ts function executeOnUIThread(func: Function): any; ``` Defined in: [utils/index.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L61) Runs the passed function on the UI Thread. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `func` | `Function` | The function to execute on the UI thread. | ## Returns `any` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/GC.md' --- ```ts function GC(): any; ``` Defined in: [utils/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L29) An utility function that invokes garbage collection on the JavaScript side. ## Returns `any` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/getBaseClasses.md' --- ```ts function getBaseClasses(object: any): string[]; ``` Defined in: [utils/types.d.ts:88](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L88) A function that gets the entire class hierarchy of an object. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `object` | `any` | The object. Returns an array of strings with the name of all base classes. | ## Returns `string`\[] --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/getClass.md' --- ```ts function getClass(object: any): string; ``` Defined in: [utils/types.d.ts:81](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L81) A function that gets the class name of an object. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `object` | `any` | The object. Returns a string with the name of the class. | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/getClassInfo.md' --- ```ts function getClassInfo(object: Object): ClassInfo; ``` Defined in: [utils/types.d.ts:95](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L95) A function that gets the ClassInfo for an object. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `object` | `Object` | The object. Returns a ClassInfo for the object. | ## Returns [`ClassInfo`](../classes/ClassInfo.md) --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/getDurationWithDampingFromSpring.md --- ```ts function getDurationWithDampingFromSpring(springSettings?: { friction?: number; mass?: number; tension?: number; velocity?: number; }): { damping: number; duration: number; }; ``` Defined in: [utils/animation-helpers.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/animation-helpers.ts) Get a duration with damping value from various spring related settings. Helpful when needing to convert spring settings to isolated duration value. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `springSettings?` | { `friction?`: `number`; `mass?`: `number`; `tension?`: `number`; `velocity?`: `number`; } | various spring settings | | `springSettings.friction?` | `number` | - | | `springSettings.mass?` | `number` | - | | `springSettings.tension?` | `number` | - | | `springSettings.velocity?` | `number` | - | ## Returns ```ts { damping: number; duration: number; } ``` calculated duration with damping from spring settings ### damping ```ts damping: number; ``` ### duration ```ts duration: number; ``` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/getFileExtension.md --- ```ts function getFileExtension(path: string): string; ``` Defined in: [utils/index.d.ts:95](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L95) Get file extension from file path ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | file path | ## Returns `string` file extension --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/getModuleName.md' --- ```ts function getModuleName(path: string): string; ``` Defined in: [utils/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L138) Gets module name from path. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The module path. | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/getWindow.md' --- ```ts function getWindow(): T; ``` Defined in: [utils/native-helper.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/native-helper.d.ts#L21) Get the UIWindow or android.view.Window of the app ## Type Parameters | Type Parameter | | ------ | | `T` *extends* `any` | ## Returns `T` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/hasDuplicates.md' --- ```ts function hasDuplicates(arr: any[]): boolean; ``` Defined in: [utils/index.d.ts:151](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L151) Checks if array has any duplicate elements. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `arr` | `any`\[] | The array to be checked. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isBoolean.md' --- ```ts function isBoolean(value: any): boolean; ``` Defined in: [utils/types.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L20) A function that checks if something is a valid boolean. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | The value which will be checked. Returns true if value is a boolean. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isDataURI.md' --- ```ts function isDataURI(uri: string): boolean; ``` Defined in: [utils/index.d.ts:101](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L101) Returns true if the specified URI is data URI (http://en.wikipedia.org/wiki/Data\_URI\_scheme). ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `uri` | `string` | The URI. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isDefined.md' --- ```ts function isDefined(value: any): boolean; ``` Defined in: [utils/types.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L48) A function that checks if something is defined (not undefined). ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | The value which will be checked. Returns true if value is defined. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isEmoji.md' --- ```ts function isEmoji(value: string): boolean; ``` Defined in: [utils/common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/common.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ## Returns `boolean` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/isFileOrResourcePath.md --- ```ts function isFileOrResourcePath(path: string): boolean; ``` Defined in: [utils/index.d.ts:88](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L88) Returns true if the specified path points to a resource or local file. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The path. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isFontIconURI.md' --- ```ts function isFontIconURI(uri: string): boolean; ``` Defined in: [utils/index.d.ts:76](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L76) Returns true if the specified URI is a font icon URI like "fontIcon://\". ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `uri` | `string` | The URI. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isFunction.md' --- ```ts function isFunction(value: any): boolean; ``` Defined in: [utils/types.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L27) A function that checks if something is a function. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | The value which will be checked. Returns true if value is a function. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isMainThread.md' --- ```ts function isMainThread(): boolean; ``` Defined in: [utils/mainthread-helper.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/mainthread-helper.d.ts#L10) ## Returns `boolean` Boolean value indicating whether the current thread is the main thread --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/isNullOrUndefined.md --- ```ts function isNullOrUndefined(value: any): boolean; ``` Defined in: [utils/types.d.ts:55](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L55) A function that checks if something is not defined (null or undefined). ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | The value which will be checked. Returns true if value is null or undefined. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isNumber.md' --- ```ts function isNumber(value: any): boolean; ``` Defined in: [utils/types.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L13) A function that checks if something is a valid number. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | The value which will be checked. Returns true if value is a number. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isObject.md' --- ```ts function isObject(value: any): boolean; ``` Defined in: [utils/types.d.ts:34](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L34) A function that checks if something is an object. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | The value which will be checked. Returns true if value is an object. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isRealDevice.md' --- ```ts function isRealDevice(): boolean; ``` Defined in: [utils/index.d.ts:162](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L162) Checks whether the application is running on real device and not on simulator/emulator. ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isString.md' --- ```ts function isString(value: any): boolean; ``` Defined in: [utils/types.d.ts:6](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L6) A function that checks if something is a valid string. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | The value which will be checked. Returns true if value is a string. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isSystemURI.md' --- ```ts function isSystemURI(uri: string): boolean; ``` Defined in: [utils/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L82) Returns true if the specified URI is a system URI like "sys://...". ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `uri` | `string` | The URI. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/isUndefined.md' --- ```ts function isUndefined(value: any): boolean; ``` Defined in: [utils/types.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L41) A function that checks if something is "undefined". ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | The value which will be checked. Returns true if value is "undefined". | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/mainThreadify.md' --- ```ts function mainThreadify(func: Function): (...args: any[]) => void; ``` Defined in: [utils/index.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L70) Returns a function wrapper which executes the supplied function on the main thread. The wrapper behaves like the original function and passes all of its arguments BUT discards its return value. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `func` | `Function` | The function to execute on the main thread | ## Returns The wrapper function which schedules execution to the main thread (...`args`: `any`\[]) => `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/merge.md' --- ```ts function merge( left: any, right: any, compareFunc: any): any[]; ``` Defined in: [utils/common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/common.ts) ## Parameters | Parameter | Type | | ------ | ------ | | `left` | `any` | | `right` | `any` | | `compareFunc` | `any` | ## Returns `any`\[] --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/mergeSort.md' --- ```ts function mergeSort(arr: any[], compareFunc: (a: any, b: any) => number): any[]; ``` Defined in: [utils/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L145) Sorts an array by using merge sort algorithm (which ensures stable sort since the built-in Array.sort() does not promise a stable sort). ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `arr` | `any`\[] | array to be sorted | | `compareFunc` | (`a`: `any`, `b`: `any`) => `number` | function that will be used to compare two elements of the array | ## Returns `any`\[] --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/numberHasDecimals.md --- ```ts function numberHasDecimals(value: number): boolean; ``` Defined in: [utils/types.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L68) Checks if the number has decimals ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `number` | Number to check | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/numberIs64Bit.md' --- ```ts function numberIs64Bit(value: number): boolean; ``` Defined in: [utils/types.d.ts:74](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L74) Checks if the number is 64 bit ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `number` | Number to check | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/openFile.md' --- ```ts function openFile(filePath: string, title?: string): boolean; ``` Defined in: [utils/index.d.ts:120](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L120) Opens file. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `filePath` | `string` | The file. | | `title?` | `string` | Optional title for Android. Default is: 'Open File...' | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/openUrl.md' --- ```ts function openUrl(url: string): boolean; ``` Defined in: [utils/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L107) Opens url. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `url` | `string` | The url. | ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/openUrlAsync.md' --- ```ts function openUrlAsync(url: string): Promise; ``` Defined in: [utils/index.d.ts:113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L113) Opens url asynchronously. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `url` | `string` | The url. | ## Returns `Promise`<`boolean`> --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/queueGC.md' --- ```ts function queueGC(delay?: number, useThrottle?: boolean): any; ``` Defined in: [utils/index.d.ts:36](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L36) An utility function that queues a garbage collection, multiple calls in quick succession are debounced by default and only one gc will be executed after 900ms. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `delay?` | `number` | Customize the delay | | `useThrottle?` | `boolean` | Instead of default debounce strategy, use throttling | ## Returns `any` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/queueMacrotask.md' --- ```ts function queueMacrotask(task: () => void): void; ``` Defined in: [utils/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L48) Queues the passed function to be ran in a macroTask ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `task` | () => `void` | the function to execute as a macroTask | ## Returns `void` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/releaseNativeObject.md --- ```ts function releaseNativeObject(object: any): any; ``` Defined in: [utils/index.d.ts:42](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/index.d.ts#L42) Releases the reference to the wrapped native object ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `object` | `any` | The Java/Objective-C object to release. | ## Returns `any` --- --- url: >- https://docs.nativescript.org/api/namespaces/Utils/functions/sanitizeModuleName.md --- ```ts function sanitizeModuleName(moduleName: string, removeExtension?: boolean): string; ``` Defined in: [utils/common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/common.ts) Helps sanitize a module name if it is prefixed with '~/', '~' or '/' ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `moduleName` | `string` | the name | | `removeExtension?` | `boolean` | whether to remove extension | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/setInterval.md' --- ```ts function setInterval( callback: Function, milliseconds?: number, ... args: any[]): number; ``` Defined in: [timer/index.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/timer/index.d.ts#L21) Calls a function repeatedly with a delay between each call. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | `Function` | The function to be called. | | `milliseconds?` | `number` | The delay between each function call. | | ...`args?` | `any`\[] | One or more parameter to use once the function is called. Defaults to no parameters. | ## Returns `number` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/setTimeout.md' --- ```ts function setTimeout( callback: Function, milliseconds?: number, ... args: any[]): number; ``` Defined in: [timer/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/timer/index.d.ts#L7) Calls a function after a specified delay. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | `Function` | The function to be called. | | `milliseconds?` | `number` | The time to wait before the function is called. Defaults to 0. | | ...`args?` | `any`\[] | One or more parameter to use once the function is called. Defaults to no parameters. | ## Returns `number` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/supportsGlass.md' --- ```ts function supportsGlass(): boolean; ``` Defined in: [utils/constants.d.ts:2](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/constants.d.ts#L2) ## Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/throttle.md' --- ```ts function throttle(fn: Function, delay?: number): (...args: any[]) => void; ``` Defined in: [utils/shared.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/shared.ts) Creates a throttled function that only invokes the provided function at most once per specified delay ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `fn` | `Function` | The function to throttle | | `delay?` | `number` | The number of milliseconds to delay | ## Returns A new throttled function (...`args`: `any`\[]) => `void` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/toUIString.md' --- ```ts function toUIString(object: any): string; ``` Defined in: [utils/types.d.ts:116](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L116) Returns a string representation of an object to be shown in UI. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `object` | `any` | The object. | ## Returns `string` --- --- url: 'https://docs.nativescript.org/api/namespaces/Utils/functions/verifyCallback.md' --- ```ts function verifyCallback(value: any): void; ``` Defined in: [utils/types.d.ts:62](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/utils/types.d.ts#L62) A function that checks if something is a valid function. ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | The value which will be checked. Throws exception if passed value is not a valid function. | ## Returns `void` --- --- url: 'https://docs.nativescript.org/api/enumerations/AccessibilityLiveRegion.md' --- Defined in: [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `Assertive` | `"assertive"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `None` | `"none"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Polite` | `"polite"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/AccessibilityRole.md' --- Defined in: [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) ## Enumeration Members | Enumeration Member | Value | Description | Defined in | | ------ | ------ | ------ | ------ | | `Adjustable` | `"adjustable"` | The element allows continuous adjustment through a range of values. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Button` | `"button"` | The element should be treated as a button. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Checkbox` | `"checkbox"` | The element behaves like a Checkbox | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Header` | `"header"` | The element is a header that divides content into sections, such as the title of a navigation bar. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Image` | `"image"` | The element should be treated as an image. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `ImageButton` | `"imageButton"` | The element should be treated as a image button. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `KeyboardKey` | `"keyboardKey"` | The element behaves as a keyboard key. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Link` | `"link"` | The element should be treated as a link. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `None` | `"none"` | The element has no traits. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `PlaysSound` | `"plays"` | The element plays its own sound when activated. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `ProgressBar` | `"progressBar"` | The element behaves like a ProgressBar | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `RadioButton` | `"radioButton"` | The element behaves like a RadioButton | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Search` | `"search"` | The element should be treated as a search field. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `SpinButton` | `"spinButton"` | The element behaves like a SpinButton | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `StartsMediaSession` | `"startsMedia"` | The element starts a media session when it is activated. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `StaticText` | `"text"` | The element should be treated as static text that cannot change. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Summary` | `"summary"` | The element provides summary information when the application starts. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Switch` | `"switch"` | The element behaves like a switch | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/AccessibilityState.md' --- Defined in: [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `Checked` | `"checked"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Disabled` | `"disabled"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Selected` | `"selected"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Unchecked` | `"unchecked"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/AccessibilityTrait.md' --- Defined in: [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) ## Enumeration Members | Enumeration Member | Value | Description | Defined in | | ------ | ------ | ------ | ------ | | `AllowsDirectInteraction` | `"allowsDirectInteraction"` | The element allows direct touch interaction for VoiceOver users. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `CausesPageTurn` | `"pageTurn"` | The element should cause an automatic page turn when VoiceOver finishes reading the text within it. Note: Requires custom view with accessibilityScroll(...) | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `NotEnabled` | `"disabled"` | The element is not enabled and does not respond to user interaction. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Selected` | `"selected"` | The element is currently selected. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `UpdatesFrequently` | `"frequentUpdates"` | The element frequently updates its label or value. | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/AndroidDirectory.md' --- Defined in: [file-system/index.d.ts:3](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L3) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `ALARMS` | `number` | [file-system/index.d.ts:4](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L4) | | `AUDIOBOOKS` | `number` | [file-system/index.d.ts:5](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L5) | | `DCIM` | `number` | [file-system/index.d.ts:6](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L6) | | `DOCUMENTS` | `number` | [file-system/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L7) | | `DOWNLOADS` | `number` | [file-system/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L8) | | `MOVIES` | `number` | [file-system/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L9) | | `MUSIC` | `number` | [file-system/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L10) | | `NOTIFICATIONS` | `number` | [file-system/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L11) | | `PICTURES` | `number` | [file-system/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L12) | | `PODCASTS` | `number` | [file-system/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L13) | | `RINGTONES` | `number` | [file-system/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L14) | | `SCREENSHOTS` | `number` | [file-system/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L15) | --- --- url: 'https://docs.nativescript.org/api/enumerations/CacheMode.md' --- Defined in: [ui/styling/background.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background.d.ts#L11) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `diskAndMemory` | `number` | [ui/styling/background.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background.d.ts#L14) | | `memory` | `number` | [ui/styling/background.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background.d.ts#L13) | | `none` | `number` | [ui/styling/background.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background.d.ts#L12) | --- --- url: 'https://docs.nativescript.org/api/enumerations/FontScaleCategory.md' --- Defined in: [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `ExtraLarge` | `"extra-large"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `ExtraSmall` | `"extra-small"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | | `Medium` | `"medium"` | [accessibility/accessibility-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/accessibility/accessibility-common.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/GestureEvents.md' --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `gestureAttached` | `"gestureAttached"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `touchDown` | `"touchDown"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `touchUp` | `"touchUp"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/GestureStateTypes.md' --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `began` | `1` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `cancelled` | `0` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `changed` | `2` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `ended` | `3` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/GestureTypes.md' --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `doubleTap` | `2` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `longPress` | `64` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `pan` | `8` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `pinch` | `4` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `rotation` | `32` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `swipe` | `16` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `tap` | `1` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `touch` | `128` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/HttpResponseEncoding.md' --- Defined in: [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/http-interfaces.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `GBK` | `1` | [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/http-interfaces.ts) | | `UTF8` | `0` | [http/http-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/http/http-interfaces.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/ImageSymbolEffects.md' --- Defined in: [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `Appear` | `"appear"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `AppearDown` | `"appearDown"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `AppearUp` | `"appearUp"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `Bounce` | `"bounce"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `BounceDown` | `"bounceDown"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `BounceUp` | `"bounceUp"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `Breathe` | `"breathe"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `BreathePlain` | `"breathePlain"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `BreathePulse` | `"breathePulse"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `Disappear` | `"disappear"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `DisappearDown` | `"disappearDown"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `DisappearUp` | `"disappearUp"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `Pulse` | `"pulse"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `Rotate` | `"rotate"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `RotateClockwise` | `"rotateClockwise"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `RotateCounterClockwise` | `"rotateCounterClockwise"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `Scale` | `"scale"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `ScaleDown` | `"scaleDown"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `ScaleUp` | `"scaleUp"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `VariableColor` | `"variableColor"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `Wiggle` | `"wiggle"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleBackward` | `"wiggleBackward"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleClockwise` | `"wiggleClockwise"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleCounterClockwise` | `"wiggleCounterClockwise"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleDown` | `"wiggleDown"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleForward` | `"wiggleForward"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleLeft` | `"wiggleLeft"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleRight` | `"wiggleRight"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | | `WiggleUp` | `"wiggleUp"` | [ui/image/symbol-effects-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects-common.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/NavigationType.md' --- Defined in: [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-interfaces.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `back` | `0` | [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-interfaces.ts) | | `forward` | `1` | [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-interfaces.ts) | | `replace` | `2` | [ui/frame/frame-interfaces.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-interfaces.ts) | --- --- url: >- https://docs.nativescript.org/api/enumerations/SharedTransitionAnimationType.md --- Defined in: [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/shared-transition.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `dismiss` | `1` | [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/shared-transition.ts) | | `present` | `0` | [ui/transition/shared-transition.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/shared-transition.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/SwipeDirection.md' --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `down` | `8` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `left` | `2` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `right` | `1` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `up` | `4` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/TouchAction.md' --- Defined in: [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `cancel` | `"cancel"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `down` | `"down"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `move` | `"move"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | | `up` | `"up"` | [ui/gestures/gestures-types.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/gestures-types.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/WritingToolsAllowedInput.md' description: (iOS Only) Allowed input for Apple Intelligence Writing Tools --- Defined in: [ui/text-view/text-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-view/text-view-common.ts) (iOS Only) Allowed input for Apple Intelligence Writing Tools ## Since 8.9 ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `Default` | `0` | [ui/text-view/text-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-view/text-view-common.ts) | | `List` | `1` | [ui/text-view/text-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-view/text-view-common.ts) | | `PlainText` | `2` | [ui/text-view/text-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-view/text-view-common.ts) | | `RichText` | `3` | [ui/text-view/text-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-view/text-view-common.ts) | | `Table` | `4` | [ui/text-view/text-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-view/text-view-common.ts) | --- --- url: 'https://docs.nativescript.org/api/enumerations/WritingToolsBehavior.md' description: (iOS Only) Behavior for Apple Intelligence Writing Tools --- Defined in: [ui/text-view/text-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-view/text-view-common.ts) (iOS Only) Behavior for Apple Intelligence Writing Tools ## Since 8.9 ## Enumeration Members | Enumeration Member | Value | Defined in | | ------ | ------ | ------ | | `Complete` | `0` | [ui/text-view/text-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-view/text-view-common.ts) | | `Default` | `1` | [ui/text-view/text-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-view/text-view-common.ts) | | `Limited` | `2` | [ui/text-view/text-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-view/text-view-common.ts) | | `None` | `3` | [ui/text-view/text-view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-view/text-view-common.ts) | --- --- url: 'https://docs.nativescript.org/api/classes/AbsoluteLayout.md' description: >- A layout that lets you specify exact locations (left/top coordinates) of its children. --- Defined in: [ui/layouts/absolute-layout/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/absolute-layout/index.d.ts#L12) A layout that lets you specify exact locations (left/top coordinates) of its children. ## Ns View AbsoluteLayout ## Extends * [`LayoutBase`](LayoutBase.md) ## Constructors ### Constructor ```ts new AbsoluteLayout(): AbsoluteLayout; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `AbsoluteLayout` #### Inherited from [`LayoutBase`](LayoutBase.md).[`constructor`](LayoutBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`LayoutBase`](LayoutBase.md).[`_androidContentDescriptionUpdated`](LayoutBase.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_automaticallyAdjustsScrollViewInsets`](LayoutBase.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_closeModalCallback`](LayoutBase.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_context`](LayoutBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_cssState`](LayoutBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingBottom`](LayoutBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingLeft`](LayoutBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingRight`](LayoutBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingTop`](LayoutBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_domId`](LayoutBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_ignoreFlexMinWidthHeightReset`](LayoutBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isAddedToNativeVisualTree`](LayoutBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isPaddingRelative`](LayoutBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldBottom`](LayoutBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldLeft`](LayoutBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldRight`](LayoutBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldTop`](LayoutBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_styleScope`](LayoutBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_suspendNativeUpdatesCount`](LayoutBase.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityHidden`](LayoutBase.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityHint`](LayoutBase.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIdentifier`](LayoutBase.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLabel`](LayoutBase.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLanguage`](LayoutBase.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLiveRegion`](LayoutBase.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityMediaSession`](LayoutBase.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityRole`](LayoutBase.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityState`](LayoutBase.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityValue`](LayoutBase.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessible`](LayoutBase.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`alignSelf`](LayoutBase.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`LayoutBase`](LayoutBase.md).[`android`](LayoutBase.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidDynamicElevationOffset`](LayoutBase.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidElevation`](LayoutBase.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowEdge`](LayoutBase.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`background`](LayoutBase.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundColor`](LayoutBase.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundImage`](LayoutBase.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`bindingContext`](LayoutBase.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomColor`](LayoutBase.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomLeftRadius`](LayoutBase.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomRightRadius`](LayoutBase.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomWidth`](LayoutBase.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderColor`](LayoutBase.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderLeftColor`](LayoutBase.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderLeftWidth`](LayoutBase.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRadius`](LayoutBase.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRightColor`](LayoutBase.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRightWidth`](LayoutBase.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopColor`](LayoutBase.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopLeftRadius`](LayoutBase.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopRightRadius`](LayoutBase.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopWidth`](LayoutBase.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderWidth`](LayoutBase.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`boxShadow`](LayoutBase.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`className`](LayoutBase.md#classname) *** ### clipToBounds ```ts clipToBounds: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L106) Gets or sets a value indicating whether to clip the content of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`clipToBounds`](LayoutBase.md#cliptobounds) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`col`](LayoutBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`color`](LayoutBase.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`colSpan`](LayoutBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`column`](LayoutBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`columnSpan`](LayoutBase.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssType`](LayoutBase.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`defaultVisualState`](LayoutBase.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`direction`](LayoutBase.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`dock`](LayoutBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`domNode`](LayoutBase.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderBottomWidth`](LayoutBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderLeftWidth`](LayoutBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderRightWidth`](LayoutBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveHeight`](LayoutBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveLeft`](LayoutBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginBottom`](LayoutBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginLeft`](LayoutBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginRight`](LayoutBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinHeight`](LayoutBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveTop`](LayoutBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveWidth`](LayoutBase.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flex`](LayoutBase.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexFlow`](LayoutBase.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexGrow`](LayoutBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexShrink`](LayoutBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexWrapBefore`](LayoutBase.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`height`](LayoutBase.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`hidden`](LayoutBase.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`horizontalAlignment`](LayoutBase.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`id`](LayoutBase.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`LayoutBase`](LayoutBase.md).[`ios`](LayoutBase.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityAdjustsFontSize`](LayoutBase.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityMaxFontScale`](LayoutBase.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityMinFontScale`](LayoutBase.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosGlassEffect`](LayoutBase.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosIgnoreSafeArea`](LayoutBase.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosOverflowSafeArea`](LayoutBase.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosOverflowSafeAreaEnabled`](LayoutBase.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isCollapsed`](LayoutBase.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isEnabled`](LayoutBase.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`LayoutBase`](LayoutBase.md).[`isLayoutValid`](LayoutBase.md#islayoutvalid) *** ### isPassThroughParentEnabled ```ts isPassThroughParentEnabled: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L115) 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. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isPassThroughParentEnabled`](LayoutBase.md#ispassthroughparentenabled) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isUserInteractionEnabled`](LayoutBase.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`left`](LayoutBase.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`margin`](LayoutBase.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginBottom`](LayoutBase.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginLeft`](LayoutBase.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginRight`](LayoutBase.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minHeight`](LayoutBase.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`LayoutBase`](LayoutBase.md).[`mIsRootView`](LayoutBase.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`LayoutBase`](LayoutBase.md).[`modal`](LayoutBase.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeBackgroundState`](LayoutBase.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeViewProtected`](LayoutBase.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`opacity`](LayoutBase.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`order`](LayoutBase.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`originX`](LayoutBase.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`originY`](LayoutBase.md#originy) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/layouts/layout-base.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L71) Gets or sets padding style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`padding`](LayoutBase.md#padding) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L78) Specify the bottom padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingBottom`](LayoutBase.md#paddingbottom) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L85) Specify the left padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingLeft`](LayoutBase.md#paddingleft) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L92) Specify the right padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingRight`](LayoutBase.md#paddingright) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L99) Specify the top padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingTop`](LayoutBase.md#paddingtop) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`LayoutBase`](LayoutBase.md).[`parent`](LayoutBase.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`perspective`](LayoutBase.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`recycleNativeView`](LayoutBase.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`reusable`](LayoutBase.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotate`](LayoutBase.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotateX`](LayoutBase.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotateY`](LayoutBase.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`row`](LayoutBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rowSpan`](LayoutBase.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`scaleX`](LayoutBase.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`scaleY`](LayoutBase.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`sharedTransitionIgnore`](LayoutBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`sharedTransitionTag`](LayoutBase.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`statusBarStyle`](LayoutBase.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`testID`](LayoutBase.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`top`](LayoutBase.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchDelay`](LayoutBase.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`LayoutBase`](LayoutBase.md).[`transitionId`](LayoutBase.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`translateX`](LayoutBase.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`translateY`](LayoutBase.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`verticalAlignment`](LayoutBase.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`LayoutBase`](LayoutBase.md).[`viewController`](LayoutBase.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visibility`](LayoutBase.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visionHoverStyle`](LayoutBase.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visionIgnoreHoverStyle`](LayoutBase.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`width`](LayoutBase.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityBlurEvent`](LayoutBase.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityFocusChangedEvent`](LayoutBase.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityFocusEvent`](LayoutBase.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityPerformEscapeEvent`](LayoutBase.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`LayoutBase`](LayoutBase.md).[`createdEvent`](LayoutBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`LayoutBase`](LayoutBase.md).[`disposeNativeViewEvent`](LayoutBase.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutChangedEvent`](LayoutBase.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`LayoutBase`](LayoutBase.md).[`loadedEvent`](LayoutBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`LayoutBase`](LayoutBase.md).[`propertyChangeEvent`](LayoutBase.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`showingModallyEvent`](LayoutBase.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`shownModallyEvent`](LayoutBase.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`LayoutBase`](LayoutBase.md).[`unloadedEvent`](LayoutBase.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundPosition`](LayoutBase.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundRepeat`](LayoutBase.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundSize`](LayoutBase.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`class`](LayoutBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingBottom`](LayoutBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingLeft`](LayoutBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingRight`](LayoutBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingTop`](LayoutBase.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`isLoaded`](LayoutBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeView`](LayoutBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`page`](LayoutBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`parentNode`](LayoutBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`style`](LayoutBase.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`textTransform`](LayoutBase.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`typeName`](LayoutBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`visualState`](LayoutBase.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addView`](LayoutBase.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addViewCore`](LayoutBase.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addViewToNativeVisualTree`](LayoutBase.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_applyGlassEffect`](LayoutBase.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_applyXmlAttribute`](LayoutBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_batchUpdate`](LayoutBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_childIndexToNativeChildIndex`](LayoutBase.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_closeAllModalViewsInternal`](LayoutBase.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_createPropertyChangeData`](LayoutBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_dialogClosed`](LayoutBase.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_eachLayoutView`](LayoutBase.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_emit`](LayoutBase.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalViews`](LayoutBase.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getValue`](LayoutBase.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_handleLivesync`](LayoutBase.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_hasAncestorView`](LayoutBase.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_hideNativeModalView`](LayoutBase.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_inheritStyles`](LayoutBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_inheritStyleScope`](LayoutBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_layoutParent`](LayoutBase.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_observe`](LayoutBase.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onAttachedToWindow`](LayoutBase.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onDetachedFromWindow`](LayoutBase.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onRootViewReset`](LayoutBase.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onSizeChanged`](LayoutBase.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_parentChanged`](LayoutBase.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseLayoutChangedEvent`](LayoutBase.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseShowingModallyEvent`](LayoutBase.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseShownModallyEvent`](LayoutBase.md#raiseshownmodallyevent) *** ### \_registerLayoutChild() ```ts _registerLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L53) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_registerLayoutChild`](LayoutBase.md#registerlayoutchild) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeView`](LayoutBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeViewCore`](LayoutBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeViewFromNativeVisualTree`](LayoutBase.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_resumeNativeUpdates`](LayoutBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setDefaultPaddings`](LayoutBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setupAsRootView`](LayoutBase.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setupUI`](LayoutBase.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setValue`](LayoutBase.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_shouldDelayLayout`](LayoutBase.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_showNativeModalView`](LayoutBase.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_suspendNativeUpdates`](LayoutBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_tearDownUI`](LayoutBase.md#teardownui) *** ### \_unregisterLayoutChild() ```ts _unregisterLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L58) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_unregisterLayoutChild`](LayoutBase.md#unregisterlayoutchild) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_updateStyleScope`](LayoutBase.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityAnnouncement`](LayoutBase.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityScreenChanged`](LayoutBase.md#accessibilityscreenchanged) *** ### addChild() ```ts addChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L30) Adds the view to children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to be added to the end of the children array. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`addChild`](LayoutBase.md#addchild) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`addEventListener`](LayoutBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`LayoutBase`](LayoutBase.md).[`addPseudoClass`](LayoutBase.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`animate`](LayoutBase.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`bind`](LayoutBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`callLoaded`](LayoutBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`callUnloaded`](LayoutBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`closeModal`](LayoutBase.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`createAnimation`](LayoutBase.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`LayoutBase`](LayoutBase.md).[`createNativeView`](LayoutBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`LayoutBase`](LayoutBase.md).[`deletePseudoClass`](LayoutBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`LayoutBase`](LayoutBase.md).[`destroyNode`](LayoutBase.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`disposeNativeView`](LayoutBase.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachChild`](LayoutBase.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachChildView`](LayoutBase.md#eachchildview) *** ### eachLayoutChild() ```ts eachLayoutChild(callback: (child: View, isLast: boolean) => void): void; ``` Defined in: [ui/layouts/layout-base.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L64) Calls the callback for each child that should be laid out. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md), `isLast`: `boolean`) => `void` | The callback | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachLayoutChild`](LayoutBase.md#eachlayoutchild) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`ensureDomNode`](LayoutBase.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`focus`](LayoutBase.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`get`](LayoutBase.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getActualSize`](LayoutBase.md#getactualsize) *** ### getChildAt() ```ts getChildAt(index: number): View; ``` Defined in: [ui/layouts/layout-base.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L18) Returns the view at the specified position. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | The position at which to get the child from. | #### Returns [`View`](View.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildAt`](LayoutBase.md#getchildat) *** ### getChildIndex() ```ts getChildIndex(child: View): number; ``` Defined in: [ui/layouts/layout-base.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L24) Returns the position of the child view #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | The child view that we are looking for. | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildIndex`](LayoutBase.md#getchildindex) *** ### getChildrenCount() ```ts getChildrenCount(): number; ``` Defined in: [ui/layouts/layout-base.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L12) Returns the number of children in this Layout. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildrenCount`](LayoutBase.md#getchildrencount) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getClosestWindow`](LayoutBase.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getEffectivePaddingShorthand`](LayoutBase.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`LayoutBase`](LayoutBase.md).[`getGestureObservers`](LayoutBase.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationInWindow`](LayoutBase.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationOnScreen`](LayoutBase.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationRelativeTo`](LayoutBase.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredHeight`](LayoutBase.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getSafeAreaInsets`](LayoutBase.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getViewByDomId`](LayoutBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getViewById`](LayoutBase.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`hasGestureObservers`](LayoutBase.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`hasListeners`](LayoutBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`initNativeView`](LayoutBase.md#initnativeview) *** ### insertChild() ```ts insertChild(child: View, atIndex: number): boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L37) Inserts the view to children array at the specified index. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | - | | `atIndex` | `number` | The insertion index. | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`insertChild`](LayoutBase.md#insertchild) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layout`](LayoutBase.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutNativeView`](LayoutBase.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`loadView`](LayoutBase.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`measure`](LayoutBase.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`notify`](LayoutBase.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`notifyPropertyChange`](LayoutBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`off`](LayoutBase.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onBackPressed`](LayoutBase.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`once`](LayoutBase.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onLayout`](LayoutBase.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onLoaded`](LayoutBase.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onMeasure`](LayoutBase.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onResumeNativeUpdates`](LayoutBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onUnloaded`](LayoutBase.md#onunloaded) *** ### removeChild() ```ts removeChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L43) Removes the specified view from the children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to remove from the children array. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeChild`](LayoutBase.md#removechild) *** ### removeChildren() ```ts removeChildren(): void; ``` Defined in: [ui/layouts/layout-base.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L48) Removes all views in this layout. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeChildren`](LayoutBase.md#removechildren) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeEventListener`](LayoutBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`requestLayout`](LayoutBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`resetNativeView`](LayoutBase.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`LayoutBase`](LayoutBase.md).[`sendAccessibilityEvent`](LayoutBase.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`set`](LayoutBase.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setAccessibilityIdentifier`](LayoutBase.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setInlineStyle`](LayoutBase.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setMeasuredDimension`](LayoutBase.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setNativeView`](LayoutBase.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setOnTouchListener`](LayoutBase.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setProperty`](LayoutBase.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`showModal`](LayoutBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`toString`](LayoutBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`unbind`](LayoutBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`unloadView`](LayoutBase.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`updateStatusBarStyle`](LayoutBase.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`addEventListener`](LayoutBase.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`combineMeasuredStates`](LayoutBase.md#combinemeasuredstates) *** ### getLeft() ```ts static getLeft(view: View): LengthType; ``` Defined in: [ui/layouts/absolute-layout/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/absolute-layout/index.d.ts#L16) Gets the value of the Left property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns [`LengthType`](../namespaces/CoreTypes/type-aliases/LengthType.md) *** ### getTop() ```ts static getTop(view: View): LengthType; ``` Defined in: [ui/layouts/absolute-layout/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/absolute-layout/index.d.ts#L26) Gets the value of the Top property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns [`LengthType`](../namespaces/CoreTypes/type-aliases/LengthType.md) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutChild`](LayoutBase.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`LayoutBase`](LayoutBase.md).[`measureChild`](LayoutBase.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`off`](LayoutBase.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`once`](LayoutBase.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeEventListener`](LayoutBase.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`resolveSizeAndState`](LayoutBase.md#resolvesizeandstate) *** ### setLeft() ```ts static setLeft(view: View, value: LengthType): void; ``` Defined in: [ui/layouts/absolute-layout/index.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/absolute-layout/index.d.ts#L21) Sets the value of the Left property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | [`LengthType`](../namespaces/CoreTypes/type-aliases/LengthType.md) | #### Returns `void` *** ### setTop() ```ts static setTop(view: View, value: LengthType): void; ``` Defined in: [ui/layouts/absolute-layout/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/absolute-layout/index.d.ts#L31) Sets the value of the Top property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | [`LengthType`](../namespaces/CoreTypes/type-aliases/LengthType.md) | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/ActionBar.md' description: Provides an abstraction over the ActionBar (android) and NavigationBar (iOS). --- Defined in: [ui/action-bar/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L10) Provides an abstraction over the ActionBar (android) and NavigationBar (iOS). ## Ns View ActionBar ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new ActionBar(): ActionBar; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `ActionBar` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`View`](View.md).[`_androidContentDescriptionUpdated`](View.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_automaticallyAdjustsScrollViewInsets`](View.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`_closeModalCallback`](View.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_context`](View.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_cssState`](View.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingBottom`](View.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingLeft`](View.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingRight`](View.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingTop`](View.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_domId`](View.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_ignoreFlexMinWidthHeightReset`](View.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isAddedToNativeVisualTree`](View.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isPaddingRelative`](View.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldBottom`](View.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldLeft`](View.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldRight`](View.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldTop`](View.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_styleScope`](View.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`View`](View.md).[`_suspendNativeUpdatesCount`](View.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHidden`](View.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHint`](View.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIdentifier`](View.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLabel`](View.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLanguage`](View.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLiveRegion`](View.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityMediaSession`](View.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityRole`](View.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityState`](View.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityValue`](View.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`View`](View.md).[`accessible`](View.md#accessible) *** ### actionItems ```ts actionItems: ActionItems; ``` Defined in: [ui/action-bar/index.d.ts:45](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L45) Gets the collection of action items. #### Ns Property *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`View`](View.md).[`alignSelf`](View.md#alignself) *** ### android ```ts android: AndroidActionBarSettings; ``` Defined in: [ui/action-bar/index.d.ts:51](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L51) Gets the android specific options of the action bar. #### Overrides [`View`](View.md).[`android`](View.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidDynamicElevationOffset`](View.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidElevation`](View.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`androidOverflowEdge`](View.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`View`](View.md).[`background`](View.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundColor`](View.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundImage`](View.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`View`](View.md).[`bindingContext`](View.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomColor`](View.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomLeftRadius`](View.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomRightRadius`](View.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomWidth`](View.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderColor`](View.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftColor`](View.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftWidth`](View.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRadius`](View.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightColor`](View.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightWidth`](View.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopColor`](View.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopLeftRadius`](View.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopRightRadius`](View.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopWidth`](View.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderWidth`](View.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`View`](View.md).[`className`](View.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`col`](View.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`color`](View.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`colSpan`](View.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`column`](View.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`View`](View.md).[`columnSpan`](View.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`View`](View.md).[`cssType`](View.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`View`](View.md).[`defaultVisualState`](View.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](View.md).[`direction`](View.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`View`](View.md).[`dock`](View.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`domNode`](View.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderBottomWidth`](View.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderLeftWidth`](View.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderRightWidth`](View.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveContentInsetLeft ```ts effectiveContentInsetLeft: number; ``` Defined in: [ui/action-bar/index.d.ts:69](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L69) *** ### effectiveContentInsetRight ```ts effectiveContentInsetRight: number; ``` Defined in: [ui/action-bar/index.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L70) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveHeight`](View.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveLeft`](View.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginBottom`](View.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginLeft`](View.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginRight`](View.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinHeight`](View.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveTop`](View.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveWidth`](View.md#effectivewidth) *** ### flat ```ts flat: boolean; ``` Defined in: [ui/action-bar/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L38) Removes the shadow/border at the bottom of the ActionBar and removes translucency on iOS. Default false. #### Ns Property *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flex`](View.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`View`](View.md).[`flexFlow`](View.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flexGrow`](View.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`View`](View.md).[`flexShrink`](View.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`View`](View.md).[`flexWrapBefore`](View.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`View`](View.md).[`height`](View.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`View`](View.md).[`hidden`](View.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`View`](View.md).[`horizontalAlignment`](View.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`View`](View.md).[`id`](View.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/action-bar/index.d.ts:56](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L56) Gets the native iOS [UINavigationBar](https://developer.apple.com/documentation/uikit/uinavigationbar) that represents the user interface for this component. Valid only when running on iOS. #### Overrides [`View`](View.md).[`ios`](View.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityAdjustsFontSize`](View.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMaxFontScale`](View.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`View`](View.md).[`iosGlassEffect`](View.md#iosglasseffect) *** ### iosIconRenderingMode ```ts iosIconRenderingMode: "automatic" | "alwaysOriginal" | "alwaysTemplate"; ``` Defined in: [ui/action-bar/index.d.ts:67](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L67) Gets or set the UIImageRenderingMode of the action bar icons in iOS. Defaults to "alwaysOriginal" Valid values are: * automatic * alwaysOriginal * alwaysTemplate #### Ns Property *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosIgnoreSafeArea`](View.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeArea`](View.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeAreaEnabled`](View.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`View`](View.md).[`isCollapsed`](View.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isEnabled`](View.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`View`](View.md).[`isLayoutValid`](View.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isUserInteractionEnabled`](View.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`left`](View.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`View`](View.md).[`margin`](View.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginBottom`](View.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginLeft`](View.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginRight`](View.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`View`](View.md).[`mIsRootView`](View.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`View`](View.md).[`modal`](View.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`View`](View.md).[`nativeBackgroundState`](View.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`View`](View.md).[`nativeViewProtected`](View.md#nativeviewprotected) *** ### navigationButton ```ts navigationButton: NavigationButton; ``` Defined in: [ui/action-bar/index.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L30) Gets or sets the navigation button (a.k.a. the back button). #### Ns Property *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`View`](View.md).[`opacity`](View.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`View`](View.md).[`order`](View.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originX`](View.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originY`](View.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`View`](View.md).[`parent`](View.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`perspective`](View.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`recycleNativeView`](View.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`View`](View.md).[`reusable`](View.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotate`](View.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateX`](View.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateY`](View.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`row`](View.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`rowSpan`](View.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleX`](View.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleY`](View.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionIgnore`](View.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionTag`](View.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`View`](View.md).[`statusBarStyle`](View.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### title ```ts title: string; ``` Defined in: [ui/action-bar/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L16) Gets or sets the action bar title. #### Ns Property *** ### titleView ```ts titleView: View; ``` Defined in: [ui/action-bar/index.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L23) Gets or sets the title view. When set - replaces the title with a custom view. #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`top`](View.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`View`](View.md).[`touchDelay`](View.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`View`](View.md).[`transitionId`](View.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateX`](View.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateY`](View.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`View`](View.md).[`verticalAlignment`](View.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`View`](View.md).[`viewController`](View.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`View`](View.md).[`visibility`](View.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionHoverStyle`](View.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionIgnoreHoverStyle`](View.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`width`](View.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`View`](View.md).[`accessibilityBlurEvent`](View.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`View`](View.md).[`accessibilityFocusChangedEvent`](View.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`View`](View.md).[`accessibilityFocusEvent`](View.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`accessibilityPerformEscapeEvent`](View.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`View`](View.md).[`createdEvent`](View.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`View`](View.md).[`disposeNativeViewEvent`](View.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`View`](View.md).[`layoutChangedEvent`](View.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`View`](View.md).[`loadedEvent`](View.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`View`](View.md).[`propertyChangeEvent`](View.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`View`](View.md).[`showingModallyEvent`](View.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`View`](View.md).[`unloadedEvent`](View.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundPosition`](View.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundRepeat`](View.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundSize`](View.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`class`](View.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingBottom`](View.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingLeft`](View.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingRight`](View.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingTop`](View.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`View`](View.md).[`isLoaded`](View.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`View`](View.md).[`nativeView`](View.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`View`](View.md).[`page`](View.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`parentNode`](View.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`style`](View.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`textTransform`](View.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`View`](View.md).[`typeName`](View.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](View.md).[`visualState`](View.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addView`](View.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addViewCore`](View.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_addViewToNativeVisualTree`](View.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`View`](View.md).[`_applyGlassEffect`](View.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`View`](View.md).[`_applyXmlAttribute`](View.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`View`](View.md).[`_batchUpdate`](View.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`_childIndexToNativeChildIndex`](View.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`View`](View.md).[`_closeAllModalViewsInternal`](View.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`View`](View.md).[`_createPropertyChangeData`](View.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_dialogClosed`](View.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_eachLayoutView`](View.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`_emit`](View.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`View`](View.md).[`_getRootModalViews`](View.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_getValue`](View.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_handleLivesync`](View.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_hasAncestorView`](View.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_hideNativeModalView`](View.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyles`](View.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyleScope`](View.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_layoutParent`](View.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_observe`](View.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onAttachedToWindow`](View.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onDetachedFromWindow`](View.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_onRootViewReset`](View.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`View`](View.md).[`_onSizeChanged`](View.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_parentChanged`](View.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseLayoutChangedEvent`](View.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShowingModallyEvent`](View.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShownModallyEvent`](View.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeView`](View.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewCore`](View.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewFromNativeVisualTree`](View.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_resumeNativeUpdates`](View.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setDefaultPaddings`](View.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupAsRootView`](View.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupUI`](View.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_setValue`](View.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`View`](View.md).[`_shouldDelayLayout`](View.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_showNativeModalView`](View.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_suspendNativeUpdates`](View.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_tearDownUI`](View.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`View`](View.md).[`_updateStyleScope`](View.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityAnnouncement`](View.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityScreenChanged`](View.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`View`](View.md).[`addPseudoClass`](View.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`View`](View.md).[`animate`](View.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`View`](View.md).[`bind`](View.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callLoaded`](View.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callUnloaded`](View.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`View`](View.md).[`closeModal`](View.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`View`](View.md).[`createAnimation`](View.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`View`](View.md).[`createNativeView`](View.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`View`](View.md).[`deletePseudoClass`](View.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`View`](View.md).[`destroyNode`](View.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`disposeNativeView`](View.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChild`](View.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChildView`](View.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`View`](View.md).[`ensureDomNode`](View.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`View`](View.md).[`focus`](View.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`View`](View.md).[`get`](View.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`View`](View.md).[`getActualSize`](View.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`View`](View.md).[`getClosestWindow`](View.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`View`](View.md).[`getEffectivePaddingShorthand`](View.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`View`](View.md).[`getGestureObservers`](View.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationInWindow`](View.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationOnScreen`](View.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationRelativeTo`](View.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredHeight`](View.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`View`](View.md).[`getSafeAreaInsets`](View.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewByDomId`](View.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewById`](View.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasGestureObservers`](View.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasListeners`](View.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`initNativeView`](View.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`layout`](View.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutNativeView`](View.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`View`](View.md).[`loadView`](View.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`View`](View.md).[`measure`](View.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`View`](View.md).[`notify`](View.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`notifyPropertyChange`](View.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`View`](View.md).[`off`](View.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`View`](View.md).[`onBackPressed`](View.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`View`](View.md).[`once`](View.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`onLayout`](View.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onLoaded`](View.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`View`](View.md).[`onMeasure`](View.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onResumeNativeUpdates`](View.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onUnloaded`](View.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`View`](View.md).[`requestLayout`](View.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`resetNativeView`](View.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`View`](View.md).[`sendAccessibilityEvent`](View.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`set`](View.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setAccessibilityIdentifier`](View.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setInlineStyle`](View.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`View`](View.md).[`setMeasuredDimension`](View.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setNativeView`](View.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`View`](View.md).[`setOnTouchListener`](View.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setProperty`](View.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`View`](View.md).[`showModal`](View.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`View`](View.md).[`toString`](View.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`unbind`](View.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`View`](View.md).[`unloadView`](View.md#unloadview) *** ### update() ```ts update(): any; ``` Defined in: [ui/action-bar/index.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L75) Updates the action bar. #### Returns `any` *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`View`](View.md).[`updateStatusBarStyle`](View.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`View`](View.md).[`combineMeasuredStates`](View.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutChild`](View.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`View`](View.md).[`measureChild`](View.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`off`](View.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`on`](View.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`once`](View.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`resolveSizeAndState`](View.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/ActionItem.md' description: Represents an action item in the action bar. --- Defined in: [ui/action-bar/index.d.ts:123](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L123) Represents an action item in the action bar. ## Ns View ActionItem ## Extends * [`ViewBase`](ViewBase.md) ## Extended by * [`NavigationButton`](NavigationButton.md) ## Constructors ### Constructor ```ts new ActionItem(): ActionItem; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `ActionItem` #### Inherited from [`ViewBase`](ViewBase.md).[`constructor`](ViewBase.md#constructor) ## Properties ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_automaticallyAdjustsScrollViewInsets`](ViewBase.md#automaticallyadjustsscrollviewinsets) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_context`](ViewBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_cssState`](ViewBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_defaultPaddingBottom`](ViewBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_defaultPaddingLeft`](ViewBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_defaultPaddingRight`](ViewBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_defaultPaddingTop`](ViewBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_domId`](ViewBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_ignoreFlexMinWidthHeightReset`](ViewBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_isAddedToNativeVisualTree`](ViewBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_isPaddingRelative`](ViewBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_isStyleScopeHost`](ViewBase.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_oldBottom`](ViewBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_oldLeft`](ViewBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_oldRight`](ViewBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_oldTop`](ViewBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_styleScope`](ViewBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`ViewBase`](ViewBase.md).[`_suspendNativeUpdatesCount`](ViewBase.md#suspendnativeupdatescount) *** ### actionBar ```ts actionBar: ActionBar; ``` Defined in: [ui/action-bar/index.d.ts:162](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L162) Gets the action bar that contains the action item. *** ### actionView ```ts actionView: View; ``` Defined in: [ui/action-bar/index.d.ts:150](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L150) Gets or sets the custom action view of the action item. #### Ns Property *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`alignSelf`](ViewBase.md#alignself) *** ### android ```ts android: AndroidActionItemSettings; ``` Defined in: [ui/action-bar/index.d.ts:198](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L198) Gets the Android specific options of the action item. #### Overrides [`ViewBase`](ViewBase.md).[`android`](ViewBase.md#android) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`bindingContext`](ViewBase.md#bindingcontext) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`className`](ViewBase.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`col`](ViewBase.md#col) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`colSpan`](ViewBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`column`](ViewBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`columnSpan`](ViewBase.md#columnspan) *** ### cssClasses ```ts readonly cssClasses: Set; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`cssClasses`](ViewBase.md#cssclasses) *** ### cssPseudoClasses ```ts readonly cssPseudoClasses: Set; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`cssPseudoClasses`](ViewBase.md#csspseudoclasses) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`defaultVisualState`](ViewBase.md#defaultvisualstate) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`dock`](ViewBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`domNode`](ViewBase.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderBottomWidth`](ViewBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderLeftWidth`](ViewBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderRightWidth`](ViewBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderTopWidth`](ViewBase.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveHeight`](ViewBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveLeft`](ViewBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginBottom`](ViewBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginLeft`](ViewBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginRight`](ViewBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginTop`](ViewBase.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMinHeight`](ViewBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMinWidth`](ViewBase.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveTop`](ViewBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveWidth`](ViewBase.md#effectivewidth) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`flexGrow`](ViewBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`flexShrink`](ViewBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`flexWrapBefore`](ViewBase.md#flexwrapbefore) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`hidden`](ViewBase.md#hidden) *** ### icon ```ts icon: string; ``` Defined in: [ui/action-bar/index.d.ts:143](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L143) Gets or sets the icon of the action item. #### Ns Property *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`id`](ViewBase.md#id) *** ### ios ```ts ios: IOSActionItemSettings; ``` Defined in: [ui/action-bar/index.d.ts:192](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L192) Gets the iOS specific options of the action item. #### Overrides [`ViewBase`](ViewBase.md).[`ios`](ViewBase.md#ios) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`ViewBase`](ViewBase.md).[`isCollapsed`](ViewBase.md#iscollapsed) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`left`](ViewBase.md#left) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`ViewBase`](ViewBase.md).[`mIsRootView`](ViewBase.md#misrootview) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`ViewBase`](ViewBase.md).[`nativeViewProtected`](ViewBase.md#nativeviewprotected) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`order`](ViewBase.md#order) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`ViewBase`](ViewBase.md).[`parent`](ViewBase.md#parent) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`recycleNativeView`](ViewBase.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`reusable`](ViewBase.md#reusable) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`row`](ViewBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`rowSpan`](ViewBase.md#rowspan) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`sharedTransitionIgnore`](ViewBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`sharedTransitionTag`](ViewBase.md#sharedtransitiontag) *** ### text ```ts text: string; ``` Defined in: [ui/action-bar/index.d.ts:136](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L136) Gets or sets the text of the action item. #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`top`](ViewBase.md#top) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`ViewBase`](ViewBase.md).[`viewController`](ViewBase.md#viewcontroller) *** ### visibility ```ts visibility: string; ``` Defined in: [ui/action-bar/index.d.ts:157](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L157) Gets or sets the visibility of the action item. #### Ns Property *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`ViewBase`](ViewBase.md).[`createdEvent`](ViewBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`ViewBase`](ViewBase.md).[`disposeNativeViewEvent`](ViewBase.md#disposenativeviewevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`ViewBase`](ViewBase.md).[`loadedEvent`](ViewBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`ViewBase`](ViewBase.md).[`propertyChangeEvent`](ViewBase.md#propertychangeevent) *** ### tapEvent ```ts static tapEvent: string; ``` Defined in: [ui/action-bar/index.d.ts:129](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L129) String value used when hooking to layoutChanged event. #### Ns Event tap *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`ViewBase`](ViewBase.md).[`unloadedEvent`](ViewBase.md#unloadedevent) ## Accessors ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`class`](ViewBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`effectivePaddingBottom`](ViewBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`effectivePaddingLeft`](ViewBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`effectivePaddingRight`](ViewBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`effectivePaddingTop`](ViewBase.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`ViewBase`](ViewBase.md).[`isLoaded`](ViewBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`nativeView`](ViewBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`ViewBase`](ViewBase.md).[`page`](ViewBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`parentNode`](ViewBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`style`](ViewBase.md#style) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`ViewBase`](ViewBase.md).[`typeName`](ViewBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`ViewBase`](ViewBase.md).[`visualState`](ViewBase.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_addView`](ViewBase.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_addViewCore`](ViewBase.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`ViewBase`](ViewBase.md).[`_addViewToNativeVisualTree`](ViewBase.md#addviewtonativevisualtree) *** ### \_addVisualState() ```ts _addVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_addVisualState`](ViewBase.md#addvisualstate) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`ViewBase`](ViewBase.md).[`_applyXmlAttribute`](ViewBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`ViewBase`](ViewBase.md).[`_batchUpdate`](ViewBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`ViewBase`](ViewBase.md).[`_childIndexToNativeChildIndex`](ViewBase.md#childindextonativechildindex) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`ViewBase`](ViewBase.md).[`_createPropertyChangeData`](ViewBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_dialogClosed`](ViewBase.md#dialogclosed) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_emit`](ViewBase.md#emit) *** ### ~~\_goToVisualState()~~ ```ts _goToVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` #### Deprecated Use View.\_addVisualState() and View.\_removeVisualState() instead. #### Inherited from [`ViewBase`](ViewBase.md).[`_goToVisualState`](ViewBase.md#gotovisualstate) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_inheritStyles`](ViewBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_inheritStyleScope`](ViewBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_layoutParent`](ViewBase.md#layoutparent) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_onRootViewReset`](ViewBase.md#onrootviewreset) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_parentChanged`](ViewBase.md#parentchanged) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_removeView`](ViewBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_removeViewCore`](ViewBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_removeViewFromNativeVisualTree`](ViewBase.md#removeviewfromnativevisualtree) *** ### \_removeVisualState() ```ts _removeVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_removeVisualState`](ViewBase.md#removevisualstate) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_resumeNativeUpdates`](ViewBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_setDefaultPaddings`](ViewBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_setupAsRootView`](ViewBase.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_setupUI`](ViewBase.md#setupui) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`ViewBase`](ViewBase.md).[`_shouldDelayLayout`](ViewBase.md#shoulddelaylayout) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_suspendNativeUpdates`](ViewBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_tearDownUI`](ViewBase.md#teardownui) *** ### addEventListener() ```ts addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`addEventListener`](ViewBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`ViewBase`](ViewBase.md).[`addPseudoClass`](ViewBase.md#addpseudoclass) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`bind`](ViewBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`callLoaded`](ViewBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`callUnloaded`](ViewBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`closeModal`](ViewBase.md#closemodal) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`ViewBase`](ViewBase.md).[`createNativeView`](ViewBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`ViewBase`](ViewBase.md).[`deletePseudoClass`](ViewBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`ViewBase`](ViewBase.md).[`destroyNode`](ViewBase.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`disposeNativeView`](ViewBase.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`eachChild`](ViewBase.md#eachchild) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`ViewBase`](ViewBase.md).[`ensureDomNode`](ViewBase.md#ensuredomnode) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`ViewBase`](ViewBase.md).[`get`](ViewBase.md#get) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`ViewBase`](ViewBase.md).[`getEffectivePaddingShorthand`](ViewBase.md#geteffectivepaddingshorthand) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`ViewBase`](ViewBase.md).[`getViewByDomId`](ViewBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`ViewBase`](ViewBase.md).[`getViewById`](ViewBase.md#getviewbyid) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`ViewBase`](ViewBase.md).[`hasListeners`](ViewBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`initNativeView`](ViewBase.md#initnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`loadView`](ViewBase.md#loadview) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`notify`](ViewBase.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`notifyPropertyChange`](ViewBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`off`](ViewBase.md#off) *** ### on() #### Call Signature ```ts on(eventName: string, callback: (data: EventData) => void): void; ``` Defined in: [ui/action-bar/index.d.ts:174](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L174) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | ##### Returns `void` ##### Overrides [`ViewBase`](ViewBase.md).[`on`](ViewBase.md#on) #### Call Signature ```ts on(event: "tap", callback: (args: EventData) => void): void; ``` Defined in: [ui/action-bar/index.d.ts:179](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L179) Raised when a tap event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"tap"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | ##### Returns `void` ##### Overrides ```ts ViewBase.on ``` *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`once`](ViewBase.md#once) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`onLoaded`](ViewBase.md#onloaded) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`onResumeNativeUpdates`](ViewBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`onUnloaded`](ViewBase.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`removeEventListener`](ViewBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`requestLayout`](ViewBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`resetNativeView`](ViewBase.md#resetnativeview) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`set`](ViewBase.md#set) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`setInlineStyle`](ViewBase.md#setinlinestyle) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`setNativeView`](ViewBase.md#setnativeview) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`setProperty`](ViewBase.md#setproperty) *** ### showModal() #### Call Signature ```ts showModal(view: ViewBase, modalOptions?: ShowModalOptions): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Shows the view passed as parameter as a modal view. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | View instance to be shown modally. | | `modalOptions?` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | A ShowModalOptions instance | ##### Returns [`ViewBase`](ViewBase.md) ##### Inherited from [`ViewBase`](ViewBase.md).[`showModal`](ViewBase.md#showmodal) #### Call Signature ```ts showModal(moduleName: string, modalOptions?: ShowModalOptions): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Shows the View contained in moduleName as a modal view. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `moduleName` | `string` | The name of the module to load starting from the application root. | | `modalOptions?` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | A ShowModalOptions instance | ##### Returns [`ViewBase`](ViewBase.md) ##### Inherited from [`ViewBase`](ViewBase.md).[`showModal`](ViewBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`ViewBase`](ViewBase.md).[`toString`](ViewBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`unbind`](ViewBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`unloadView`](ViewBase.md#unloadview) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`ViewBase`](ViewBase.md).[`addEventListener`](ViewBase.md#addeventlistener-1) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ViewBase`](ViewBase.md).[`off`](ViewBase.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`ViewBase`](ViewBase.md).[`on`](ViewBase.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ViewBase`](ViewBase.md).[`once`](ViewBase.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ViewBase`](ViewBase.md).[`removeEventListener`](ViewBase.md#removeeventlistener-1) --- --- url: 'https://docs.nativescript.org/api/classes/ActionItems.md' description: Represents a collection of ActionItems. --- Defined in: [ui/action-bar/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L93) Represents a collection of ActionItems. ## Constructors ### Constructor ```ts new ActionItems(): ActionItems; ``` #### Returns `ActionItems` ## Methods ### addItem() ```ts addItem(item: ActionItem): void; ``` Defined in: [ui/action-bar/index.d.ts:98](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L98) Adds an item to the collection. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `item` | [`ActionItem`](ActionItem.md) | the item to be added | #### Returns `void` *** ### getItemAt() ```ts getItemAt(index: number): ActionItem; ``` Defined in: [ui/action-bar/index.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L115) Gets an item at a specified index. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | The index. | #### Returns [`ActionItem`](ActionItem.md) *** ### getItems() ```ts getItems(): ActionItem[]; ``` Defined in: [ui/action-bar/index.d.ts:109](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L109) Gets an array of the current action items in the collection. #### Returns [`ActionItem`](ActionItem.md)\[] *** ### removeItem() ```ts removeItem(item: ActionItem): void; ``` Defined in: [ui/action-bar/index.d.ts:104](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L104) Removes an item to the collection. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `item` | [`ActionItem`](ActionItem.md) | The item to be removed. | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/ActivityIndicator.md' description: >- Represents a UI widget which displays a progress indicator hinting the user for some background operation running. --- Defined in: [ui/activity-indicator/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/activity-indicator/index.d.ts#L10) Represents a UI widget which displays a progress indicator hinting the user for some background operation running. ## Ns View ActivityIndicator ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new ActivityIndicator(): ActivityIndicator; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `ActivityIndicator` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`View`](View.md).[`_androidContentDescriptionUpdated`](View.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_automaticallyAdjustsScrollViewInsets`](View.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`_closeModalCallback`](View.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_context`](View.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_cssState`](View.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingBottom`](View.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingLeft`](View.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingRight`](View.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingTop`](View.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_domId`](View.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_ignoreFlexMinWidthHeightReset`](View.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isAddedToNativeVisualTree`](View.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isPaddingRelative`](View.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldBottom`](View.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldLeft`](View.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldRight`](View.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldTop`](View.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_styleScope`](View.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`View`](View.md).[`_suspendNativeUpdatesCount`](View.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHidden`](View.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHint`](View.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIdentifier`](View.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLabel`](View.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLanguage`](View.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLiveRegion`](View.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityMediaSession`](View.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityRole`](View.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityState`](View.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityValue`](View.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`View`](View.md).[`accessible`](View.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`View`](View.md).[`alignSelf`](View.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/activity-indicator/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/activity-indicator/index.d.ts#L14) 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. #### Overrides [`View`](View.md).[`android`](View.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidDynamicElevationOffset`](View.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidElevation`](View.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`androidOverflowEdge`](View.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`View`](View.md).[`background`](View.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundColor`](View.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundImage`](View.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`View`](View.md).[`bindingContext`](View.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomColor`](View.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomLeftRadius`](View.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomRightRadius`](View.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomWidth`](View.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderColor`](View.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftColor`](View.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftWidth`](View.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRadius`](View.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightColor`](View.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightWidth`](View.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopColor`](View.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopLeftRadius`](View.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopRightRadius`](View.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopWidth`](View.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderWidth`](View.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### busy ```ts busy: boolean; ``` Defined in: [ui/activity-indicator/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/activity-indicator/index.d.ts#L26) Gets or sets a value indicating whether the widget is currently displaying progress. #### Ns Property *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`View`](View.md).[`className`](View.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`col`](View.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`color`](View.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`colSpan`](View.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`column`](View.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`View`](View.md).[`columnSpan`](View.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`View`](View.md).[`cssType`](View.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`View`](View.md).[`defaultVisualState`](View.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](View.md).[`direction`](View.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`View`](View.md).[`dock`](View.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`domNode`](View.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderBottomWidth`](View.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderLeftWidth`](View.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderRightWidth`](View.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveHeight`](View.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveLeft`](View.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginBottom`](View.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginLeft`](View.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginRight`](View.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinHeight`](View.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveTop`](View.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveWidth`](View.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flex`](View.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`View`](View.md).[`flexFlow`](View.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flexGrow`](View.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`View`](View.md).[`flexShrink`](View.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`View`](View.md).[`flexWrapBefore`](View.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`View`](View.md).[`height`](View.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`View`](View.md).[`hidden`](View.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`View`](View.md).[`horizontalAlignment`](View.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`View`](View.md).[`id`](View.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/activity-indicator/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/activity-indicator/index.d.ts#L19) Gets the native iOS [UIActivityIndicatorView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActivityIndicatorView_Class/index.html) that represents the user interface for this component. Valid only when running on iOS. #### Overrides [`View`](View.md).[`ios`](View.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityAdjustsFontSize`](View.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMaxFontScale`](View.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`View`](View.md).[`iosGlassEffect`](View.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosIgnoreSafeArea`](View.md#iosignoresafearea) *** ### iosIndicatorViewStyle ```ts iosIndicatorViewStyle: IOSIndicatorViewStyle; ``` Defined in: [ui/activity-indicator/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/activity-indicator/index.d.ts#L31) Gets or sets the iOS indicator view style (e.g. medium, large). *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeArea`](View.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeAreaEnabled`](View.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`View`](View.md).[`isCollapsed`](View.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isEnabled`](View.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`View`](View.md).[`isLayoutValid`](View.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isUserInteractionEnabled`](View.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`left`](View.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`View`](View.md).[`margin`](View.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginBottom`](View.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginLeft`](View.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginRight`](View.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`View`](View.md).[`mIsRootView`](View.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`View`](View.md).[`modal`](View.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`View`](View.md).[`nativeBackgroundState`](View.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`View`](View.md).[`nativeViewProtected`](View.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`View`](View.md).[`opacity`](View.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`View`](View.md).[`order`](View.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originX`](View.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originY`](View.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`View`](View.md).[`parent`](View.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`perspective`](View.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`recycleNativeView`](View.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`View`](View.md).[`reusable`](View.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotate`](View.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateX`](View.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateY`](View.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`row`](View.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`rowSpan`](View.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleX`](View.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleY`](View.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionIgnore`](View.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionTag`](View.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`View`](View.md).[`statusBarStyle`](View.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`top`](View.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`View`](View.md).[`touchDelay`](View.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`View`](View.md).[`transitionId`](View.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateX`](View.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateY`](View.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`View`](View.md).[`verticalAlignment`](View.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`View`](View.md).[`viewController`](View.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`View`](View.md).[`visibility`](View.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionHoverStyle`](View.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionIgnoreHoverStyle`](View.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`width`](View.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`View`](View.md).[`accessibilityBlurEvent`](View.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`View`](View.md).[`accessibilityFocusChangedEvent`](View.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`View`](View.md).[`accessibilityFocusEvent`](View.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`accessibilityPerformEscapeEvent`](View.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`View`](View.md).[`createdEvent`](View.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`View`](View.md).[`disposeNativeViewEvent`](View.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`View`](View.md).[`layoutChangedEvent`](View.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`View`](View.md).[`loadedEvent`](View.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`View`](View.md).[`propertyChangeEvent`](View.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`View`](View.md).[`showingModallyEvent`](View.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`View`](View.md).[`unloadedEvent`](View.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundPosition`](View.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundRepeat`](View.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundSize`](View.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`class`](View.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingBottom`](View.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingLeft`](View.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingRight`](View.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingTop`](View.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`View`](View.md).[`isLoaded`](View.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`View`](View.md).[`nativeView`](View.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`View`](View.md).[`page`](View.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`parentNode`](View.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`style`](View.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`textTransform`](View.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`View`](View.md).[`typeName`](View.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](View.md).[`visualState`](View.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addView`](View.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addViewCore`](View.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_addViewToNativeVisualTree`](View.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`View`](View.md).[`_applyGlassEffect`](View.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`View`](View.md).[`_applyXmlAttribute`](View.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`View`](View.md).[`_batchUpdate`](View.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`_childIndexToNativeChildIndex`](View.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`View`](View.md).[`_closeAllModalViewsInternal`](View.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`View`](View.md).[`_createPropertyChangeData`](View.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_dialogClosed`](View.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_eachLayoutView`](View.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`_emit`](View.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`View`](View.md).[`_getRootModalViews`](View.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_getValue`](View.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_handleLivesync`](View.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_hasAncestorView`](View.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_hideNativeModalView`](View.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyles`](View.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyleScope`](View.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_layoutParent`](View.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_observe`](View.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onAttachedToWindow`](View.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onDetachedFromWindow`](View.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_onRootViewReset`](View.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`View`](View.md).[`_onSizeChanged`](View.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_parentChanged`](View.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseLayoutChangedEvent`](View.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShowingModallyEvent`](View.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShownModallyEvent`](View.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeView`](View.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewCore`](View.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewFromNativeVisualTree`](View.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_resumeNativeUpdates`](View.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setDefaultPaddings`](View.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupAsRootView`](View.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupUI`](View.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_setValue`](View.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`View`](View.md).[`_shouldDelayLayout`](View.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_showNativeModalView`](View.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_suspendNativeUpdates`](View.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_tearDownUI`](View.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`View`](View.md).[`_updateStyleScope`](View.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityAnnouncement`](View.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityScreenChanged`](View.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`View`](View.md).[`addPseudoClass`](View.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`View`](View.md).[`animate`](View.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`View`](View.md).[`bind`](View.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callLoaded`](View.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callUnloaded`](View.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`View`](View.md).[`closeModal`](View.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`View`](View.md).[`createAnimation`](View.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`View`](View.md).[`createNativeView`](View.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`View`](View.md).[`deletePseudoClass`](View.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`View`](View.md).[`destroyNode`](View.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`disposeNativeView`](View.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChild`](View.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChildView`](View.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`View`](View.md).[`ensureDomNode`](View.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`View`](View.md).[`focus`](View.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`View`](View.md).[`get`](View.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`View`](View.md).[`getActualSize`](View.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`View`](View.md).[`getClosestWindow`](View.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`View`](View.md).[`getEffectivePaddingShorthand`](View.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`View`](View.md).[`getGestureObservers`](View.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationInWindow`](View.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationOnScreen`](View.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationRelativeTo`](View.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredHeight`](View.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`View`](View.md).[`getSafeAreaInsets`](View.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewByDomId`](View.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewById`](View.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasGestureObservers`](View.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasListeners`](View.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`initNativeView`](View.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`layout`](View.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutNativeView`](View.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`View`](View.md).[`loadView`](View.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`View`](View.md).[`measure`](View.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`View`](View.md).[`notify`](View.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`notifyPropertyChange`](View.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`View`](View.md).[`off`](View.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`View`](View.md).[`onBackPressed`](View.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`View`](View.md).[`once`](View.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`onLayout`](View.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onLoaded`](View.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`View`](View.md).[`onMeasure`](View.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onResumeNativeUpdates`](View.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onUnloaded`](View.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`View`](View.md).[`requestLayout`](View.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`resetNativeView`](View.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`View`](View.md).[`sendAccessibilityEvent`](View.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`set`](View.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setAccessibilityIdentifier`](View.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setInlineStyle`](View.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`View`](View.md).[`setMeasuredDimension`](View.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setNativeView`](View.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`View`](View.md).[`setOnTouchListener`](View.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setProperty`](View.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`View`](View.md).[`showModal`](View.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`View`](View.md).[`toString`](View.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`unbind`](View.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`View`](View.md).[`unloadView`](View.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`View`](View.md).[`updateStatusBarStyle`](View.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`View`](View.md).[`combineMeasuredStates`](View.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutChild`](View.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`View`](View.md).[`measureChild`](View.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`off`](View.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`on`](View.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`once`](View.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`resolveSizeAndState`](View.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/AndroidApplication.md' --- Defined in: [application/application.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L9) ## Extends * [`ApplicationCommon`](ApplicationCommon.md) ## Properties ### activityBackPressedEvent ```ts readonly activityBackPressedEvent: "activityBackPressed" = AndroidApplication.activityBackPressedEvent; ``` Defined in: [application/application.d.ts:63](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L63) *** ### activityCreatedEvent ```ts readonly activityCreatedEvent: "activityCreated" = AndroidApplication.activityCreatedEvent; ``` Defined in: [application/application.d.ts:55](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L55) *** ### activityDestroyedEvent ```ts readonly activityDestroyedEvent: "activityDestroyed" = AndroidApplication.activityDestroyedEvent; ``` Defined in: [application/application.d.ts:56](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L56) *** ### activityNewIntentEvent ```ts readonly activityNewIntentEvent: "activityNewIntent" = AndroidApplication.activityNewIntentEvent; ``` Defined in: [application/application.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L64) *** ### activityPausedEvent ```ts readonly activityPausedEvent: "activityPaused" = AndroidApplication.activityPausedEvent; ``` Defined in: [application/application.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L58) *** ### activityRequestPermissionsEvent ```ts readonly activityRequestPermissionsEvent: "activityRequestPermissions" = AndroidApplication.activityRequestPermissionsEvent; ``` Defined in: [application/application.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L65) *** ### activityResultEvent ```ts readonly activityResultEvent: "activityResult" = AndroidApplication.activityResultEvent; ``` Defined in: [application/application.d.ts:62](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L62) *** ### activityResumedEvent ```ts readonly activityResumedEvent: "activityResumed" = AndroidApplication.activityResumedEvent; ``` Defined in: [application/application.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L59) *** ### activityStartedEvent ```ts readonly activityStartedEvent: "activityStarted" = AndroidApplication.activityStartedEvent; ``` Defined in: [application/application.d.ts:57](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L57) *** ### activityStoppedEvent ```ts readonly activityStoppedEvent: "activityStopped" = AndroidApplication.activityStoppedEvent; ``` Defined in: [application/application.d.ts:60](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L60) *** ### autoSystemAppearanceChanged ```ts autoSystemAppearanceChanged: boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Boolean to enable/disable systemAppearanceChanged #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`autoSystemAppearanceChanged`](ApplicationCommon.md#autosystemappearancechanged) *** ### backgroundEvent ```ts readonly backgroundEvent: "background" = "background"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`backgroundEvent`](ApplicationCommon.md#backgroundevent) *** ### cssChangedEvent ```ts readonly cssChangedEvent: "cssChanged" = "cssChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`cssChangedEvent`](ApplicationCommon.md#csschangedevent) *** ### discardedErrorEvent ```ts readonly discardedErrorEvent: "discardedError" = "discardedError"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`discardedErrorEvent`](ApplicationCommon.md#discardederrorevent) *** ### displayedEvent ```ts readonly displayedEvent: "displayed" = "displayed"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`displayedEvent`](ApplicationCommon.md#displayedevent) *** ### exitEvent ```ts readonly exitEvent: "exit" = "exit"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`exitEvent`](ApplicationCommon.md#exitevent) *** ### fontScaleChangedEvent ```ts readonly fontScaleChangedEvent: "fontScaleChanged" = "fontScaleChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`fontScaleChangedEvent`](ApplicationCommon.md#fontscalechangedevent) *** ### foregroundEvent ```ts readonly foregroundEvent: "foreground" = "foreground"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`foregroundEvent`](ApplicationCommon.md#foregroundevent) *** ### hasListeners ```ts hasListeners: (eventName: string) => boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `boolean` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`hasListeners`](ApplicationCommon.md#haslisteners) *** ### initRootViewEvent ```ts readonly initRootViewEvent: "initRootView" = "initRootView"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`initRootViewEvent`](ApplicationCommon.md#initrootviewevent) *** ### launchEvent ```ts readonly launchEvent: "launch" = "launch"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`launchEvent`](ApplicationCommon.md#launchevent) *** ### layoutDirectionChangedEvent ```ts readonly layoutDirectionChangedEvent: "layoutDirectionChanged" = "layoutDirectionChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`layoutDirectionChangedEvent`](ApplicationCommon.md#layoutdirectionchangedevent) *** ### livesyncEvent ```ts readonly livesyncEvent: "livesync" = "livesync"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`livesyncEvent`](ApplicationCommon.md#livesyncevent) *** ### loadAppCssEvent ```ts readonly loadAppCssEvent: "loadAppCss" = "loadAppCss"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`loadAppCssEvent`](ApplicationCommon.md#loadappcssevent) *** ### lowMemoryEvent ```ts readonly lowMemoryEvent: "lowMemory" = "lowMemory"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`lowMemoryEvent`](ApplicationCommon.md#lowmemoryevent) *** ### mainEntry ```ts protected mainEntry: NavigationEntry; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`mainEntry`](ApplicationCommon.md#mainentry) *** ### notify ```ts notify: (eventData: T) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Type Parameters | Type Parameter | Default type | | ------ | ------ | | `T` | [`ApplicationEventData`](../interfaces/ApplicationEventData.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `eventData` | `T` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`notify`](ApplicationCommon.md#notify) *** ### off ```ts off: (eventNames: string, callback?: any, thisArg?: any) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback?` | `any` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`off`](ApplicationCommon.md#off) *** ### once ```ts once: { (eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; (event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; (event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; (event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; (event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; (event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; (event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; (event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Call Signature ```ts ( eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; ``` This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"cssChanged"` | | `callback` | (`args`: [`CssChangedEventData`](../interfaces/CssChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"livesync"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; ``` This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"launch"` | | `callback` | (`args`: [`LaunchEventData`](../interfaces/LaunchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"suspend"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"resume"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"exit"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"lowMemory"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"uncaughtError"` | | `callback` | (`args`: [`UnhandledErrorEventData`](../interfaces/UnhandledErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"discardedError"` | | `callback` | (`args`: [`DiscardedErrorEventData`](../interfaces/DiscardedErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the orientation of the application changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`args`: [`OrientationChangedEventData`](../interfaces/OrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`args`: [`SystemAppearanceChangedEventData`](../interfaces/SystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system layout direction changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`args`: [`LayoutDirectionChangedEventData`](../interfaces/LayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"fontScaleChanged"` | | `callback` | (`args`: [`FontScaleChangedEventData`](../interfaces/FontScaleChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`once`](ApplicationCommon.md#once) *** ### orientationChangedEvent ```ts readonly orientationChangedEvent: "orientationChanged" = "orientationChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`orientationChangedEvent`](ApplicationCommon.md#orientationchangedevent) *** ### resumeEvent ```ts readonly resumeEvent: "resume" = "resume"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`resumeEvent`](ApplicationCommon.md#resumeevent) *** ### saveActivityStateEvent ```ts readonly saveActivityStateEvent: "saveActivityState" = AndroidApplication.saveActivityStateEvent; ``` Defined in: [application/application.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L61) *** ### started ```ts started: boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`started`](ApplicationCommon.md#started) *** ### suspendEvent ```ts readonly suspendEvent: "suspend" = "suspend"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`suspendEvent`](ApplicationCommon.md#suspendevent) *** ### systemAppearanceChangedEvent ```ts readonly systemAppearanceChangedEvent: "systemAppearanceChanged" = "systemAppearanceChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`systemAppearanceChangedEvent`](ApplicationCommon.md#systemappearancechangedevent) *** ### uncaughtErrorEvent ```ts readonly uncaughtErrorEvent: "uncaughtError" = "uncaughtError"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`uncaughtErrorEvent`](ApplicationCommon.md#uncaughterrorevent) *** ### ~~activityBackPressedEvent~~ ```ts readonly static activityBackPressedEvent: "activityBackPressed" = 'activityBackPressed'; ``` Defined in: [application/application.d.ts:45](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L45) #### Deprecated Use `Application.android.activityBackPressedEvent` instead. *** ### ~~activityCreatedEvent~~ ```ts readonly static activityCreatedEvent: "activityCreated" = 'activityCreated'; ``` Defined in: [application/application.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L13) #### Deprecated Use `Application.android.activityCreatedEvent` instead. *** ### ~~activityDestroyedEvent~~ ```ts readonly static activityDestroyedEvent: "activityDestroyed" = 'activityDestroyed'; ``` Defined in: [application/application.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L17) #### Deprecated Use `Application.android.activityDestroyedEvent` instead. *** ### ~~activityNewIntentEvent~~ ```ts readonly static activityNewIntentEvent: "activityNewIntent" = 'activityNewIntent'; ``` Defined in: [application/application.d.ts:49](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L49) #### Deprecated Use `Application.android.activityNewIntentEvent` instead. *** ### ~~activityPausedEvent~~ ```ts readonly static activityPausedEvent: "activityPaused" = 'activityPaused'; ``` Defined in: [application/application.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L25) #### Deprecated Use `Application.android.activityPausedEvent` instead. *** ### ~~activityRequestPermissionsEvent~~ ```ts readonly static activityRequestPermissionsEvent: "activityRequestPermissions" = 'activityRequestPermissions'; ``` Defined in: [application/application.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L53) #### Deprecated Use `Application.android.activityRequestPermissionsEvent` instead. *** ### ~~activityResultEvent~~ ```ts readonly static activityResultEvent: "activityResult" = 'activityResult'; ``` Defined in: [application/application.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L41) #### Deprecated Use `Application.android.activityResultEvent` instead. *** ### ~~activityResumedEvent~~ ```ts readonly static activityResumedEvent: "activityResumed" = 'activityResumed'; ``` Defined in: [application/application.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L29) #### Deprecated Use `Application.android.activityResumedEvent` instead. *** ### ~~activityStartedEvent~~ ```ts readonly static activityStartedEvent: "activityStarted" = 'activityStarted'; ``` Defined in: [application/application.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L21) #### Deprecated Use `Application.android.activityStartedEvent` instead. *** ### ~~activityStoppedEvent~~ ```ts readonly static activityStoppedEvent: "activityStopped" = 'activityStopped'; ``` Defined in: [application/application.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L33) #### Deprecated Use `Application.android.activityStoppedEvent` instead. *** ### ~~hasListeners~~ ```ts static hasListeners: (eventName: string) => boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `boolean` #### Deprecated Use `Application.android.hasListeners()` instead. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`hasListeners`](ApplicationCommon.md#haslisteners-1) *** ### ~~notify~~ ```ts static notify: (eventData: T) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Type Parameters | Type Parameter | Default type | | ------ | ------ | | `T` | [`ApplicationEventData`](../interfaces/ApplicationEventData.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `eventData` | `T` | #### Returns `void` #### Deprecated Use `Application.android.notify()` instead. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`notify`](ApplicationCommon.md#notify-1) *** ### ~~off~~ ```ts static off: (eventNames: string, callback?: any, thisArg?: any) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback?` | `any` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated Use `Application.android.off()` instead. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`off`](ApplicationCommon.md#off-1) *** ### ~~on~~ ```ts static on: { (eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; (event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; (event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; (event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; (event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; (event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; (event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; (event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Call Signature ```ts ( eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; ``` This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"cssChanged"` | | `callback` | (`args`: [`CssChangedEventData`](../interfaces/CssChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"livesync"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; ``` This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"launch"` | | `callback` | (`args`: [`LaunchEventData`](../interfaces/LaunchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"suspend"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"resume"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"exit"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"lowMemory"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"uncaughtError"` | | `callback` | (`args`: [`UnhandledErrorEventData`](../interfaces/UnhandledErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"discardedError"` | | `callback` | (`args`: [`DiscardedErrorEventData`](../interfaces/DiscardedErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the orientation of the application changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`args`: [`OrientationChangedEventData`](../interfaces/OrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`args`: [`SystemAppearanceChangedEventData`](../interfaces/SystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system layout direction changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`args`: [`LayoutDirectionChangedEventData`](../interfaces/LayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"fontScaleChanged"` | | `callback` | (`args`: [`FontScaleChangedEventData`](../interfaces/FontScaleChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Deprecated Use `Application.android.on()` instead. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`on`](ApplicationCommon.md#on-1) *** ### ~~once~~ ```ts static once: { (eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; (event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; (event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; (event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; (event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; (event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; (event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; (event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Call Signature ```ts ( eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; ``` This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"cssChanged"` | | `callback` | (`args`: [`CssChangedEventData`](../interfaces/CssChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"livesync"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; ``` This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"launch"` | | `callback` | (`args`: [`LaunchEventData`](../interfaces/LaunchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"suspend"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"resume"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"exit"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"lowMemory"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"uncaughtError"` | | `callback` | (`args`: [`UnhandledErrorEventData`](../interfaces/UnhandledErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"discardedError"` | | `callback` | (`args`: [`DiscardedErrorEventData`](../interfaces/DiscardedErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the orientation of the application changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`args`: [`OrientationChangedEventData`](../interfaces/OrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`args`: [`SystemAppearanceChangedEventData`](../interfaces/SystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system layout direction changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`args`: [`LayoutDirectionChangedEventData`](../interfaces/LayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"fontScaleChanged"` | | `callback` | (`args`: [`FontScaleChangedEventData`](../interfaces/FontScaleChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Deprecated Use `Application.android.once()` instead. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`once`](ApplicationCommon.md#once-1) *** ### ~~saveActivityStateEvent~~ ```ts readonly static saveActivityStateEvent: "saveActivityState" = 'saveActivityState'; ``` Defined in: [application/application.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L37) #### Deprecated Use `Application.android.saveActivityStateEvent` instead. ## Accessors ### android #### Get Signature ```ts get android(): AndroidApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns `AndroidApplication` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`android`](ApplicationCommon.md#android) *** ### AndroidApplication #### Get Signature ```ts get AndroidApplication(): AndroidApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns `AndroidApplication` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`AndroidApplication`](ApplicationCommon.md#androidapplication) *** ### backgrounded #### Get Signature ```ts get backgrounded(): boolean; ``` Defined in: [application/application.d.ts:104](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L104) ##### Deprecated Use `Application.inBackground` instead. ##### Returns `boolean` *** ### context #### Get Signature ```ts get context(): Context; ``` Defined in: [application/application.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L99) ##### Deprecated Use `Utils.android.getApplicationContext()` instead. ##### Returns `Context` *** ### foregroundActivity #### Get Signature ```ts get foregroundActivity(): AppCompatActivity; ``` Defined in: [application/application.d.ts:94](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L94) 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` *** ### inBackground #### Get Signature ```ts get inBackground(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns `boolean` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`inBackground`](ApplicationCommon.md#inbackground) *** ### ios #### Get Signature ```ts get ios(): iOSApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns [`iOSApplication`](iOSApplication.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`ios`](ApplicationCommon.md#ios) *** ### iOSApplication #### Get Signature ```ts get iOSApplication(): iOSApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns [`iOSApplication`](iOSApplication.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`iOSApplication`](ApplicationCommon.md#iosapplication) *** ### nativeApp #### Get Signature ```ts get nativeApp(): Application; ``` Defined in: [application/application.d.ts:77](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L77) The [android Application](http://developer.android.com/reference/android/app/Application.html) object instance provided to the init of the module. ##### Returns `Application` *** ### packageName #### Get Signature ```ts get packageName(): string; ``` Defined in: [application/application.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L82) ##### Deprecated Use `Utils.android.getPackageName()` instead. ##### Returns `string` *** ### paused #### Get Signature ```ts get paused(): boolean; ``` Defined in: [application/application.d.ts:109](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L109) ##### Deprecated Use `Application.suspended` instead. ##### Returns `boolean` *** ### startActivity #### Get Signature ```ts get startActivity(): AppCompatActivity; ``` Defined in: [application/application.d.ts:87](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L87) The main (start) Activity for the application. ##### Returns `AppCompatActivity` *** ### suspended #### Get Signature ```ts get suspended(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns `boolean` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`suspended`](ApplicationCommon.md#suspended) ## Methods ### addCss() ```ts addCss(cssText: string, attributeScoped?: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `cssText` | `string` | | `attributeScoped?` | `boolean` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`addCss`](ApplicationCommon.md#addcss) *** ### applyCssClass() ```ts applyCssClass( rootView: View, cssClasses: string[], newCssClass: string, skipCssUpdate?: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Applies the the `newCssClass` to the `rootView` and removes all other css classes from `cssClasses` previously applied to the `rootView`. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | - | | `cssClasses` | `string`\[] | - | | `newCssClass` | `string` | - | | `skipCssUpdate?` | `boolean` | - | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`applyCssClass`](ApplicationCommon.md#applycssclass) *** ### createRootView() ```ts createRootView( view?: View, fireLaunchEvent?: boolean, additionalLanchEventData?: any): View; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view?` | [`View`](View.md) | | `fireLaunchEvent?` | `boolean` | | `additionalLanchEventData?` | `any` | #### Returns [`View`](View.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`createRootView`](ApplicationCommon.md#createrootview) *** ### getCssFileName() ```ts getCssFileName(): string; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Gets css file name for the application. #### Returns `string` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getCssFileName`](ApplicationCommon.md#getcssfilename) *** ### getLayoutDirection() ```ts protected getLayoutDirection(): LayoutDirectionType; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getLayoutDirection`](ApplicationCommon.md#getlayoutdirection) *** ### getMainEntry() ```ts getMainEntry(): any; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `any` The main entry of the application #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getMainEntry`](ApplicationCommon.md#getmainentry) *** ### getNativeApplication() ```ts getNativeApplication(): Application; ``` Defined in: [application/application.d.ts:67](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L67) #### Returns `Application` #### Overrides [`ApplicationCommon`](ApplicationCommon.md).[`getNativeApplication`](ApplicationCommon.md#getnativeapplication) *** ### getOrientation() ```ts protected getOrientation(): "portrait" | "landscape" | "unknown"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"portrait"` | `"landscape"` | `"unknown"` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getOrientation`](ApplicationCommon.md#getorientation) *** ### ~~getRegisteredBroadcastReceiver()~~ ```ts getRegisteredBroadcastReceiver(intentFilter: string): BroadcastReceiver; ``` Defined in: [application/application.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L132) Get a registered BroadcastReceiver, then you can get the result code of BroadcastReceiver in onReceiveCallback method. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `intentFilter` | `string` | A string containing the intent filter. | #### Returns `BroadcastReceiver` #### Deprecated Use `getRegisteredBroadcastReceivers` instead. *** ### getRegisteredBroadcastReceivers() ```ts getRegisteredBroadcastReceivers(intentFilter: string): BroadcastReceiver[]; ``` Defined in: [application/application.d.ts:137](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L137) Get all registered BroadcastReceivers for a specific intent filter. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `intentFilter` | `string` | a string containing the intent filter | #### Returns `BroadcastReceiver`\[] *** ### getResources() ```ts getResources(): any; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Get application level static resources. #### Returns `any` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getResources`](ApplicationCommon.md#getresources) *** ### getRootView() ```ts getRootView(): View; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns [`View`](View.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getRootView`](ApplicationCommon.md#getrootview) *** ### getSystemAppearance() ```ts protected getSystemAppearance(): "dark" | "light"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getSystemAppearance`](ApplicationCommon.md#getsystemappearance) *** ### hasLaunched() ```ts hasLaunched(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `boolean` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`hasLaunched`](ApplicationCommon.md#haslaunched) *** ### initRootView() ```ts initRootView(rootView: View): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `rootView` | [`View`](View.md) | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`initRootView`](ApplicationCommon.md#initrootview) *** ### layoutDirection() ```ts layoutDirection(): LayoutDirectionType; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`layoutDirection`](ApplicationCommon.md#layoutdirection) *** ### layoutDirectionChanged() ```ts layoutDirectionChanged(rootView: View, newLayoutDirection: LayoutDirectionType): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Updates root view classes including those of modals #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | the root view | | `newLayoutDirection` | [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) | the new layout direction change | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`layoutDirectionChanged`](ApplicationCommon.md#layoutdirectionchanged) *** ### loadAppCss() ```ts loadAppCss(): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Loads immediately the app.css. By default the app.css file is loaded shortly after "loaded". For the Android snapshot the CSS can be parsed during the snapshot generation, as the CSS does not depend on runtime APIs, and loadAppCss will be called explicitly. #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`loadAppCss`](ApplicationCommon.md#loadappcss) *** ### notifyLaunch() ```ts protected notifyLaunch(additionalLanchEventData?: any): View; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `additionalLanchEventData?` | `any` | #### Returns [`View`](View.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`notifyLaunch`](ApplicationCommon.md#notifylaunch) *** ### on() #### Call Signature ```ts on( event: "activityCreated", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [application/application.d.ts:139](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L139) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityCreated"` | | `callback` | (`args`: `AndroidActivityBundleEventData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts ApplicationCommon.on ``` #### Call Signature ```ts on( event: "activityDestroyed", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [application/application.d.ts:140](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L140) This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityDestroyed"` | | `callback` | (`args`: `AndroidActivityEventData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts ApplicationCommon.on ``` #### Call Signature ```ts on( event: "activityStarted", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [application/application.d.ts:141](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L141) Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStarted"` | | `callback` | (`args`: `AndroidActivityEventData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts ApplicationCommon.on ``` #### Call Signature ```ts on( event: "activityPaused", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [application/application.d.ts:142](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L142) This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityPaused"` | | `callback` | (`args`: `AndroidActivityEventData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts ApplicationCommon.on ``` #### Call Signature ```ts on( event: "activityResumed", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [application/application.d.ts:143](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L143) **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResumed"` | | `callback` | (`args`: `AndroidActivityEventData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts ApplicationCommon.on ``` #### Call Signature ```ts on( event: "activityStopped", callback: (args: AndroidActivityEventData) => void, thisArg?: any): void; ``` Defined in: [application/application.d.ts:144](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L144) This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityStopped"` | | `callback` | (`args`: `AndroidActivityEventData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts ApplicationCommon.on ``` #### Call Signature ```ts on( event: "saveActivityState", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any): void; ``` Defined in: [application/application.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L145) This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"saveActivityState"` | | `callback` | (`args`: `AndroidActivityBundleEventData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts ApplicationCommon.on ``` #### Call Signature ```ts on( event: "activityResult", callback: (args: AndroidActivityResultEventData) => void, thisArg?: any): void; ``` Defined in: [application/application.d.ts:146](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L146) This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityResult"` | | `callback` | (`args`: `AndroidActivityResultEventData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts ApplicationCommon.on ``` #### Call Signature ```ts on( event: "activityBackPressed", callback: (args: AndroidActivityBackPressedEventData) => void, thisArg?: any): void; ``` Defined in: [application/application.d.ts:147](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L147) This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityBackPressed"` | | `callback` | (`args`: `AndroidActivityBackPressedEventData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts ApplicationCommon.on ``` #### Call Signature ```ts on( event: "activityNewIntent", callback: (args: AndroidActivityNewIntentEventData) => void, thisArg?: any): void; ``` Defined in: [application/application.d.ts:148](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L148) This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityNewIntent"` | | `callback` | (`args`: `AndroidActivityNewIntentEventData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts ApplicationCommon.on ``` #### Call Signature ```ts on( event: "activityRequestPermissions", callback: (args: AndroidActivityRequestPermissionsEventData) => void, thisArg?: any): void; ``` Defined in: [application/application.d.ts:149](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L149) This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"activityRequestPermissions"` | | `callback` | (`args`: `AndroidActivityRequestPermissionsEventData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts ApplicationCommon.on ``` *** ### orientation() ```ts orientation(): "portrait" | "landscape" | "unknown"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"portrait"` | `"landscape"` | `"unknown"` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`orientation`](ApplicationCommon.md#orientation) *** ### orientationChanged() ```ts orientationChanged(rootView: View, newOrientation: "portrait" | "landscape" | "unknown"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `rootView` | [`View`](View.md) | | `newOrientation` | `"portrait"` | `"landscape"` | `"unknown"` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`orientationChanged`](ApplicationCommon.md#orientationchanged) *** ### registerBroadcastReceiver() ```ts registerBroadcastReceiver(intentFilter: string, onReceiveCallback: (context: Context, intent: Intent) => void): () => void; ``` Defined in: [application/application.d.ts:118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L118) 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' #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `intentFilter` | `string` | A string containing the intent filter. | | `onReceiveCallback` | (`context`: `Context`, `intent`: `Intent`) => `void` | A callback function that will be called each time the receiver receives a broadcast. | #### Returns A function that can be called to unregister the receiver. () => `void` *** ### resetRootView() ```ts resetRootView(entry?: string | NavigationEntry): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `entry?` | `string` | `NavigationEntry` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`resetRootView`](ApplicationCommon.md#resetrootview) *** ### run() ```ts run(entry?: string | NavigationEntry): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `entry?` | `string` | `NavigationEntry` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`run`](ApplicationCommon.md#run) *** ### setAutoSystemAppearanceChanged() ```ts setAutoSystemAppearanceChanged(value: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) enable/disable systemAppearanceChanged #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setAutoSystemAppearanceChanged`](ApplicationCommon.md#setautosystemappearancechanged) *** ### setCssFileName() ```ts setCssFileName(cssFileName: string): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Sets css file name for the application. #### Parameters | Parameter | Type | | ------ | ------ | | `cssFileName` | `string` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setCssFileName`](ApplicationCommon.md#setcssfilename) *** ### setInBackground() ```ts setInBackground(value: boolean, additonalData?: any): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | | `additonalData?` | `any` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setInBackground`](ApplicationCommon.md#setinbackground) *** ### setLayoutDirection() ```ts protected setLayoutDirection(value: LayoutDirectionType): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setLayoutDirection`](ApplicationCommon.md#setlayoutdirection) *** ### setMaxRefreshRate() ```ts setMaxRefreshRate(options?: { max?: number; min?: number; preferred?: number; }): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) iOS Only Dynamically change the preferred frame rate For devices (iOS 15+) which support min/max/preferred frame rate you can specify ranges For devices (iOS < 15), you can specify the max frame rate see: https://developer.apple.com/documentation/quartzcore/optimizing\_promotion\_refresh\_rates\_for\_iphone\_13\_pro\_and\_ipad\_pro To use, ensure your Info.plist has: ```xml CADisableMinimumFrameDurationOnPhone ``` #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | { `max?`: `number`; `min?`: `number`; `preferred?`: `number`; } | { min?: number; max?: number; preferred?: number } | | `options.max?` | `number` | - | | `options.min?` | `number` | - | | `options.preferred?` | `number` | - | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setMaxRefreshRate`](ApplicationCommon.md#setmaxrefreshrate) *** ### setOrientation() ```ts protected setOrientation(value: "portrait" | "landscape" | "unknown"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"portrait"` | `"landscape"` | `"unknown"` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setOrientation`](ApplicationCommon.md#setorientation) *** ### setResources() ```ts setResources(res: any): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Set application level static resources. #### Parameters | Parameter | Type | | ------ | ------ | | `res` | `any` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setResources`](ApplicationCommon.md#setresources) *** ### setSuspended() ```ts setSuspended(value: boolean, additonalData?: any): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | | `additonalData?` | `any` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setSuspended`](ApplicationCommon.md#setsuspended) *** ### setSystemAppearance() ```ts protected setSystemAppearance(value: "dark" | "light"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setSystemAppearance`](ApplicationCommon.md#setsystemappearance) *** ### systemAppearance() ```ts systemAppearance(): "dark" | "light"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`systemAppearance`](ApplicationCommon.md#systemappearance) *** ### systemAppearanceChanged() ```ts systemAppearanceChanged(rootView: View, newSystemAppearance: "dark" | "light"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Updates root view classes including those of modals #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | the root view | | `newSystemAppearance` | `"dark"` | `"light"` | the new appearance change | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`systemAppearanceChanged`](ApplicationCommon.md#systemappearancechanged) *** ### unregisterBroadcastReceiver() ```ts unregisterBroadcastReceiver(intentFilter: string): void; ``` Defined in: [application/application.d.ts:125](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L125) Unregister a previously registered BroadcastReceiver. For more information, please visit 'http://developer.android.com/reference/android/content/Context.html#unregisterReceiver(android.content.BroadcastReceiver)' #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `intentFilter` | `string` | A string containing the intent filter with which the receiver was originally registered. | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/Animation.md' description: Defines a animation set. --- Defined in: [ui/animation/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/index.d.ts#L8) Defines a animation set. ## Constructors ### Constructor ```ts new Animation(animationDefinitions: AnimationDefinition[], playSequentially?: boolean): Animation; ``` Defined in: [ui/animation/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/index.d.ts#L9) #### Parameters | Parameter | Type | | ------ | ------ | | `animationDefinitions` | [`AnimationDefinition`](../interfaces/AnimationDefinition.md)\[] | | `playSequentially?` | `boolean` | #### Returns `Animation` ## Properties ### cancel ```ts cancel: () => void; ``` Defined in: [ui/animation/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/index.d.ts#L11) #### Returns `void` *** ### isPlaying ```ts isPlaying: boolean; ``` Defined in: [ui/animation/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/index.d.ts#L12) *** ### play ```ts play: (resetOnFinish?: boolean) => AnimationPromise; ``` Defined in: [ui/animation/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/index.d.ts#L10) #### Parameters | Parameter | Type | | ------ | ------ | | `resetOnFinish?` | `boolean` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) ## Methods ### \_resolveAnimationCurve() ```ts _resolveAnimationCurve(curve: any): any; ``` Defined in: [ui/animation/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/index.d.ts#L13) #### Parameters | Parameter | Type | | ------ | ------ | | `curve` | `any` | #### Returns `any` --- --- url: 'https://docs.nativescript.org/api/classes/ApplicationCommon.md' --- Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ## Extended by * [`AndroidApplication`](AndroidApplication.md) * [`iOSApplication`](iOSApplication.md) ## Properties ### autoSystemAppearanceChanged ```ts autoSystemAppearanceChanged: boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Boolean to enable/disable systemAppearanceChanged *** ### backgroundEvent ```ts readonly backgroundEvent: "background" = "background"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### cssChangedEvent ```ts readonly cssChangedEvent: "cssChanged" = "cssChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### discardedErrorEvent ```ts readonly discardedErrorEvent: "discardedError" = "discardedError"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### displayedEvent ```ts readonly displayedEvent: "displayed" = "displayed"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### exitEvent ```ts readonly exitEvent: "exit" = "exit"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### fontScaleChangedEvent ```ts readonly fontScaleChangedEvent: "fontScaleChanged" = "fontScaleChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### foregroundEvent ```ts readonly foregroundEvent: "foreground" = "foreground"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### hasListeners ```ts hasListeners: (eventName: string) => boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `boolean` *** ### initRootViewEvent ```ts readonly initRootViewEvent: "initRootView" = "initRootView"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### launchEvent ```ts readonly launchEvent: "launch" = "launch"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### layoutDirectionChangedEvent ```ts readonly layoutDirectionChangedEvent: "layoutDirectionChanged" = "layoutDirectionChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### livesyncEvent ```ts readonly livesyncEvent: "livesync" = "livesync"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### loadAppCssEvent ```ts readonly loadAppCssEvent: "loadAppCss" = "loadAppCss"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### lowMemoryEvent ```ts readonly lowMemoryEvent: "lowMemory" = "lowMemory"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### mainEntry ```ts protected mainEntry: NavigationEntry; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### notify ```ts notify: (eventData: T) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Type Parameters | Type Parameter | Default type | | ------ | ------ | | `T` | [`ApplicationEventData`](../interfaces/ApplicationEventData.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `eventData` | `T` | #### Returns `void` *** ### off ```ts off: (eventNames: string, callback?: any, thisArg?: any) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback?` | `any` | | `thisArg?` | `any` | #### Returns `void` *** ### on ```ts on: { (eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; (event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; (event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; (event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; (event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; (event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; (event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; (event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Call Signature ```ts ( eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; ``` This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"cssChanged"` | | `callback` | (`args`: [`CssChangedEventData`](../interfaces/CssChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"livesync"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; ``` This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"launch"` | | `callback` | (`args`: [`LaunchEventData`](../interfaces/LaunchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"suspend"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"resume"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"exit"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"lowMemory"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"uncaughtError"` | | `callback` | (`args`: [`UnhandledErrorEventData`](../interfaces/UnhandledErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"discardedError"` | | `callback` | (`args`: [`DiscardedErrorEventData`](../interfaces/DiscardedErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the orientation of the application changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`args`: [`OrientationChangedEventData`](../interfaces/OrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`args`: [`SystemAppearanceChangedEventData`](../interfaces/SystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system layout direction changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`args`: [`LayoutDirectionChangedEventData`](../interfaces/LayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"fontScaleChanged"` | | `callback` | (`args`: [`FontScaleChangedEventData`](../interfaces/FontScaleChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` *** ### once ```ts once: { (eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; (event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; (event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; (event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; (event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; (event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; (event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; (event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Call Signature ```ts ( eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; ``` This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"cssChanged"` | | `callback` | (`args`: [`CssChangedEventData`](../interfaces/CssChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"livesync"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; ``` This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"launch"` | | `callback` | (`args`: [`LaunchEventData`](../interfaces/LaunchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"suspend"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"resume"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"exit"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"lowMemory"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"uncaughtError"` | | `callback` | (`args`: [`UnhandledErrorEventData`](../interfaces/UnhandledErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"discardedError"` | | `callback` | (`args`: [`DiscardedErrorEventData`](../interfaces/DiscardedErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the orientation of the application changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`args`: [`OrientationChangedEventData`](../interfaces/OrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`args`: [`SystemAppearanceChangedEventData`](../interfaces/SystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system layout direction changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`args`: [`LayoutDirectionChangedEventData`](../interfaces/LayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"fontScaleChanged"` | | `callback` | (`args`: [`FontScaleChangedEventData`](../interfaces/FontScaleChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` *** ### orientationChangedEvent ```ts readonly orientationChangedEvent: "orientationChanged" = "orientationChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### resumeEvent ```ts readonly resumeEvent: "resume" = "resume"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### started ```ts started: boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### suspendEvent ```ts readonly suspendEvent: "suspend" = "suspend"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### systemAppearanceChangedEvent ```ts readonly systemAppearanceChangedEvent: "systemAppearanceChanged" = "systemAppearanceChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### uncaughtErrorEvent ```ts readonly uncaughtErrorEvent: "uncaughtError" = "uncaughtError"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) *** ### ~~hasListeners~~ ```ts static hasListeners: (eventName: string) => boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `boolean` #### Deprecated Use `Application.android.hasListeners()` instead. *** ### ~~notify~~ ```ts static notify: (eventData: T) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Type Parameters | Type Parameter | Default type | | ------ | ------ | | `T` | [`ApplicationEventData`](../interfaces/ApplicationEventData.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `eventData` | `T` | #### Returns `void` #### Deprecated Use `Application.android.notify()` instead. *** ### ~~off~~ ```ts static off: (eventNames: string, callback?: any, thisArg?: any) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback?` | `any` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated Use `Application.android.off()` instead. *** ### ~~on~~ ```ts static on: { (eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; (event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; (event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; (event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; (event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; (event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; (event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; (event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Call Signature ```ts ( eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; ``` This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"cssChanged"` | | `callback` | (`args`: [`CssChangedEventData`](../interfaces/CssChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"livesync"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; ``` This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"launch"` | | `callback` | (`args`: [`LaunchEventData`](../interfaces/LaunchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"suspend"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"resume"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"exit"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"lowMemory"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"uncaughtError"` | | `callback` | (`args`: [`UnhandledErrorEventData`](../interfaces/UnhandledErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"discardedError"` | | `callback` | (`args`: [`DiscardedErrorEventData`](../interfaces/DiscardedErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the orientation of the application changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`args`: [`OrientationChangedEventData`](../interfaces/OrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`args`: [`SystemAppearanceChangedEventData`](../interfaces/SystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system layout direction changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`args`: [`LayoutDirectionChangedEventData`](../interfaces/LayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"fontScaleChanged"` | | `callback` | (`args`: [`FontScaleChangedEventData`](../interfaces/FontScaleChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Deprecated Use `Application.android.on()` instead. *** ### ~~once~~ ```ts static once: { (eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; (event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; (event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; (event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; (event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; (event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; (event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; (event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Call Signature ```ts ( eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; ``` This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"cssChanged"` | | `callback` | (`args`: [`CssChangedEventData`](../interfaces/CssChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"livesync"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; ``` This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"launch"` | | `callback` | (`args`: [`LaunchEventData`](../interfaces/LaunchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"suspend"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"resume"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"exit"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"lowMemory"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"uncaughtError"` | | `callback` | (`args`: [`UnhandledErrorEventData`](../interfaces/UnhandledErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"discardedError"` | | `callback` | (`args`: [`DiscardedErrorEventData`](../interfaces/DiscardedErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the orientation of the application changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`args`: [`OrientationChangedEventData`](../interfaces/OrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`args`: [`SystemAppearanceChangedEventData`](../interfaces/SystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system layout direction changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`args`: [`LayoutDirectionChangedEventData`](../interfaces/LayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"fontScaleChanged"` | | `callback` | (`args`: [`FontScaleChangedEventData`](../interfaces/FontScaleChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Deprecated Use `Application.android.once()` instead. ## Accessors ### android #### Get Signature ```ts get android(): AndroidApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns [`AndroidApplication`](AndroidApplication.md) *** ### AndroidApplication #### Get Signature ```ts get AndroidApplication(): AndroidApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns [`AndroidApplication`](AndroidApplication.md) *** ### inBackground #### Get Signature ```ts get inBackground(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns `boolean` *** ### ios #### Get Signature ```ts get ios(): iOSApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns [`iOSApplication`](iOSApplication.md) *** ### iOSApplication #### Get Signature ```ts get iOSApplication(): iOSApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns [`iOSApplication`](iOSApplication.md) *** ### suspended #### Get Signature ```ts get suspended(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns `boolean` ## Methods ### addCss() ```ts addCss(cssText: string, attributeScoped?: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `cssText` | `string` | | `attributeScoped?` | `boolean` | #### Returns `void` *** ### applyCssClass() ```ts applyCssClass( rootView: View, cssClasses: string[], newCssClass: string, skipCssUpdate?: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Applies the the `newCssClass` to the `rootView` and removes all other css classes from `cssClasses` previously applied to the `rootView`. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | - | | `cssClasses` | `string`\[] | - | | `newCssClass` | `string` | - | | `skipCssUpdate?` | `boolean` | - | #### Returns `void` *** ### createRootView() ```ts createRootView( view?: View, fireLaunchEvent?: boolean, additionalLanchEventData?: any): View; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view?` | [`View`](View.md) | | `fireLaunchEvent?` | `boolean` | | `additionalLanchEventData?` | `any` | #### Returns [`View`](View.md) *** ### getCssFileName() ```ts getCssFileName(): string; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Gets css file name for the application. #### Returns `string` *** ### getLayoutDirection() ```ts protected getLayoutDirection(): LayoutDirectionType; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) *** ### getMainEntry() ```ts getMainEntry(): any; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `any` The main entry of the application *** ### getNativeApplication() ```ts getNativeApplication(): any; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `any` *** ### getOrientation() ```ts protected getOrientation(): "portrait" | "landscape" | "unknown"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"portrait"` | `"landscape"` | `"unknown"` *** ### getResources() ```ts getResources(): any; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Get application level static resources. #### Returns `any` *** ### getRootView() ```ts getRootView(): View; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns [`View`](View.md) *** ### getSystemAppearance() ```ts protected getSystemAppearance(): "dark" | "light"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` *** ### hasLaunched() ```ts hasLaunched(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `boolean` *** ### initRootView() ```ts initRootView(rootView: View): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `rootView` | [`View`](View.md) | #### Returns `void` *** ### layoutDirection() ```ts layoutDirection(): LayoutDirectionType; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) *** ### layoutDirectionChanged() ```ts layoutDirectionChanged(rootView: View, newLayoutDirection: LayoutDirectionType): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Updates root view classes including those of modals #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | the root view | | `newLayoutDirection` | [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) | the new layout direction change | #### Returns `void` *** ### loadAppCss() ```ts loadAppCss(): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Loads immediately the app.css. By default the app.css file is loaded shortly after "loaded". For the Android snapshot the CSS can be parsed during the snapshot generation, as the CSS does not depend on runtime APIs, and loadAppCss will be called explicitly. #### Returns `void` *** ### notifyLaunch() ```ts protected notifyLaunch(additionalLanchEventData?: any): View; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `additionalLanchEventData?` | `any` | #### Returns [`View`](View.md) *** ### orientation() ```ts orientation(): "portrait" | "landscape" | "unknown"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"portrait"` | `"landscape"` | `"unknown"` *** ### orientationChanged() ```ts orientationChanged(rootView: View, newOrientation: "portrait" | "landscape" | "unknown"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `rootView` | [`View`](View.md) | | `newOrientation` | `"portrait"` | `"landscape"` | `"unknown"` | #### Returns `void` *** ### resetRootView() ```ts resetRootView(entry?: string | NavigationEntry): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `entry?` | `string` | `NavigationEntry` | #### Returns `void` *** ### run() ```ts run(entry?: string | NavigationEntry): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `entry?` | `string` | `NavigationEntry` | #### Returns `void` *** ### setAutoSystemAppearanceChanged() ```ts setAutoSystemAppearanceChanged(value: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) enable/disable systemAppearanceChanged #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | #### Returns `void` *** ### setCssFileName() ```ts setCssFileName(cssFileName: string): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Sets css file name for the application. #### Parameters | Parameter | Type | | ------ | ------ | | `cssFileName` | `string` | #### Returns `void` *** ### setInBackground() ```ts setInBackground(value: boolean, additonalData?: any): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | | `additonalData?` | `any` | #### Returns `void` *** ### setLayoutDirection() ```ts protected setLayoutDirection(value: LayoutDirectionType): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) | #### Returns `void` *** ### setMaxRefreshRate() ```ts setMaxRefreshRate(options?: { max?: number; min?: number; preferred?: number; }): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) iOS Only Dynamically change the preferred frame rate For devices (iOS 15+) which support min/max/preferred frame rate you can specify ranges For devices (iOS < 15), you can specify the max frame rate see: https://developer.apple.com/documentation/quartzcore/optimizing\_promotion\_refresh\_rates\_for\_iphone\_13\_pro\_and\_ipad\_pro To use, ensure your Info.plist has: ```xml CADisableMinimumFrameDurationOnPhone ``` #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | { `max?`: `number`; `min?`: `number`; `preferred?`: `number`; } | { min?: number; max?: number; preferred?: number } | | `options.max?` | `number` | - | | `options.min?` | `number` | - | | `options.preferred?` | `number` | - | #### Returns `void` *** ### setOrientation() ```ts protected setOrientation(value: "portrait" | "landscape" | "unknown"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"portrait"` | `"landscape"` | `"unknown"` | #### Returns `void` *** ### setResources() ```ts setResources(res: any): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Set application level static resources. #### Parameters | Parameter | Type | | ------ | ------ | | `res` | `any` | #### Returns `void` *** ### setSuspended() ```ts setSuspended(value: boolean, additonalData?: any): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | | `additonalData?` | `any` | #### Returns `void` *** ### setSystemAppearance() ```ts protected setSystemAppearance(value: "dark" | "light"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` *** ### systemAppearance() ```ts systemAppearance(): "dark" | "light"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` *** ### systemAppearanceChanged() ```ts systemAppearanceChanged(rootView: View, newSystemAppearance: "dark" | "light"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Updates root view classes including those of modals #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | the root view | | `newSystemAppearance` | `"dark"` | `"light"` | the new appearance change | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/Background.md' --- Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) ## Constructors ### Constructor ```ts new Background(): Background; ``` #### Returns `Background` ## Properties ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: number; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: number; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### borderBottomWidth ```ts borderBottomWidth: number; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### borderLeftWidth ```ts borderLeftWidth: number; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### borderRightWidth ```ts borderRightWidth: number; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: number; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### borderTopRightRadius ```ts borderTopRightRadius: number; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### borderTopWidth ```ts borderTopWidth: number; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### boxShadows ```ts boxShadows: BoxShadow[]; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### clearFlags ```ts clearFlags: number; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### clipPath ```ts clipPath: string | ClipPathFunction; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### color ```ts color: Color; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### image ```ts image: string | LinearGradient; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### position ```ts position: string; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### repeat ```ts repeat: BackgroundRepeatType; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### size ```ts size: string; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) *** ### default ```ts static default: Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) ## Methods ### getBoxShadows() ```ts getBoxShadows(): BoxShadow[]; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `BoxShadow`\[] *** ### getUniformBorderColor() ```ts getUniformBorderColor(): Color; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns [`Color`](Color.md) *** ### getUniformBorderRadius() ```ts getUniformBorderRadius(): number; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `number` *** ### getUniformBorderWidth() ```ts getUniformBorderWidth(): number; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `number` *** ### hasBorder() ```ts hasBorder(): boolean; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `boolean` *** ### hasBorderColor() ```ts hasBorderColor(): boolean; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `boolean` *** ### hasBorderRadius() ```ts hasBorderRadius(): boolean; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `boolean` *** ### hasBorderWidth() ```ts hasBorderWidth(): boolean; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `boolean` *** ### hasBoxShadows() ```ts hasBoxShadows(): boolean; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `boolean` *** ### hasUniformBorder() ```ts hasUniformBorder(): boolean; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `boolean` *** ### hasUniformBorderColor() ```ts hasUniformBorderColor(): boolean; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `boolean` *** ### hasUniformBorderRadius() ```ts hasUniformBorderRadius(): boolean; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `boolean` *** ### hasUniformBorderWidth() ```ts hasUniformBorderWidth(): boolean; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `boolean` *** ### isEmpty() ```ts isEmpty(): boolean; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `boolean` *** ### toString() ```ts toString(): string; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Returns `string` *** ### withBorderBottomColor() ```ts withBorderBottomColor(value: Color): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`Color`](Color.md) | #### Returns `Background` *** ### withBorderBottomLeftRadius() ```ts withBorderBottomLeftRadius(value: number): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `Background` *** ### withBorderBottomRightRadius() ```ts withBorderBottomRightRadius(value: number): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `Background` *** ### withBorderBottomWidth() ```ts withBorderBottomWidth(value: number): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `Background` *** ### withBorderLeftColor() ```ts withBorderLeftColor(value: Color): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`Color`](Color.md) | #### Returns `Background` *** ### withBorderLeftWidth() ```ts withBorderLeftWidth(value: number): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `Background` *** ### withBorderRightColor() ```ts withBorderRightColor(value: Color): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`Color`](Color.md) | #### Returns `Background` *** ### withBorderRightWidth() ```ts withBorderRightWidth(value: number): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `Background` *** ### withBorderTopColor() ```ts withBorderTopColor(value: Color): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`Color`](Color.md) | #### Returns `Background` *** ### withBorderTopLeftRadius() ```ts withBorderTopLeftRadius(value: number): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `Background` *** ### withBorderTopRightRadius() ```ts withBorderTopRightRadius(value: number): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `Background` *** ### withBorderTopWidth() ```ts withBorderTopWidth(value: number): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `Background` *** ### withBoxShadows() ```ts withBoxShadows(value: BoxShadow[]): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `BoxShadow`\[] | #### Returns `Background` *** ### withClipPath() ```ts withClipPath(value: string | ClipPathFunction): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | `ClipPathFunction` | #### Returns `Background` *** ### withColor() ```ts withColor(value: Color): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`Color`](Color.md) | #### Returns `Background` *** ### withImage() ```ts withImage(value: string | LinearGradient): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | [`LinearGradient`](LinearGradient.md) | #### Returns `Background` *** ### withPosition() ```ts withPosition(value: string): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | #### Returns `Background` *** ### withRepeat() ```ts withRepeat(value: BackgroundRepeatType): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | #### Returns `Background` *** ### withSize() ```ts withSize(value: string): Background; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | #### Returns `Background` *** ### equals() ```ts static equals(value1: Background, value2: Background): boolean; ``` Defined in: [ui/styling/background-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/background-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value1` | `Background` | | `value2` | `Background` | #### Returns `boolean` --- --- url: 'https://docs.nativescript.org/api/classes/Binding.md' --- Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) ## Constructors ### Constructor ```ts new Binding(target: ViewBase, options: BindingOptions): Binding; ``` Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `target` | [`ViewBase`](ViewBase.md) | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | #### Returns `Binding` ## Properties ### options ```ts options: BindingOptions; ``` Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) *** ### sourceIsBindingContext ```ts sourceIsBindingContext: boolean; ``` Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) *** ### target ```ts target: WeakRef; ``` Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) *** ### updating ```ts updating: boolean; ``` Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) ## Methods ### bind() ```ts bind(source: any): void; ``` Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `source` | `any` | #### Returns `void` *** ### clearBinding() ```ts clearBinding(): void; ``` Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) #### Returns `void` *** ### clearSource() ```ts clearSource(): void; ``` Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) #### Returns `void` *** ### loadedHandlerVisualTreeBinding() ```ts loadedHandlerVisualTreeBinding(args: any): void; ``` Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `args` | `any` | #### Returns `void` *** ### onSourcePropertyChanged() ```ts onSourcePropertyChanged(data: PropertyChangeData): void; ``` Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `data` | [`PropertyChangeData`](../interfaces/PropertyChangeData.md) | #### Returns `void` *** ### unbind() ```ts unbind(): void; ``` Defined in: [ui/core/bindable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/bindable/index.ts) #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/Builder.md' --- Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/builder/index.ts) ## Constructors ### Constructor ```ts new Builder(): Builder; ``` #### Returns `Builder` ## Properties ### knownCollections ```ts static knownCollections: Set; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/builder/index.ts) *** ### knownMultiTemplates ```ts static knownMultiTemplates: Set; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/builder/index.ts) *** ### knownTemplates ```ts static knownTemplates: Set; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/builder/index.ts) UI plugin developers can add to these to define their own custom types if needed ## Methods ### createViewFromEntry() ```ts static createViewFromEntry(entry: ViewEntry): View; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/builder/index.ts) Creates view from navigation entry #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `entry` | `ViewEntry` | NavigationEntry | #### Returns [`View`](View.md) *** ### load() ```ts static load(pathOrOptions: string | LoadOptions, context?: any): View; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/builder/index.ts) Loads component from module with context #### Parameters | Parameter | Type | | ------ | ------ | | `pathOrOptions` | `string` | [`LoadOptions`](../interfaces/LoadOptions.md) | | `context?` | `any` | #### Returns [`View`](View.md) *** ### parse() ```ts static parse(value: string | Template, context?: any): View; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/builder/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | [`Template`](../interfaces/Template.md) | | `context?` | `any` | #### Returns [`View`](View.md) *** ### parseMultipleTemplates() ```ts static parseMultipleTemplates(value: string, context: any): KeyedTemplate[]; ``` Defined in: [ui/builder/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/builder/index.ts) Creates an array of KeyedTemplates from string #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `string` | The xml of the template to be parsed | | `context` | `any` | - | #### Returns [`KeyedTemplate`](../interfaces/KeyedTemplate.md)\[] --- --- url: 'https://docs.nativescript.org/api/classes/Button.md' description: Represents a standard Button widget. --- Defined in: [ui/button/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/button/index.d.ts#L9) Represents a standard Button widget. ## Ns View Button ## Extends * [`TextBase`](TextBase.md) ## Constructors ### Constructor ```ts new Button(): Button; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `Button` #### Inherited from [`TextBase`](TextBase.md).[`constructor`](TextBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`TextBase`](TextBase.md).[`_androidContentDescriptionUpdated`](TextBase.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_automaticallyAdjustsScrollViewInsets`](TextBase.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`TextBase`](TextBase.md).[`_closeModalCallback`](TextBase.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_context`](TextBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_cssState`](TextBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingBottom`](TextBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingLeft`](TextBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingRight`](TextBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingTop`](TextBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_domId`](TextBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_ignoreFlexMinWidthHeightReset`](TextBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isAddedToNativeVisualTree`](TextBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isPaddingRelative`](TextBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isStyleScopeHost`](TextBase.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldBottom`](TextBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldLeft`](TextBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldRight`](TextBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldTop`](TextBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_styleScope`](TextBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`TextBase`](TextBase.md).[`_suspendNativeUpdatesCount`](TextBase.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityHidden`](TextBase.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityHint`](TextBase.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityIdentifier`](TextBase.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityIgnoresInvertColors`](TextBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityLabel`](TextBase.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityLanguage`](TextBase.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityLiveRegion`](TextBase.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityMediaSession`](TextBase.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityRole`](TextBase.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityState`](TextBase.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityValue`](TextBase.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessible`](TextBase.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`alignSelf`](TextBase.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/button/index.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/button/index.d.ts#L20) Gets the native [android widget](http://developer.android.com/reference/android/widget/Button.html) that represents the user interface for this component. Valid only when running on Android OS. #### Overrides [`TextBase`](TextBase.md).[`android`](TextBase.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`androidDynamicElevationOffset`](TextBase.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`androidElevation`](TextBase.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`TextBase`](TextBase.md).[`androidOverflowEdge`](TextBase.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`automationText`](TextBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`background`](TextBase.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`backgroundColor`](TextBase.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`backgroundImage`](TextBase.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`bindingContext`](TextBase.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomColor`](TextBase.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomLeftRadius`](TextBase.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomRightRadius`](TextBase.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomWidth`](TextBase.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderColor`](TextBase.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderLeftColor`](TextBase.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderLeftWidth`](TextBase.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderRadius`](TextBase.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderRightColor`](TextBase.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderRightWidth`](TextBase.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopColor`](TextBase.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopLeftRadius`](TextBase.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopRightRadius`](TextBase.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopWidth`](TextBase.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderWidth`](TextBase.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`boxShadow`](TextBase.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`className`](TextBase.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`col`](TextBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`color`](TextBase.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`colSpan`](TextBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`column`](TextBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`columnSpan`](TextBase.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`TextBase`](TextBase.md).[`cssClasses`](TextBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`TextBase`](TextBase.md).[`cssPseudoClasses`](TextBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`TextBase`](TextBase.md).[`cssType`](TextBase.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`defaultVisualState`](TextBase.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`direction`](TextBase.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`dock`](TextBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`domNode`](TextBase.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderBottomWidth`](TextBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderLeftWidth`](TextBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderRightWidth`](TextBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderTopWidth`](TextBase.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveHeight`](TextBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveLeft`](TextBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginBottom`](TextBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginLeft`](TextBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginRight`](TextBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginTop`](TextBase.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMinHeight`](TextBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMinWidth`](TextBase.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveTop`](TextBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveWidth`](TextBase.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flex`](TextBase.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexFlow`](TextBase.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexGrow`](TextBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexShrink`](TextBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexWrapBefore`](TextBase.md#flexwrapbefore) *** ### fontFamily ```ts fontFamily: string; ``` Defined in: [ui/text-base/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L40) Gets or sets font-family style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontFamily`](TextBase.md#fontfamily) *** ### fontSize ```ts fontSize: number; ``` Defined in: [ui/text-base/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L47) Gets or sets font-size style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontSize`](TextBase.md#fontsize) *** ### fontStyle ```ts fontStyle: FontStyleType; ``` Defined in: [ui/text-base/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L54) Gets or sets font-style style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontStyle`](TextBase.md#fontstyle) *** ### fontWeight ```ts fontWeight: FontWeightType; ``` Defined in: [ui/text-base/index.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L61) Gets or sets font-weight style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontWeight`](TextBase.md#fontweight) *** ### formattedText ```ts formattedText: FormattedString; ``` Defined in: [ui/text-base/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L33) Gets or sets a formatted string. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`formattedText`](TextBase.md#formattedtext) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`height`](TextBase.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`hidden`](TextBase.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`horizontalAlignment`](TextBase.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`id`](TextBase.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`ignoreTouchAnimation`](TextBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/button/index.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/button/index.d.ts#L25) Gets the native [UIButton](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIButton_Class/) that represents the user interface for this component. Valid only when running on iOS. #### Overrides [`TextBase`](TextBase.md).[`ios`](TextBase.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosAccessibilityAdjustsFontSize`](TextBase.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosAccessibilityMaxFontScale`](TextBase.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosAccessibilityMinFontScale`](TextBase.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosGlassEffect`](TextBase.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosIgnoreSafeArea`](TextBase.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosOverflowSafeArea`](TextBase.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosOverflowSafeAreaEnabled`](TextBase.md#iosoverflowsafeareaenabled) *** ### iosTextAnimation ```ts iosTextAnimation: boolean | "inherit"; ``` Defined in: [ui/text-base/index.d.ts:174](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L174) Specify wether the native text should be applied with or without animations #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosTextAnimation`](TextBase.md#iostextanimation) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`TextBase`](TextBase.md).[`isCollapsed`](TextBase.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`isEnabled`](TextBase.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`TextBase`](TextBase.md).[`isLayoutValid`](TextBase.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`isUserInteractionEnabled`](TextBase.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`left`](TextBase.md#left) *** ### letterSpacing ```ts letterSpacing: number; ``` Defined in: [ui/text-base/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L68) Gets or sets letterSpace style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`letterSpacing`](TextBase.md#letterspacing) *** ### lineHeight ```ts lineHeight: number; ``` Defined in: [ui/text-base/index.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L75) Gets or sets lineHeight style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`lineHeight`](TextBase.md#lineheight) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`margin`](TextBase.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginBottom`](TextBase.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginLeft`](TextBase.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginRight`](TextBase.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginTop`](TextBase.md#margintop) *** ### maxLines ```ts maxLines: number; ``` Defined in: [ui/text-base/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L132) Gets or sets white space style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`maxLines`](TextBase.md#maxlines) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`minHeight`](TextBase.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`minWidth`](TextBase.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`TextBase`](TextBase.md).[`mIsRootView`](TextBase.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`TextBase`](TextBase.md).[`modal`](TextBase.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`TextBase`](TextBase.md).[`nativeBackgroundState`](TextBase.md#nativebackgroundstate) *** ### nativeTextViewProtected ```ts readonly nativeTextViewProtected: any; ``` Defined in: [ui/text-base/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L19) Gets of the text widget. In some cases(android TextInputLayout) the TextView is made of 2 views: the layout and the text view So we need a different getter for the layout and text functions #### Inherited from [`TextBase`](TextBase.md).[`nativeTextViewProtected`](TextBase.md#nativetextviewprotected) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`TextBase`](TextBase.md).[`nativeViewProtected`](TextBase.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`opacity`](TextBase.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`order`](TextBase.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`originX`](TextBase.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`originY`](TextBase.md#originy) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/text-base/index.d.ts:139](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L139) Gets or sets padding style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`padding`](TextBase.md#padding) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/text-base/index.d.ts:146](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L146) Specify the bottom padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingBottom`](TextBase.md#paddingbottom) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/text-base/index.d.ts:153](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L153) Specify the left padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingLeft`](TextBase.md#paddingleft) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/text-base/index.d.ts:160](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L160) Specify the right padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingRight`](TextBase.md#paddingright) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/text-base/index.d.ts:167](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L167) Specify the top padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingTop`](TextBase.md#paddingtop) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`TextBase`](TextBase.md).[`parent`](TextBase.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`perspective`](TextBase.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`recycleNativeView`](TextBase.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`reusable`](TextBase.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rotate`](TextBase.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rotateX`](TextBase.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rotateY`](TextBase.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`row`](TextBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rowSpan`](TextBase.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`scaleX`](TextBase.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`scaleY`](TextBase.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`sharedTransitionIgnore`](TextBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`sharedTransitionTag`](TextBase.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`statusBarStyle`](TextBase.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`testID`](TextBase.md#testid) *** ### text ```ts text: string; ``` Defined in: [ui/text-base/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L26) Gets or sets the text. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`text`](TextBase.md#text) *** ### textAlignment ```ts textAlignment: TextAlignmentType; ``` Defined in: [ui/text-base/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L82) Gets or sets text-alignment style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textAlignment`](TextBase.md#textalignment) *** ### textDecoration ```ts textDecoration: TextDecorationType; ``` Defined in: [ui/text-base/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L89) Gets or sets text decorations style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textDecoration`](TextBase.md#textdecoration) *** ### textOverflow ```ts textOverflow: TextOverflowType; ``` Defined in: [ui/text-base/index.d.ts:125](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L125) Gets or sets text-overflow style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textOverflow`](TextBase.md#textoverflow) *** ### textShadow ```ts textShadow: ShadowCSSValues; ``` Defined in: [ui/text-base/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L103) Gets or sets text shadow style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textShadow`](TextBase.md#textshadow) *** ### textStroke ```ts textStroke: StrokeCSSValues; ``` Defined in: [ui/text-base/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L111) Gets or sets text stroke style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textStroke`](TextBase.md#textstroke) *** ### textTransform ```ts textTransform: TextTransformType; ``` Defined in: [ui/text-base/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L96) Gets or sets text transform style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textTransform`](TextBase.md#texttransform) *** ### textWrap ```ts textWrap: boolean; ``` Defined in: [ui/button/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/button/index.d.ts#L32) Gets or sets whether the Button wraps text or not. #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`top`](TextBase.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`touchAnimation`](TextBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`touchDelay`](TextBase.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`TextBase`](TextBase.md).[`transitionId`](TextBase.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`translateX`](TextBase.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`translateY`](TextBase.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`verticalAlignment`](TextBase.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`TextBase`](TextBase.md).[`viewController`](TextBase.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`visibility`](TextBase.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`visionHoverStyle`](TextBase.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`visionIgnoreHoverStyle`](TextBase.md#visionignorehoverstyle) *** ### whiteSpace ```ts whiteSpace: WhiteSpaceType; ``` Defined in: [ui/text-base/index.d.ts:118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L118) Gets or sets white space style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`whiteSpace`](TextBase.md#whitespace) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`width`](TextBase.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`TextBase`](TextBase.md).[`accessibilityBlurEvent`](TextBase.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`TextBase`](TextBase.md).[`accessibilityFocusChangedEvent`](TextBase.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`TextBase`](TextBase.md).[`accessibilityFocusEvent`](TextBase.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`TextBase`](TextBase.md).[`accessibilityPerformEscapeEvent`](TextBase.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`TextBase`](TextBase.md).[`androidOverflowInsetEvent`](TextBase.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`TextBase`](TextBase.md).[`createdEvent`](TextBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`TextBase`](TextBase.md).[`disposeNativeViewEvent`](TextBase.md#disposenativeviewevent) *** ### iosTextAnimationFallback ```ts static iosTextAnimationFallback: boolean; ``` Defined in: [ui/text-base/index.d.ts:179](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L179) The value used when the iosTextAnimation is set to 'inherit' #### Inherited from [`TextBase`](TextBase.md).[`iosTextAnimationFallback`](TextBase.md#iostextanimationfallback) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`TextBase`](TextBase.md).[`layoutChangedEvent`](TextBase.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`TextBase`](TextBase.md).[`loadedEvent`](TextBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`TextBase`](TextBase.md).[`propertyChangeEvent`](TextBase.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`TextBase`](TextBase.md).[`showingModallyEvent`](TextBase.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`TextBase`](TextBase.md).[`shownModallyEvent`](TextBase.md#shownmodallyevent) *** ### tapEvent ```ts static tapEvent: string; ``` Defined in: [ui/button/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/button/index.d.ts#L15) String value used when hooking to tap event. #### Ns Event tap *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`TextBase`](TextBase.md).[`unloadedEvent`](TextBase.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`backgroundPosition`](TextBase.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`backgroundRepeat`](TextBase.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`backgroundSize`](TextBase.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`class`](TextBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingBottom`](TextBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingLeft`](TextBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingRight`](TextBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingTop`](TextBase.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`isLoaded`](TextBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`nativeView`](TextBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`TextBase`](TextBase.md).[`page`](TextBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`parentNode`](TextBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`style`](TextBase.md#style) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`typeName`](TextBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`visualState`](TextBase.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_addView`](TextBase.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_addViewCore`](TextBase.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_addViewToNativeVisualTree`](TextBase.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`TextBase`](TextBase.md).[`_applyGlassEffect`](TextBase.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`TextBase`](TextBase.md).[`_applyXmlAttribute`](TextBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`TextBase`](TextBase.md).[`_batchUpdate`](TextBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`_childIndexToNativeChildIndex`](TextBase.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_closeAllModalViewsInternal`](TextBase.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`TextBase`](TextBase.md).[`_createPropertyChangeData`](TextBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_dialogClosed`](TextBase.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_eachLayoutView`](TextBase.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_emit`](TextBase.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`_getNativeViewsCount`](TextBase.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`TextBase`](TextBase.md).[`_getRootModalViews`](TextBase.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`TextBase`](TextBase.md).[`_getValue`](TextBase.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_handleLivesync`](TextBase.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_hasAncestorView`](TextBase.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_hideNativeModalView`](TextBase.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_inheritStyles`](TextBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_inheritStyleScope`](TextBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_layoutParent`](TextBase.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_observe`](TextBase.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onAttachedToWindow`](TextBase.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onDetachedFromWindow`](TextBase.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onRootViewReset`](TextBase.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onSizeChanged`](TextBase.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_parentChanged`](TextBase.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_raiseLayoutChangedEvent`](TextBase.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_raiseShowingModallyEvent`](TextBase.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_raiseShownModallyEvent`](TextBase.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_removeView`](TextBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_removeViewCore`](TextBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_removeViewFromNativeVisualTree`](TextBase.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_resumeNativeUpdates`](TextBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_setDefaultPaddings`](TextBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_setupAsRootView`](TextBase.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_setupUI`](TextBase.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`TextBase`](TextBase.md).[`_setValue`](TextBase.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_shouldDelayLayout`](TextBase.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_showNativeModalView`](TextBase.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_suspendNativeUpdates`](TextBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_tearDownUI`](TextBase.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_updateStyleScope`](TextBase.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`accessibilityAnnouncement`](TextBase.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`accessibilityScreenChanged`](TextBase.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`addEventListener`](TextBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`TextBase`](TextBase.md).[`addPseudoClass`](TextBase.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`TextBase`](TextBase.md).[`animate`](TextBase.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`bind`](TextBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`callLoaded`](TextBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`callUnloaded`](TextBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`closeModal`](TextBase.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`TextBase`](TextBase.md).[`createAnimation`](TextBase.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`TextBase`](TextBase.md).[`createNativeView`](TextBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`TextBase`](TextBase.md).[`deletePseudoClass`](TextBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`TextBase`](TextBase.md).[`destroyNode`](TextBase.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`disposeNativeView`](TextBase.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`eachChild`](TextBase.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`eachChildView`](TextBase.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`TextBase`](TextBase.md).[`ensureDomNode`](TextBase.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`focus`](TextBase.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`TextBase`](TextBase.md).[`get`](TextBase.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`TextBase`](TextBase.md).[`getActualSize`](TextBase.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`TextBase`](TextBase.md).[`getClosestWindow`](TextBase.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`getEffectivePaddingShorthand`](TextBase.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`TextBase`](TextBase.md).[`getGestureObservers`](TextBase.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`TextBase`](TextBase.md).[`getLocationInWindow`](TextBase.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`TextBase`](TextBase.md).[`getLocationOnScreen`](TextBase.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`TextBase`](TextBase.md).[`getLocationRelativeTo`](TextBase.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredHeight`](TextBase.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredState`](TextBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredWidth`](TextBase.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`TextBase`](TextBase.md).[`getSafeAreaInsets`](TextBase.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`TextBase`](TextBase.md).[`getViewByDomId`](TextBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`TextBase`](TextBase.md).[`getViewById`](TextBase.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`hasGestureObservers`](TextBase.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`hasListeners`](TextBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`initNativeView`](TextBase.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`layout`](TextBase.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`layoutNativeView`](TextBase.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`loadView`](TextBase.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`measure`](TextBase.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`notify`](TextBase.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`notifyPropertyChange`](TextBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`TextBase`](TextBase.md).[`off`](TextBase.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/button/index.d.ts:44](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/button/index.d.ts#L44) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `void` ##### Overrides [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "tap", callback: (args: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/button/index.d.ts:49](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/button/index.d.ts#L49) Raised when a tap event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"tap"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`TextBase`](TextBase.md).[`on`](TextBase.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`onBackPressed`](TextBase.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`once`](TextBase.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onLayout`](TextBase.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onLoaded`](TextBase.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onMeasure`](TextBase.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onResumeNativeUpdates`](TextBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onUnloaded`](TextBase.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`removeEventListener`](TextBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`requestLayout`](TextBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`resetNativeView`](TextBase.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`TextBase`](TextBase.md).[`sendAccessibilityEvent`](TextBase.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`set`](TextBase.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setAccessibilityIdentifier`](TextBase.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setInlineStyle`](TextBase.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setMeasuredDimension`](TextBase.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setNativeView`](TextBase.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setOnTouchListener`](TextBase.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setProperty`](TextBase.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`TextBase`](TextBase.md).[`showModal`](TextBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`toString`](TextBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`unbind`](TextBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`unloadView`](TextBase.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`updateStatusBarStyle`](TextBase.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`addEventListener`](TextBase.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`combineMeasuredStates`](TextBase.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`layoutChild`](TextBase.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`TextBase`](TextBase.md).[`measureChild`](TextBase.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`off`](TextBase.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`once`](TextBase.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`removeEventListener`](TextBase.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`resolveSizeAndState`](TextBase.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/ChangeType.md' --- Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) ## Constructors ### Constructor ```ts new ChangeType(): ChangeType; ``` #### Returns `ChangeType` ## Properties ### Add ```ts static Add: string; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) *** ### Change ```ts static Change: string; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) *** ### Delete ```ts static Delete: string; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) *** ### Splice ```ts static Splice: string; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) *** ### Update ```ts static Update: string; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) --- --- url: 'https://docs.nativescript.org/api/classes/CoercibleProperty.md' --- Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) ## Extends * [`Property`](Property.md)<`T`, `U`> ## Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | | `U` | ## Implements * `CoercibleProperty`<`T`, `U`> ## Constructors ### Constructor ```ts new CoercibleProperty(options: CoerciblePropertyOptions): CoercibleProperty; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `CoerciblePropertyOptions`<`T`, `U`> | #### Returns `CoercibleProperty`<`T`, `U`> #### Overrides ```ts Property.constructor ``` ## Properties ### coerce ```ts readonly coerce: (target: T) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `target` | `T` | #### Returns `void` #### Implementation of ```ts CoercibleProperty.coerce ``` *** ### configurable ```ts configurable: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CoercibleProperty.configurable ``` #### Inherited from ```ts Property.configurable ``` *** ### defaultValue ```ts readonly defaultValue: U; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CoercibleProperty.defaultValue ``` #### Inherited from ```ts Property.defaultValue ``` *** ### defaultValueKey ```ts readonly defaultValueKey: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CoercibleProperty.defaultValueKey ``` #### Inherited from ```ts Property.defaultValueKey ``` *** ### enumerable ```ts enumerable: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CoercibleProperty.enumerable ``` #### Inherited from ```ts Property.enumerable ``` *** ### get ```ts get: () => U; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Returns `U` #### Implementation of ```ts CoercibleProperty.get ``` #### Inherited from ```ts Property.get ``` *** ### getDefault ```ts readonly getDefault: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CoercibleProperty.getDefault ``` #### Inherited from ```ts Property.getDefault ``` *** ### isStyleProperty ```ts isStyleProperty: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CoercibleProperty.isStyleProperty ``` #### Inherited from ```ts Property.isStyleProperty ``` *** ### key ```ts readonly key: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CoercibleProperty.key ``` #### Inherited from ```ts Property.key ``` *** ### name ```ts readonly name: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CoercibleProperty.name ``` #### Inherited from ```ts Property.name ``` *** ### nativeValueChange ```ts readonly nativeValueChange: (owner: T, value: U) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `owner` | `T` | | `value` | `U` | #### Returns `void` #### Implementation of ```ts CoercibleProperty.nativeValueChange ``` #### Inherited from ```ts Property.nativeValueChange ``` *** ### overrideHandlers ```ts overrideHandlers: (options: PropertyOptions) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `PropertyOptions`<`T`, `U`> | #### Returns `void` #### Implementation of ```ts CoercibleProperty.overrideHandlers ``` #### Inherited from ```ts Property.overrideHandlers ``` *** ### set ```ts set: (value: U) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `U` | #### Returns `void` #### Implementation of ```ts CoercibleProperty.set ``` #### Inherited from ```ts Property.set ``` *** ### setNative ```ts readonly setNative: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CoercibleProperty.setNative ``` #### Inherited from ```ts Property.setNative ``` ## Methods ### isSet() ```ts isSet(instance: T): boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `instance` | `T` | #### Returns `boolean` #### Implementation of ```ts CoercibleProperty.isSet ``` #### Inherited from ```ts Property.isSet ``` *** ### register() ```ts register(cls: { prototype: T; }): void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `cls` | { `prototype`: `T`; } | | `cls.prototype` | `T` | #### Returns `void` #### Implementation of ```ts CoercibleProperty.register ``` #### Inherited from ```ts Property.register ``` --- --- url: 'https://docs.nativescript.org/api/classes/Color.md' description: >- Represents a color object. Stores all color components (alpha (opacity), red, green, blue) in a [0..255] range. --- Defined in: [color/index.d.ts:4](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L4) Represents a color object. Stores all color components (alpha (opacity), red, green, blue) in a \[0..255] range. ## Constructors ### Constructor ```ts new Color(knownColor: string): Color; ``` Defined in: [color/index.d.ts:5](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L5) #### Parameters | Parameter | Type | | ------ | ------ | | `knownColor` | `string` | #### Returns `Color` ### Constructor ```ts new Color(hex: string): Color; ``` Defined in: [color/index.d.ts:6](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L6) #### Parameters | Parameter | Type | | ------ | ------ | | `hex` | `string` | #### Returns `Color` ### Constructor ```ts new Color(argb: number): Color; ``` Defined in: [color/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L7) #### Parameters | Parameter | Type | | ------ | ------ | | `argb` | `number` | #### Returns `Color` ### Constructor ```ts new Color( alpha: number, red: number, green: number, blue: number, type?: "rgb" | "hsl" | "hsv"): Color; ``` Defined in: [color/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L8) #### Parameters | Parameter | Type | | ------ | ------ | | `alpha` | `number` | | `red` | `number` | | `green` | `number` | | `blue` | `number` | | `type?` | `"rgb"` | `"hsl"` | `"hsv"` | #### Returns `Color` ## Properties ### a ```ts a: number; ``` Defined in: [color/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L13) Gets the Alpha component (in the \[0, 255] range) of this color. This is a read-only property. *** ### android ```ts android: number; ``` Defined in: [color/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L48) Gets the android-specific integer value representation. Same as the Argb one. This is a read-only property. *** ### argb ```ts argb: number; ``` Defined in: [color/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L38) Gets the Argb Number representation of this color where each 8 bits represent a single color component. This is a read-only property. *** ### b ```ts b: number; ``` Defined in: [color/index.d.ts:28](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L28) Gets the Blue component (in the \[0, 255] range) of this color. This is a read-only property. *** ### g ```ts g: number; ``` Defined in: [color/index.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L23) Gets the Green component (in the \[0, 255] range) of this color. This is a read-only property. *** ### hex ```ts hex: string; ``` Defined in: [color/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L33) Gets the Hexadecimal string representation of this color. This is a read-only property. *** ### ios ```ts ios: any; ``` Defined in: [color/index.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L53) Gets the iOS-specific UIColor value representation. This is a read-only property. *** ### name ```ts name: string; ``` Defined in: [color/index.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L43) Gets the known name of this instance. Defined only if it has been constructed from a known color name - e.g. "red". This is a read-only property. *** ### r ```ts r: number; ``` Defined in: [color/index.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L18) Gets the Red component (in the \[0, 255] range) of this color. This is a read-only property. ## Methods ### brighten() ```ts brighten(amount: number): Color; ``` Defined in: [color/index.d.ts:172](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L172) Brighten the color a given amount, from 0 to 100. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `amount` | `number` | (between 0 and 100) | #### Returns `Color` *** ### complement() ```ts complement(): Color; ``` Defined in: [color/index.d.ts:192](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L192) returns the color complement #### Returns `Color` *** ### darken() ```ts darken(amount: number): Color; ``` Defined in: [color/index.d.ts:179](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L179) Darken the color a given amount, from 0 to 100. Providing 100 will always return black. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `amount` | `number` | (between 0 and 100) | #### Returns `Color` *** ### desaturate() ```ts desaturate(amount: number): Color; ``` Defined in: [color/index.d.ts:143](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L143) Desaturate the color a given amount, from 0 to 100. Providing 100 will is the same as calling greyscale. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `amount` | `number` | (between 0 and 100) | #### Returns `Color` *** ### equals() ```ts equals(value: Color): boolean; ``` Defined in: [color/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L59) Specifies whether this Color is equal to the Color parameter. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `Color` | The Color to test. | #### Returns `boolean` *** ### getBrightness() ```ts getBrightness(): number; ``` Defined in: [color/index.d.ts:95](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L95) return the [brightness](http://www.w3.org/TR/AERT#color-contrast) #### Returns `number` *** ### getLuminance() ```ts getLuminance(): number; ``` Defined in: [color/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L100) return the [luminance](http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef) #### Returns `number` *** ### greyscale() ```ts greyscale(): Color; ``` Defined in: [color/index.d.ts:157](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L157) Completely desaturates a color into greyscale. Same as calling desaturate(100). #### Returns `Color` *** ### isDark() ```ts isDark(): boolean; ``` Defined in: [color/index.d.ts:83](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L83) return true if brightenss < 128 #### Returns `boolean` *** ### isLight() ```ts isLight(): boolean; ``` Defined in: [color/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L89) return true if brightenss >= 128 #### Returns `boolean` *** ### lighten() ```ts lighten(amount: number): Color; ``` Defined in: [color/index.d.ts:165](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L165) Lighten the color a given amount, from 0 to 100. Providing 100 will always return white. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `amount` | `number` | (between 0 and 100) | #### Returns `Color` olor : Color *** ### saturate() ```ts saturate(amount: number): Color; ``` Defined in: [color/index.d.ts:150](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L150) Saturate the color a given amount, from 0 to 100. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `amount` | `number` | (between 0 and 100) | #### Returns `Color` *** ### setAlpha() ```ts setAlpha(a: number): Color; ``` Defined in: [color/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L107) Return this color (as a new Color instance) with the provided alpha #### Parameters | Parameter | Type | | ------ | ------ | | `a` | `number` | #### Returns `Color` *** ### spin() ```ts spin(amount: number): Color; ``` Defined in: [color/index.d.ts:186](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L186) Spin the hue a given amount, from -360 to 360. Calling with 0, 360, or -360 will do nothing (since it sets the hue back to what it was before). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `amount` | `number` | (between 0 and 100) | #### Returns `Color` *** ### toHsl() ```ts toHsl(): { a: number; h: number; l: number; s: number; }; ``` Defined in: [color/index.d.ts:112](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L112) return the hsl representation of the color #### Returns ```ts { a: number; h: number; l: number; s: number; } ``` ##### a ```ts a: number; ``` ##### h ```ts h: number; ``` ##### l ```ts l: number; ``` ##### s ```ts s: number; ``` *** ### toHslString() ```ts toHslString(): string; ``` Defined in: [color/index.d.ts:118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L118) return the [CSS hsv](https://www.w3schools.com/Css/css_colors_hsl.asp) representation of the color #### Returns `string` *** ### toHsv() ```ts toHsv(): { a: number; h: number; s: number; v: number; }; ``` Defined in: [color/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L124) return the hsv representation of the color #### Returns ```ts { a: number; h: number; s: number; v: number; } ``` ##### a ```ts a: number; ``` ##### h ```ts h: number; ``` ##### s ```ts s: number; ``` ##### v ```ts v: number; ``` *** ### toHsvString() ```ts toHsvString(): string; ``` Defined in: [color/index.d.ts:130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L130) return the [CSS hsv](https://www.w3schools.com/Css/css_colors_rgb.asp) representation of the color #### Returns `string` *** ### toRgbString() ```ts toRgbString(): string; ``` Defined in: [color/index.d.ts:136](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L136) return the [CSS rgb](https://www.w3schools.com/Css/css_colors_rgb.asp) representation of the color #### Returns `string` *** ### equals() ```ts static equals(value1: Color, value2: Color): boolean; ``` Defined in: [color/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L66) Compares two Color instances. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value1` | `Color` | A Color to compare. | | `value2` | `Color` | A Color to compare. | #### Returns `boolean` *** ### fromHSL() ```ts static fromHSL( a: any, h: any, s: any, l: any): Color; ``` Defined in: [color/index.d.ts:204](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L204) returns a new Color from HSL #### Parameters | Parameter | Type | | ------ | ------ | | `a` | `any` | | `h` | `any` | | `s` | `any` | | `l` | `any` | #### Returns `Color` *** ### fromHSV() ```ts static fromHSV( a: any, h: any, s: any, l: any): Color; ``` Defined in: [color/index.d.ts:205](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L205) #### Parameters | Parameter | Type | | ------ | ------ | | `a` | `any` | | `h` | `any` | | `s` | `any` | | `l` | `any` | #### Returns `Color` *** ### fromIosColor() ```ts static fromIosColor(value: any): Color; ``` Defined in: [color/index.d.ts:77](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L77) Creates color from iOS-specific UIColor value representation. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `Color` *** ### isValid() ```ts static isValid(value: any): boolean; ``` Defined in: [color/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L72) Validates if a value can be converted to color. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `any` | Input string. | #### Returns `boolean` *** ### mix() ```ts static mix( color1: Color, color2: Color, amount: number): Color; ``` Defined in: [color/index.d.ts:198](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/color/index.d.ts#L198) returns the color complement #### Parameters | Parameter | Type | | ------ | ------ | | `color1` | `Color` | | `color2` | `Color` | | `amount` | `number` | #### Returns `Color` --- --- url: 'https://docs.nativescript.org/api/classes/ContainerView.md' description: Base class for all UI components that are containers. --- Defined in: [ui/core/view/index.d.ts:1124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1124) Base class for all UI components that are containers. ## Extends * [`View`](View.md) ## Extended by * [`CustomLayoutView`](CustomLayoutView.md) ## Constructors ### Constructor ```ts new ContainerView(): ContainerView; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `ContainerView` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`View`](View.md).[`_androidContentDescriptionUpdated`](View.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_automaticallyAdjustsScrollViewInsets`](View.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`_closeModalCallback`](View.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_context`](View.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_cssState`](View.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingBottom`](View.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingLeft`](View.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingRight`](View.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingTop`](View.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_domId`](View.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_ignoreFlexMinWidthHeightReset`](View.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isAddedToNativeVisualTree`](View.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isPaddingRelative`](View.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldBottom`](View.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldLeft`](View.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldRight`](View.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldTop`](View.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_styleScope`](View.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`View`](View.md).[`_suspendNativeUpdatesCount`](View.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHidden`](View.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHint`](View.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIdentifier`](View.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLabel`](View.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLanguage`](View.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLiveRegion`](View.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityMediaSession`](View.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityRole`](View.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityState`](View.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityValue`](View.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`View`](View.md).[`accessible`](View.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`View`](View.md).[`alignSelf`](View.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`View`](View.md).[`android`](View.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidDynamicElevationOffset`](View.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidElevation`](View.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`androidOverflowEdge`](View.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`View`](View.md).[`background`](View.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundColor`](View.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundImage`](View.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`View`](View.md).[`bindingContext`](View.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomColor`](View.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomLeftRadius`](View.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomRightRadius`](View.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomWidth`](View.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderColor`](View.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftColor`](View.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftWidth`](View.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRadius`](View.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightColor`](View.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightWidth`](View.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopColor`](View.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopLeftRadius`](View.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopRightRadius`](View.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopWidth`](View.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderWidth`](View.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`View`](View.md).[`className`](View.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`col`](View.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`color`](View.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`colSpan`](View.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`column`](View.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`View`](View.md).[`columnSpan`](View.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`View`](View.md).[`cssType`](View.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`View`](View.md).[`defaultVisualState`](View.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](View.md).[`direction`](View.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`View`](View.md).[`dock`](View.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`domNode`](View.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderBottomWidth`](View.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderLeftWidth`](View.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderRightWidth`](View.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveHeight`](View.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveLeft`](View.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginBottom`](View.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginLeft`](View.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginRight`](View.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinHeight`](View.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveTop`](View.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveWidth`](View.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flex`](View.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`View`](View.md).[`flexFlow`](View.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flexGrow`](View.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`View`](View.md).[`flexShrink`](View.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`View`](View.md).[`flexWrapBefore`](View.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`View`](View.md).[`height`](View.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`View`](View.md).[`hidden`](View.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`View`](View.md).[`horizontalAlignment`](View.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`View`](View.md).[`id`](View.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`View`](View.md).[`ios`](View.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityAdjustsFontSize`](View.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMaxFontScale`](View.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`View`](View.md).[`iosGlassEffect`](View.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosIgnoreSafeArea`](View.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Overrides [`View`](View.md).[`iosOverflowSafeArea`](View.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeAreaEnabled`](View.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`View`](View.md).[`isCollapsed`](View.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isEnabled`](View.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`View`](View.md).[`isLayoutValid`](View.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isUserInteractionEnabled`](View.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`left`](View.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`View`](View.md).[`margin`](View.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginBottom`](View.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginLeft`](View.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginRight`](View.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`View`](View.md).[`mIsRootView`](View.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`View`](View.md).[`modal`](View.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`View`](View.md).[`nativeBackgroundState`](View.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`View`](View.md).[`nativeViewProtected`](View.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`View`](View.md).[`opacity`](View.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`View`](View.md).[`order`](View.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originX`](View.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originY`](View.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`View`](View.md).[`parent`](View.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`perspective`](View.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`recycleNativeView`](View.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`View`](View.md).[`reusable`](View.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotate`](View.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateX`](View.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateY`](View.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`row`](View.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`rowSpan`](View.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleX`](View.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleY`](View.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionIgnore`](View.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionTag`](View.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`View`](View.md).[`statusBarStyle`](View.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`top`](View.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`View`](View.md).[`touchDelay`](View.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`View`](View.md).[`transitionId`](View.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateX`](View.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateY`](View.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`View`](View.md).[`verticalAlignment`](View.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`View`](View.md).[`viewController`](View.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`View`](View.md).[`visibility`](View.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionHoverStyle`](View.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionIgnoreHoverStyle`](View.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`width`](View.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`View`](View.md).[`accessibilityBlurEvent`](View.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`View`](View.md).[`accessibilityFocusChangedEvent`](View.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`View`](View.md).[`accessibilityFocusEvent`](View.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`accessibilityPerformEscapeEvent`](View.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`View`](View.md).[`createdEvent`](View.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`View`](View.md).[`disposeNativeViewEvent`](View.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`View`](View.md).[`layoutChangedEvent`](View.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`View`](View.md).[`loadedEvent`](View.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`View`](View.md).[`propertyChangeEvent`](View.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`View`](View.md).[`showingModallyEvent`](View.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`View`](View.md).[`unloadedEvent`](View.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundPosition`](View.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundRepeat`](View.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundSize`](View.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`class`](View.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingBottom`](View.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingLeft`](View.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingRight`](View.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingTop`](View.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`View`](View.md).[`isLoaded`](View.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`View`](View.md).[`nativeView`](View.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`View`](View.md).[`page`](View.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`parentNode`](View.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`style`](View.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`textTransform`](View.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`View`](View.md).[`typeName`](View.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](View.md).[`visualState`](View.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addView`](View.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addViewCore`](View.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_addViewToNativeVisualTree`](View.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`View`](View.md).[`_applyGlassEffect`](View.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`View`](View.md).[`_applyXmlAttribute`](View.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`View`](View.md).[`_batchUpdate`](View.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`_childIndexToNativeChildIndex`](View.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`View`](View.md).[`_closeAllModalViewsInternal`](View.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`View`](View.md).[`_createPropertyChangeData`](View.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_dialogClosed`](View.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_eachLayoutView`](View.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`_emit`](View.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`View`](View.md).[`_getRootModalViews`](View.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_getValue`](View.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_handleLivesync`](View.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_hasAncestorView`](View.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_hideNativeModalView`](View.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyles`](View.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyleScope`](View.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_layoutParent`](View.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_observe`](View.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onAttachedToWindow`](View.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onDetachedFromWindow`](View.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_onRootViewReset`](View.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`View`](View.md).[`_onSizeChanged`](View.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_parentChanged`](View.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseLayoutChangedEvent`](View.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShowingModallyEvent`](View.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShownModallyEvent`](View.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeView`](View.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewCore`](View.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewFromNativeVisualTree`](View.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_resumeNativeUpdates`](View.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setDefaultPaddings`](View.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupAsRootView`](View.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupUI`](View.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_setValue`](View.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`View`](View.md).[`_shouldDelayLayout`](View.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_showNativeModalView`](View.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_suspendNativeUpdates`](View.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_tearDownUI`](View.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`View`](View.md).[`_updateStyleScope`](View.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityAnnouncement`](View.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityScreenChanged`](View.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`View`](View.md).[`addPseudoClass`](View.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`View`](View.md).[`animate`](View.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`View`](View.md).[`bind`](View.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callLoaded`](View.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callUnloaded`](View.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`View`](View.md).[`closeModal`](View.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`View`](View.md).[`createAnimation`](View.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`View`](View.md).[`createNativeView`](View.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`View`](View.md).[`deletePseudoClass`](View.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`View`](View.md).[`destroyNode`](View.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`disposeNativeView`](View.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChild`](View.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChildView`](View.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`View`](View.md).[`ensureDomNode`](View.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`View`](View.md).[`focus`](View.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`View`](View.md).[`get`](View.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`View`](View.md).[`getActualSize`](View.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`View`](View.md).[`getClosestWindow`](View.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`View`](View.md).[`getEffectivePaddingShorthand`](View.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`View`](View.md).[`getGestureObservers`](View.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationInWindow`](View.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationOnScreen`](View.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationRelativeTo`](View.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredHeight`](View.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`View`](View.md).[`getSafeAreaInsets`](View.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewByDomId`](View.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewById`](View.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasGestureObservers`](View.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasListeners`](View.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`initNativeView`](View.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`layout`](View.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutNativeView`](View.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`View`](View.md).[`loadView`](View.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`View`](View.md).[`measure`](View.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`View`](View.md).[`notify`](View.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`notifyPropertyChange`](View.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`View`](View.md).[`off`](View.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`View`](View.md).[`onBackPressed`](View.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`View`](View.md).[`once`](View.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`onLayout`](View.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onLoaded`](View.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`View`](View.md).[`onMeasure`](View.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onResumeNativeUpdates`](View.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onUnloaded`](View.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`View`](View.md).[`requestLayout`](View.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`resetNativeView`](View.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`View`](View.md).[`sendAccessibilityEvent`](View.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`set`](View.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setAccessibilityIdentifier`](View.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setInlineStyle`](View.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`View`](View.md).[`setMeasuredDimension`](View.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setNativeView`](View.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`View`](View.md).[`setOnTouchListener`](View.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setProperty`](View.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`View`](View.md).[`showModal`](View.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`View`](View.md).[`toString`](View.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`unbind`](View.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`View`](View.md).[`unloadView`](View.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`View`](View.md).[`updateStatusBarStyle`](View.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`View`](View.md).[`combineMeasuredStates`](View.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutChild`](View.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`View`](View.md).[`measureChild`](View.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`off`](View.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`on`](View.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`once`](View.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`resolveSizeAndState`](View.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/ContentView.md' --- Defined in: [ui/content-view/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/content-view/index.d.ts#L7) ## Ns View ContentView ## Extends * [`CustomLayoutView`](CustomLayoutView.md) ## Extended by * [`PageBase`](PageBase.md) * [`ScrollView`](ScrollView.md) ## Implements * [`AddChildFromBuilder`](../interfaces/AddChildFromBuilder.md) ## Constructors ### Constructor ```ts new ContentView(): ContentView; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `ContentView` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`constructor`](CustomLayoutView.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_androidContentDescriptionUpdated`](CustomLayoutView.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_automaticallyAdjustsScrollViewInsets`](CustomLayoutView.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_closeModalCallback`](CustomLayoutView.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_context`](CustomLayoutView.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_cssState`](CustomLayoutView.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingBottom`](CustomLayoutView.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingLeft`](CustomLayoutView.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingRight`](CustomLayoutView.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingTop`](CustomLayoutView.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_domId`](CustomLayoutView.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_ignoreFlexMinWidthHeightReset`](CustomLayoutView.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isAddedToNativeVisualTree`](CustomLayoutView.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isPaddingRelative`](CustomLayoutView.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isStyleScopeHost`](CustomLayoutView.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldBottom`](CustomLayoutView.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldLeft`](CustomLayoutView.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldRight`](CustomLayoutView.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldTop`](CustomLayoutView.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_styleScope`](CustomLayoutView.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_suspendNativeUpdatesCount`](CustomLayoutView.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityHidden`](CustomLayoutView.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityHint`](CustomLayoutView.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityIdentifier`](CustomLayoutView.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityIgnoresInvertColors`](CustomLayoutView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityLabel`](CustomLayoutView.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityLanguage`](CustomLayoutView.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityLiveRegion`](CustomLayoutView.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityMediaSession`](CustomLayoutView.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityRole`](CustomLayoutView.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityState`](CustomLayoutView.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityValue`](CustomLayoutView.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessible`](CustomLayoutView.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`alignSelf`](CustomLayoutView.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`android`](CustomLayoutView.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidDynamicElevationOffset`](CustomLayoutView.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidElevation`](CustomLayoutView.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidOverflowEdge`](CustomLayoutView.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`automationText`](CustomLayoutView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`background`](CustomLayoutView.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundColor`](CustomLayoutView.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundImage`](CustomLayoutView.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`bindingContext`](CustomLayoutView.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomColor`](CustomLayoutView.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomLeftRadius`](CustomLayoutView.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomRightRadius`](CustomLayoutView.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomWidth`](CustomLayoutView.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderColor`](CustomLayoutView.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderLeftColor`](CustomLayoutView.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderLeftWidth`](CustomLayoutView.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderRadius`](CustomLayoutView.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderRightColor`](CustomLayoutView.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderRightWidth`](CustomLayoutView.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopColor`](CustomLayoutView.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopLeftRadius`](CustomLayoutView.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopRightRadius`](CustomLayoutView.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopWidth`](CustomLayoutView.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderWidth`](CustomLayoutView.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`boxShadow`](CustomLayoutView.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`className`](CustomLayoutView.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`col`](CustomLayoutView.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`color`](CustomLayoutView.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`colSpan`](CustomLayoutView.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`column`](CustomLayoutView.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`columnSpan`](CustomLayoutView.md#columnspan) *** ### content ```ts content: View; ``` Defined in: [ui/content-view/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/content-view/index.d.ts#L13) Gets or sets the single child of the view. #### Ns Property *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssClasses`](CustomLayoutView.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssPseudoClasses`](CustomLayoutView.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssType`](CustomLayoutView.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`defaultVisualState`](CustomLayoutView.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`direction`](CustomLayoutView.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`dock`](CustomLayoutView.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`domNode`](CustomLayoutView.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderBottomWidth`](CustomLayoutView.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderLeftWidth`](CustomLayoutView.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderRightWidth`](CustomLayoutView.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderTopWidth`](CustomLayoutView.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveHeight`](CustomLayoutView.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveLeft`](CustomLayoutView.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginBottom`](CustomLayoutView.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginLeft`](CustomLayoutView.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginRight`](CustomLayoutView.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginTop`](CustomLayoutView.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMinHeight`](CustomLayoutView.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMinWidth`](CustomLayoutView.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveTop`](CustomLayoutView.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveWidth`](CustomLayoutView.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flex`](CustomLayoutView.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexFlow`](CustomLayoutView.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexGrow`](CustomLayoutView.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexShrink`](CustomLayoutView.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexWrapBefore`](CustomLayoutView.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`height`](CustomLayoutView.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`hidden`](CustomLayoutView.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`horizontalAlignment`](CustomLayoutView.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`id`](CustomLayoutView.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`ignoreTouchAnimation`](CustomLayoutView.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`ios`](CustomLayoutView.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosAccessibilityAdjustsFontSize`](CustomLayoutView.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosAccessibilityMaxFontScale`](CustomLayoutView.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosAccessibilityMinFontScale`](CustomLayoutView.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosGlassEffect`](CustomLayoutView.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosIgnoreSafeArea`](CustomLayoutView.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosOverflowSafeArea`](CustomLayoutView.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosOverflowSafeAreaEnabled`](CustomLayoutView.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isCollapsed`](CustomLayoutView.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isEnabled`](CustomLayoutView.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isLayoutValid`](CustomLayoutView.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isUserInteractionEnabled`](CustomLayoutView.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`left`](CustomLayoutView.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`margin`](CustomLayoutView.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginBottom`](CustomLayoutView.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginLeft`](CustomLayoutView.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginRight`](CustomLayoutView.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginTop`](CustomLayoutView.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`minHeight`](CustomLayoutView.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`minWidth`](CustomLayoutView.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`mIsRootView`](CustomLayoutView.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`modal`](CustomLayoutView.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`nativeBackgroundState`](CustomLayoutView.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`nativeViewProtected`](CustomLayoutView.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`opacity`](CustomLayoutView.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`order`](CustomLayoutView.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`originX`](CustomLayoutView.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`originY`](CustomLayoutView.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`parent`](CustomLayoutView.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`perspective`](CustomLayoutView.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`recycleNativeView`](CustomLayoutView.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`reusable`](CustomLayoutView.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rotate`](CustomLayoutView.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rotateX`](CustomLayoutView.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rotateY`](CustomLayoutView.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`row`](CustomLayoutView.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rowSpan`](CustomLayoutView.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`scaleX`](CustomLayoutView.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`scaleY`](CustomLayoutView.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`sharedTransitionIgnore`](CustomLayoutView.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`sharedTransitionTag`](CustomLayoutView.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`statusBarStyle`](CustomLayoutView.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`testID`](CustomLayoutView.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`top`](CustomLayoutView.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`touchAnimation`](CustomLayoutView.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`touchDelay`](CustomLayoutView.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`transitionId`](CustomLayoutView.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`translateX`](CustomLayoutView.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`translateY`](CustomLayoutView.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`verticalAlignment`](CustomLayoutView.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`viewController`](CustomLayoutView.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visibility`](CustomLayoutView.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visionHoverStyle`](CustomLayoutView.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visionIgnoreHoverStyle`](CustomLayoutView.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`width`](CustomLayoutView.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityBlurEvent`](CustomLayoutView.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityFocusChangedEvent`](CustomLayoutView.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityFocusEvent`](CustomLayoutView.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityPerformEscapeEvent`](CustomLayoutView.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidOverflowInsetEvent`](CustomLayoutView.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`createdEvent`](CustomLayoutView.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`disposeNativeViewEvent`](CustomLayoutView.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layoutChangedEvent`](CustomLayoutView.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`loadedEvent`](CustomLayoutView.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`propertyChangeEvent`](CustomLayoutView.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`showingModallyEvent`](CustomLayoutView.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`shownModallyEvent`](CustomLayoutView.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`unloadedEvent`](CustomLayoutView.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundPosition`](CustomLayoutView.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundRepeat`](CustomLayoutView.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundSize`](CustomLayoutView.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`class`](CustomLayoutView.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingBottom`](CustomLayoutView.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingLeft`](CustomLayoutView.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingRight`](CustomLayoutView.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingTop`](CustomLayoutView.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isLoaded`](CustomLayoutView.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`nativeView`](CustomLayoutView.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`page`](CustomLayoutView.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`parentNode`](CustomLayoutView.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`style`](CustomLayoutView.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`textTransform`](CustomLayoutView.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`typeName`](CustomLayoutView.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visualState`](CustomLayoutView.md#visualstate) ## Methods ### \_addChildFromBuilder() ```ts _addChildFromBuilder(name: string, value: any): void; ``` Defined in: [ui/content-view/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/content-view/index.d.ts#L15) Called for every child element declared in xml. This method will add a child element (value) to current element. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the element. | | `value` | `any` | Value of the element. | #### Returns `void` #### Implementation of [`AddChildFromBuilder`](../interfaces/AddChildFromBuilder.md).[`_addChildFromBuilder`](../interfaces/AddChildFromBuilder.md#_addchildfrombuilder) *** ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_addView`](CustomLayoutView.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_addViewCore`](CustomLayoutView.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_addViewToNativeVisualTree`](CustomLayoutView.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_applyGlassEffect`](CustomLayoutView.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_applyXmlAttribute`](CustomLayoutView.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_batchUpdate`](CustomLayoutView.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_childIndexToNativeChildIndex`](CustomLayoutView.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_closeAllModalViewsInternal`](CustomLayoutView.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_createPropertyChangeData`](CustomLayoutView.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_dialogClosed`](CustomLayoutView.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_eachLayoutView`](CustomLayoutView.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_emit`](CustomLayoutView.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getNativeViewsCount`](CustomLayoutView.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getRootModalViews`](CustomLayoutView.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getValue`](CustomLayoutView.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_handleLivesync`](CustomLayoutView.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_hasAncestorView`](CustomLayoutView.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_hideNativeModalView`](CustomLayoutView.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_inheritStyles`](CustomLayoutView.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_inheritStyleScope`](CustomLayoutView.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_layoutParent`](CustomLayoutView.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_observe`](CustomLayoutView.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onAttachedToWindow`](CustomLayoutView.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onDetachedFromWindow`](CustomLayoutView.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onRootViewReset`](CustomLayoutView.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onSizeChanged`](CustomLayoutView.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_parentChanged`](CustomLayoutView.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_raiseLayoutChangedEvent`](CustomLayoutView.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_raiseShowingModallyEvent`](CustomLayoutView.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_raiseShownModallyEvent`](CustomLayoutView.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_removeView`](CustomLayoutView.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_removeViewCore`](CustomLayoutView.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_removeViewFromNativeVisualTree`](CustomLayoutView.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_resumeNativeUpdates`](CustomLayoutView.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setDefaultPaddings`](CustomLayoutView.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setupAsRootView`](CustomLayoutView.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setupUI`](CustomLayoutView.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setValue`](CustomLayoutView.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_shouldDelayLayout`](CustomLayoutView.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_showNativeModalView`](CustomLayoutView.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_suspendNativeUpdates`](CustomLayoutView.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_tearDownUI`](CustomLayoutView.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_updateStyleScope`](CustomLayoutView.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityAnnouncement`](CustomLayoutView.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityScreenChanged`](CustomLayoutView.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`addEventListener`](CustomLayoutView.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`addPseudoClass`](CustomLayoutView.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`animate`](CustomLayoutView.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`bind`](CustomLayoutView.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`callLoaded`](CustomLayoutView.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`callUnloaded`](CustomLayoutView.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`closeModal`](CustomLayoutView.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`createAnimation`](CustomLayoutView.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`createNativeView`](CustomLayoutView.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`deletePseudoClass`](CustomLayoutView.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`destroyNode`](CustomLayoutView.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`disposeNativeView`](CustomLayoutView.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`eachChild`](CustomLayoutView.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`eachChildView`](CustomLayoutView.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`ensureDomNode`](CustomLayoutView.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`focus`](CustomLayoutView.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`get`](CustomLayoutView.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getActualSize`](CustomLayoutView.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getClosestWindow`](CustomLayoutView.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getEffectivePaddingShorthand`](CustomLayoutView.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getGestureObservers`](CustomLayoutView.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getLocationInWindow`](CustomLayoutView.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getLocationOnScreen`](CustomLayoutView.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getLocationRelativeTo`](CustomLayoutView.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredHeight`](CustomLayoutView.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredState`](CustomLayoutView.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredWidth`](CustomLayoutView.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getSafeAreaInsets`](CustomLayoutView.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getViewByDomId`](CustomLayoutView.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getViewById`](CustomLayoutView.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`hasGestureObservers`](CustomLayoutView.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`hasListeners`](CustomLayoutView.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`initNativeView`](CustomLayoutView.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layout`](CustomLayoutView.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layoutNativeView`](CustomLayoutView.md#layoutnativeview) *** ### layoutView() ```ts layoutView(): View; ``` Defined in: [ui/content-view/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/content-view/index.d.ts#L14) #### Returns [`View`](View.md) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`loadView`](CustomLayoutView.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`measure`](CustomLayoutView.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`notify`](CustomLayoutView.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`notifyPropertyChange`](CustomLayoutView.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`off`](CustomLayoutView.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onBackPressed`](CustomLayoutView.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`once`](CustomLayoutView.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onLayout`](CustomLayoutView.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onLoaded`](CustomLayoutView.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onMeasure`](CustomLayoutView.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onResumeNativeUpdates`](CustomLayoutView.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onUnloaded`](CustomLayoutView.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`removeEventListener`](CustomLayoutView.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`requestLayout`](CustomLayoutView.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`resetNativeView`](CustomLayoutView.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`sendAccessibilityEvent`](CustomLayoutView.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`set`](CustomLayoutView.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setAccessibilityIdentifier`](CustomLayoutView.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setInlineStyle`](CustomLayoutView.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setMeasuredDimension`](CustomLayoutView.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setNativeView`](CustomLayoutView.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setOnTouchListener`](CustomLayoutView.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setProperty`](CustomLayoutView.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`showModal`](CustomLayoutView.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`toString`](CustomLayoutView.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`unbind`](CustomLayoutView.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`unloadView`](CustomLayoutView.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`updateStatusBarStyle`](CustomLayoutView.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`addEventListener`](CustomLayoutView.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`combineMeasuredStates`](CustomLayoutView.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layoutChild`](CustomLayoutView.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`measureChild`](CustomLayoutView.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`off`](CustomLayoutView.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`once`](CustomLayoutView.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`removeEventListener`](CustomLayoutView.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`resolveSizeAndState`](CustomLayoutView.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/ControlStateChangeListener.md' description: >- An utility class used for supporting styling infrastructure. WARNING: This class is intended for IOS only. --- Defined in: [ui/core/control-state-change/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/control-state-change/index.d.ts#L7) An utility class used for supporting styling infrastructure. WARNING: This class is intended for IOS only. ## Constructors ### Constructor ```ts new ControlStateChangeListener( control: any, states: string[], callback: ControlStateChangeListenerCallback): ControlStateChangeListener; ``` Defined in: [ui/core/control-state-change/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/control-state-change/index.d.ts#L13) Initializes an instance of ControlStateChangeListener class. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `control` | `any` | An instance of the UIControl which state will be watched. | | `states` | `string`\[] | - | | `callback` | `ControlStateChangeListenerCallback` | A callback called when a visual state of the UIControl is changed. | #### Returns `ControlStateChangeListener` ## Methods ### start() ```ts start(): any; ``` Defined in: [ui/core/control-state-change/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/control-state-change/index.d.ts#L15) #### Returns `any` *** ### stop() ```ts stop(): any; ``` Defined in: [ui/core/control-state-change/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/control-state-change/index.d.ts#L16) #### Returns `any` --- --- url: 'https://docs.nativescript.org/api/classes/CssAnimationParser.md' --- Defined in: [ui/styling/css-animation-parser.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/css-animation-parser.ts) ## Constructors ### Constructor ```ts new CssAnimationParser(): CssAnimationParser; ``` #### Returns `CssAnimationParser` ## Methods ### keyframeAnimationsFromCSSDeclarations() ```ts static keyframeAnimationsFromCSSDeclarations(declarations: KeyframeDeclaration[]): KeyframeAnimationInfo[]; ``` Defined in: [ui/styling/css-animation-parser.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/css-animation-parser.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `declarations` | [`KeyframeDeclaration`](KeyframeDeclaration.md)\[] | #### Returns [`KeyframeAnimationInfo`](KeyframeAnimationInfo.md)\[] *** ### keyframesArrayFromCSS() ```ts static keyframesArrayFromCSS(keyframes: UnparsedKeyframe[]): KeyframeInfo[]; ``` Defined in: [ui/styling/css-animation-parser.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/css-animation-parser.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `keyframes` | `UnparsedKeyframe`\[] | #### Returns [`KeyframeInfo`](KeyframeInfo.md)\[] --- --- url: 'https://docs.nativescript.org/api/classes/CssAnimationProperty.md' --- Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) ## Type Parameters | Type Parameter | | ------ | | `T` *extends* [`Style`](Style.md) | | `U` | ## Implements * `CssAnimationProperty`<`T`, `U`> ## Constructors ### Constructor ```ts new CssAnimationProperty(options: CssAnimationPropertyOptions): CssAnimationProperty; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `CssAnimationPropertyOptions`<`T`, `U`> | #### Returns `CssAnimationProperty`<`T`, `U`> ## Properties ### \_valueConverter? ```ts optional _valueConverter?: (value: string) => any; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | #### Returns `any` #### Implementation of ```ts CssAnimationProperty._valueConverter ``` *** ### cssLocalName ```ts readonly cssLocalName: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CssAnimationProperty.cssLocalName ``` *** ### cssName ```ts readonly cssName: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CssAnimationProperty.cssName ``` *** ### defaultValue ```ts readonly defaultValue: U; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CssAnimationProperty.defaultValue ``` *** ### defaultValueKey ```ts readonly defaultValueKey: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CssAnimationProperty.defaultValueKey ``` *** ### getDefault ```ts readonly getDefault: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CssAnimationProperty.getDefault ``` *** ### isStyleProperty ```ts isStyleProperty: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CssAnimationProperty.isStyleProperty ``` *** ### key ```ts readonly key: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CssAnimationProperty.key ``` *** ### keyframe ```ts readonly keyframe: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CssAnimationProperty.keyframe ``` *** ### name ```ts readonly name: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CssAnimationProperty.name ``` *** ### register ```ts readonly register: (cls: { prototype: any; }) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `cls` | { `prototype`: `any`; } | | `cls.prototype` | `any` | #### Returns `void` #### Implementation of ```ts CssAnimationProperty.register ``` *** ### setNative ```ts readonly setNative: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts CssAnimationProperty.setNative ``` ## Methods ### \_initDefaultNativeValue() ```ts _initDefaultNativeValue(target: T): void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `target` | `T` | #### Returns `void` #### Implementation of ```ts CssAnimationProperty._initDefaultNativeValue ``` *** ### isSet() ```ts isSet(instance: T): boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `instance` | `T` | #### Returns `boolean` #### Implementation of ```ts CssAnimationProperty.isSet ``` *** ### \_getByCssName() ```ts static _getByCssName(name: string): CssAnimationProperty; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `CssAnimationProperty`<`any`, `any`> *** ### \_getPropertyNames() ```ts static _getPropertyNames(): string[]; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Returns `string`\[] --- --- url: 'https://docs.nativescript.org/api/classes/CssProperty.md' --- Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) ## Extended by * [`InheritedCssProperty`](InheritedCssProperty.md) ## Type Parameters | Type Parameter | | ------ | | `T` *extends* [`Style`](Style.md) | | `U` | ## Constructors ### Constructor ```ts new CssProperty(options: CssPropertyOptions): CssProperty; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `CssPropertyOptions`<`T`, `U`> | #### Returns `CssProperty`<`T`, `U`> ## Properties ### cssLocalName ```ts readonly cssLocalName: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) *** ### cssName ```ts readonly cssName: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) *** ### cssValueDescriptor ```ts protected readonly cssValueDescriptor: PropertyDescriptor; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) *** ### defaultValue ```ts readonly defaultValue: U; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) *** ### defaultValueKey ```ts readonly defaultValueKey: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) *** ### getDefault ```ts readonly getDefault: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) *** ### isStyleProperty ```ts isStyleProperty: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) *** ### key ```ts readonly key: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) *** ### localValueDescriptor ```ts protected readonly localValueDescriptor: PropertyDescriptor; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) *** ### name ```ts readonly name: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) *** ### overrideHandlers ```ts overrideHandlers: (options: CssPropertyOptions) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `CssPropertyOptions`<`T`, `U`> | #### Returns `void` *** ### setNative ```ts readonly setNative: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) *** ### sourceKey ```ts readonly sourceKey: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) ## Methods ### isSet() ```ts isSet(instance: T): boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `instance` | `T` | #### Returns `boolean` *** ### register() ```ts register(cls: { prototype: T; }): void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `cls` | { `prototype`: `T`; } | | `cls.prototype` | `T` | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/CustomLayoutView.md' description: Base class for all UI components that implement custom layouts. --- Defined in: [ui/core/view/index.d.ts:1136](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1136) Base class for all UI components that implement custom layouts. ## Extends * [`ContainerView`](ContainerView.md) ## Extended by * [`ContentView`](ContentView.md) * [`Repeater`](Repeater.md) * [`LayoutBase`](LayoutBase.md) ## Constructors ### Constructor ```ts new CustomLayoutView(): CustomLayoutView; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `CustomLayoutView` #### Inherited from [`ContainerView`](ContainerView.md).[`constructor`](ContainerView.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`ContainerView`](ContainerView.md).[`_androidContentDescriptionUpdated`](ContainerView.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_automaticallyAdjustsScrollViewInsets`](ContainerView.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_closeModalCallback`](ContainerView.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_context`](ContainerView.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_cssState`](ContainerView.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_defaultPaddingBottom`](ContainerView.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_defaultPaddingLeft`](ContainerView.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_defaultPaddingRight`](ContainerView.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_defaultPaddingTop`](ContainerView.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_domId`](ContainerView.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_ignoreFlexMinWidthHeightReset`](ContainerView.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_isAddedToNativeVisualTree`](ContainerView.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_isPaddingRelative`](ContainerView.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_isStyleScopeHost`](ContainerView.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_oldBottom`](ContainerView.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_oldLeft`](ContainerView.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_oldRight`](ContainerView.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_oldTop`](ContainerView.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`_styleScope`](ContainerView.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`ContainerView`](ContainerView.md).[`_suspendNativeUpdatesCount`](ContainerView.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityHidden`](ContainerView.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityHint`](ContainerView.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityIdentifier`](ContainerView.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityIgnoresInvertColors`](ContainerView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityLabel`](ContainerView.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityLanguage`](ContainerView.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityLiveRegion`](ContainerView.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityMediaSession`](ContainerView.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityRole`](ContainerView.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityState`](ContainerView.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityValue`](ContainerView.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`accessible`](ContainerView.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`alignSelf`](ContainerView.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`ContainerView`](ContainerView.md).[`android`](ContainerView.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`androidDynamicElevationOffset`](ContainerView.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`androidElevation`](ContainerView.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`androidOverflowEdge`](ContainerView.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`automationText`](ContainerView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`background`](ContainerView.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`backgroundColor`](ContainerView.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`backgroundImage`](ContainerView.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`bindingContext`](ContainerView.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderBottomColor`](ContainerView.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderBottomLeftRadius`](ContainerView.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderBottomRightRadius`](ContainerView.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderBottomWidth`](ContainerView.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderColor`](ContainerView.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderLeftColor`](ContainerView.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderLeftWidth`](ContainerView.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderRadius`](ContainerView.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderRightColor`](ContainerView.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderRightWidth`](ContainerView.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderTopColor`](ContainerView.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderTopLeftRadius`](ContainerView.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderTopRightRadius`](ContainerView.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderTopWidth`](ContainerView.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`borderWidth`](ContainerView.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`boxShadow`](ContainerView.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`className`](ContainerView.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`col`](ContainerView.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`color`](ContainerView.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`colSpan`](ContainerView.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`column`](ContainerView.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`columnSpan`](ContainerView.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`ContainerView`](ContainerView.md).[`cssClasses`](ContainerView.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`ContainerView`](ContainerView.md).[`cssPseudoClasses`](ContainerView.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`ContainerView`](ContainerView.md).[`cssType`](ContainerView.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`defaultVisualState`](ContainerView.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`direction`](ContainerView.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`dock`](ContainerView.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`domNode`](ContainerView.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveBorderBottomWidth`](ContainerView.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveBorderLeftWidth`](ContainerView.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveBorderRightWidth`](ContainerView.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveBorderTopWidth`](ContainerView.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveHeight`](ContainerView.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveLeft`](ContainerView.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveMarginBottom`](ContainerView.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveMarginLeft`](ContainerView.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveMarginRight`](ContainerView.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveMarginTop`](ContainerView.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveMinHeight`](ContainerView.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveMinWidth`](ContainerView.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveTop`](ContainerView.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`effectiveWidth`](ContainerView.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`flex`](ContainerView.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`flexFlow`](ContainerView.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`flexGrow`](ContainerView.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`flexShrink`](ContainerView.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`flexWrapBefore`](ContainerView.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`height`](ContainerView.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`hidden`](ContainerView.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`horizontalAlignment`](ContainerView.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`id`](ContainerView.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`ignoreTouchAnimation`](ContainerView.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`ContainerView`](ContainerView.md).[`ios`](ContainerView.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`iosAccessibilityAdjustsFontSize`](ContainerView.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`iosAccessibilityMaxFontScale`](ContainerView.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`iosAccessibilityMinFontScale`](ContainerView.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`iosGlassEffect`](ContainerView.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`iosIgnoreSafeArea`](ContainerView.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`iosOverflowSafeArea`](ContainerView.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`iosOverflowSafeAreaEnabled`](ContainerView.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`ContainerView`](ContainerView.md).[`isCollapsed`](ContainerView.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`isEnabled`](ContainerView.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`ContainerView`](ContainerView.md).[`isLayoutValid`](ContainerView.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`isUserInteractionEnabled`](ContainerView.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`left`](ContainerView.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`margin`](ContainerView.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`marginBottom`](ContainerView.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`marginLeft`](ContainerView.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`marginRight`](ContainerView.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`marginTop`](ContainerView.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`minHeight`](ContainerView.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`minWidth`](ContainerView.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`ContainerView`](ContainerView.md).[`mIsRootView`](ContainerView.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`ContainerView`](ContainerView.md).[`modal`](ContainerView.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`ContainerView`](ContainerView.md).[`nativeBackgroundState`](ContainerView.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`ContainerView`](ContainerView.md).[`nativeViewProtected`](ContainerView.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`opacity`](ContainerView.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`order`](ContainerView.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`originX`](ContainerView.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`originY`](ContainerView.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`ContainerView`](ContainerView.md).[`parent`](ContainerView.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`perspective`](ContainerView.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`recycleNativeView`](ContainerView.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`reusable`](ContainerView.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`rotate`](ContainerView.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`rotateX`](ContainerView.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`rotateY`](ContainerView.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`row`](ContainerView.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`rowSpan`](ContainerView.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`scaleX`](ContainerView.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`scaleY`](ContainerView.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`sharedTransitionIgnore`](ContainerView.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`sharedTransitionTag`](ContainerView.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`statusBarStyle`](ContainerView.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`testID`](ContainerView.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`top`](ContainerView.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`touchAnimation`](ContainerView.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`touchDelay`](ContainerView.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`ContainerView`](ContainerView.md).[`transitionId`](ContainerView.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`translateX`](ContainerView.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`translateY`](ContainerView.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`verticalAlignment`](ContainerView.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`ContainerView`](ContainerView.md).[`viewController`](ContainerView.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`visibility`](ContainerView.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`visionHoverStyle`](ContainerView.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`visionIgnoreHoverStyle`](ContainerView.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`ContainerView`](ContainerView.md).[`width`](ContainerView.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityBlurEvent`](ContainerView.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityFocusChangedEvent`](ContainerView.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityFocusEvent`](ContainerView.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityPerformEscapeEvent`](ContainerView.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`ContainerView`](ContainerView.md).[`androidOverflowInsetEvent`](ContainerView.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`ContainerView`](ContainerView.md).[`createdEvent`](ContainerView.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`ContainerView`](ContainerView.md).[`disposeNativeViewEvent`](ContainerView.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`ContainerView`](ContainerView.md).[`layoutChangedEvent`](ContainerView.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`ContainerView`](ContainerView.md).[`loadedEvent`](ContainerView.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`ContainerView`](ContainerView.md).[`propertyChangeEvent`](ContainerView.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`ContainerView`](ContainerView.md).[`showingModallyEvent`](ContainerView.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`ContainerView`](ContainerView.md).[`shownModallyEvent`](ContainerView.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`ContainerView`](ContainerView.md).[`unloadedEvent`](ContainerView.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`backgroundPosition`](ContainerView.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`backgroundRepeat`](ContainerView.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`backgroundSize`](ContainerView.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`class`](ContainerView.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`effectivePaddingBottom`](ContainerView.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`effectivePaddingLeft`](ContainerView.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`effectivePaddingRight`](ContainerView.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`effectivePaddingTop`](ContainerView.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`ContainerView`](ContainerView.md).[`isLoaded`](ContainerView.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`nativeView`](ContainerView.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`ContainerView`](ContainerView.md).[`page`](ContainerView.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`parentNode`](ContainerView.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`style`](ContainerView.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`textTransform`](ContainerView.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`ContainerView`](ContainerView.md).[`typeName`](ContainerView.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`ContainerView`](ContainerView.md).[`visualState`](ContainerView.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_addView`](ContainerView.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_addViewCore`](ContainerView.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`ContainerView`](ContainerView.md).[`_addViewToNativeVisualTree`](ContainerView.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`ContainerView`](ContainerView.md).[`_applyGlassEffect`](ContainerView.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`ContainerView`](ContainerView.md).[`_applyXmlAttribute`](ContainerView.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`ContainerView`](ContainerView.md).[`_batchUpdate`](ContainerView.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`ContainerView`](ContainerView.md).[`_childIndexToNativeChildIndex`](ContainerView.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`ContainerView`](ContainerView.md).[`_closeAllModalViewsInternal`](ContainerView.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`ContainerView`](ContainerView.md).[`_createPropertyChangeData`](ContainerView.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_dialogClosed`](ContainerView.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_eachLayoutView`](ContainerView.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_emit`](ContainerView.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`ContainerView`](ContainerView.md).[`_getNativeViewsCount`](ContainerView.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`ContainerView`](ContainerView.md).[`_getRootModalViews`](ContainerView.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`ContainerView`](ContainerView.md).[`_getValue`](ContainerView.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`ContainerView`](ContainerView.md).[`_handleLivesync`](ContainerView.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`ContainerView`](ContainerView.md).[`_hasAncestorView`](ContainerView.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_hideNativeModalView`](ContainerView.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_inheritStyles`](ContainerView.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_inheritStyleScope`](ContainerView.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_layoutParent`](ContainerView.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_observe`](ContainerView.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_onAttachedToWindow`](ContainerView.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_onDetachedFromWindow`](ContainerView.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_onRootViewReset`](ContainerView.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_onSizeChanged`](ContainerView.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_parentChanged`](ContainerView.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_raiseLayoutChangedEvent`](ContainerView.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_raiseShowingModallyEvent`](ContainerView.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_raiseShownModallyEvent`](ContainerView.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_removeView`](ContainerView.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_removeViewCore`](ContainerView.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_removeViewFromNativeVisualTree`](ContainerView.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_resumeNativeUpdates`](ContainerView.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_setDefaultPaddings`](ContainerView.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_setupAsRootView`](ContainerView.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_setupUI`](ContainerView.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`ContainerView`](ContainerView.md).[`_setValue`](ContainerView.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`ContainerView`](ContainerView.md).[`_shouldDelayLayout`](ContainerView.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_showNativeModalView`](ContainerView.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_suspendNativeUpdates`](ContainerView.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_tearDownUI`](ContainerView.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`_updateStyleScope`](ContainerView.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityAnnouncement`](ContainerView.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`accessibilityScreenChanged`](ContainerView.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`addEventListener`](ContainerView.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`ContainerView`](ContainerView.md).[`addPseudoClass`](ContainerView.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`ContainerView`](ContainerView.md).[`animate`](ContainerView.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`bind`](ContainerView.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`callLoaded`](ContainerView.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`callUnloaded`](ContainerView.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`closeModal`](ContainerView.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`ContainerView`](ContainerView.md).[`createAnimation`](ContainerView.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`ContainerView`](ContainerView.md).[`createNativeView`](ContainerView.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`ContainerView`](ContainerView.md).[`deletePseudoClass`](ContainerView.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`ContainerView`](ContainerView.md).[`destroyNode`](ContainerView.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`disposeNativeView`](ContainerView.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`eachChild`](ContainerView.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`eachChildView`](ContainerView.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`ContainerView`](ContainerView.md).[`ensureDomNode`](ContainerView.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`ContainerView`](ContainerView.md).[`focus`](ContainerView.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`ContainerView`](ContainerView.md).[`get`](ContainerView.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`ContainerView`](ContainerView.md).[`getActualSize`](ContainerView.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`ContainerView`](ContainerView.md).[`getClosestWindow`](ContainerView.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`ContainerView`](ContainerView.md).[`getEffectivePaddingShorthand`](ContainerView.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`ContainerView`](ContainerView.md).[`getGestureObservers`](ContainerView.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`ContainerView`](ContainerView.md).[`getLocationInWindow`](ContainerView.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`ContainerView`](ContainerView.md).[`getLocationOnScreen`](ContainerView.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`ContainerView`](ContainerView.md).[`getLocationRelativeTo`](ContainerView.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`ContainerView`](ContainerView.md).[`getMeasuredHeight`](ContainerView.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`ContainerView`](ContainerView.md).[`getMeasuredState`](ContainerView.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`ContainerView`](ContainerView.md).[`getMeasuredWidth`](ContainerView.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`ContainerView`](ContainerView.md).[`getSafeAreaInsets`](ContainerView.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`ContainerView`](ContainerView.md).[`getViewByDomId`](ContainerView.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`ContainerView`](ContainerView.md).[`getViewById`](ContainerView.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`ContainerView`](ContainerView.md).[`hasGestureObservers`](ContainerView.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`ContainerView`](ContainerView.md).[`hasListeners`](ContainerView.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`initNativeView`](ContainerView.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`layout`](ContainerView.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`layoutNativeView`](ContainerView.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`loadView`](ContainerView.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`measure`](ContainerView.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`notify`](ContainerView.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`notifyPropertyChange`](ContainerView.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`ContainerView`](ContainerView.md).[`off`](ContainerView.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`ContainerView`](ContainerView.md).[`on`](ContainerView.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`ContainerView`](ContainerView.md).[`on`](ContainerView.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`ContainerView`](ContainerView.md).[`on`](ContainerView.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`ContainerView`](ContainerView.md).[`on`](ContainerView.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`ContainerView`](ContainerView.md).[`on`](ContainerView.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`ContainerView`](ContainerView.md).[`on`](ContainerView.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`ContainerView`](ContainerView.md).[`on`](ContainerView.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`ContainerView`](ContainerView.md).[`onBackPressed`](ContainerView.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`once`](ContainerView.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`onLayout`](ContainerView.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`onLoaded`](ContainerView.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`onMeasure`](ContainerView.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`onResumeNativeUpdates`](ContainerView.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`onUnloaded`](ContainerView.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`removeEventListener`](ContainerView.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`requestLayout`](ContainerView.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`resetNativeView`](ContainerView.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`ContainerView`](ContainerView.md).[`sendAccessibilityEvent`](ContainerView.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`set`](ContainerView.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`setAccessibilityIdentifier`](ContainerView.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`setInlineStyle`](ContainerView.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`setMeasuredDimension`](ContainerView.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`setNativeView`](ContainerView.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`setOnTouchListener`](ContainerView.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`setProperty`](ContainerView.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`ContainerView`](ContainerView.md).[`showModal`](ContainerView.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`ContainerView`](ContainerView.md).[`toString`](ContainerView.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`unbind`](ContainerView.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`unloadView`](ContainerView.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`updateStatusBarStyle`](ContainerView.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`ContainerView`](ContainerView.md).[`addEventListener`](ContainerView.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`ContainerView`](ContainerView.md).[`combineMeasuredStates`](ContainerView.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`ContainerView`](ContainerView.md).[`layoutChild`](ContainerView.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`ContainerView`](ContainerView.md).[`measureChild`](ContainerView.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ContainerView`](ContainerView.md).[`off`](ContainerView.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`ContainerView`](ContainerView.md).[`on`](ContainerView.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ContainerView`](ContainerView.md).[`once`](ContainerView.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ContainerView`](ContainerView.md).[`removeEventListener`](ContainerView.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`ContainerView`](ContainerView.md).[`resolveSizeAndState`](ContainerView.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/DatePicker.md' description: Represents an date picker. --- Defined in: [ui/date-picker/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L17) Represents an date picker. ## Ns View DatePicker ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new DatePicker(): DatePicker; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `DatePicker` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`View`](View.md).[`_androidContentDescriptionUpdated`](View.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_automaticallyAdjustsScrollViewInsets`](View.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`_closeModalCallback`](View.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_context`](View.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_cssState`](View.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingBottom`](View.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingLeft`](View.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingRight`](View.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingTop`](View.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_domId`](View.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_ignoreFlexMinWidthHeightReset`](View.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isAddedToNativeVisualTree`](View.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isPaddingRelative`](View.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldBottom`](View.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldLeft`](View.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldRight`](View.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldTop`](View.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_styleScope`](View.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`View`](View.md).[`_suspendNativeUpdatesCount`](View.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHidden`](View.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHint`](View.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIdentifier`](View.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLabel`](View.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLanguage`](View.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLiveRegion`](View.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityMediaSession`](View.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityRole`](View.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityState`](View.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityValue`](View.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`View`](View.md).[`accessible`](View.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`View`](View.md).[`alignSelf`](View.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/date-picker/index.d.ts:28](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L28) Gets the native [android.widget.DatePicker](http://developer.android.com/reference/android/widget/DatePicker.html) that represents the user interface for this component. Valid only when running on Android OS. #### Overrides [`View`](View.md).[`android`](View.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidDynamicElevationOffset`](View.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidElevation`](View.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`androidOverflowEdge`](View.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`View`](View.md).[`background`](View.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundColor`](View.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundImage`](View.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`View`](View.md).[`bindingContext`](View.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomColor`](View.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomLeftRadius`](View.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomRightRadius`](View.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomWidth`](View.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderColor`](View.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftColor`](View.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftWidth`](View.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRadius`](View.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightColor`](View.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightWidth`](View.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopColor`](View.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopLeftRadius`](View.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopRightRadius`](View.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopWidth`](View.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderWidth`](View.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`View`](View.md).[`className`](View.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`col`](View.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`color`](View.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`colSpan`](View.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`column`](View.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`View`](View.md).[`columnSpan`](View.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`View`](View.md).[`cssType`](View.md#csstype) *** ### date ```ts date: Date; ``` Defined in: [ui/date-picker/index.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L61) Gets or sets the entire date. #### Ns Property *** ### day ```ts day: number; ``` Defined in: [ui/date-picker/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L54) Gets or sets the day. The days start from 1. #### Ns Property *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`View`](View.md).[`defaultVisualState`](View.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](View.md).[`direction`](View.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`View`](View.md).[`dock`](View.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`domNode`](View.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderBottomWidth`](View.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderLeftWidth`](View.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderRightWidth`](View.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveHeight`](View.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveLeft`](View.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginBottom`](View.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginLeft`](View.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginRight`](View.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinHeight`](View.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveTop`](View.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveWidth`](View.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flex`](View.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`View`](View.md).[`flexFlow`](View.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flexGrow`](View.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`View`](View.md).[`flexShrink`](View.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`View`](View.md).[`flexWrapBefore`](View.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`View`](View.md).[`height`](View.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`View`](View.md).[`hidden`](View.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`View`](View.md).[`horizontalAlignment`](View.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`View`](View.md).[`id`](View.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/date-picker/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L33) Gets the native iOS [UIDatePicker](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS. #### Overrides [`View`](View.md).[`ios`](View.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityAdjustsFontSize`](View.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMaxFontScale`](View.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`View`](View.md).[`iosGlassEffect`](View.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosIgnoreSafeArea`](View.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeArea`](View.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeAreaEnabled`](View.md#iosoverflowsafeareaenabled) *** ### iosPreferredDatePickerStyle ```ts iosPreferredDatePickerStyle: number; ``` Defined in: [ui/date-picker/index.d.ts:87](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L87) Gets or set the UIDatePickerStyle of the date picker in iOS 13.4+. Defaults to 0. Valid values are numbers: * 0: automatic (system picks the concrete style based on the current platform and date picker mode) * 1: wheels (the date picker displays as a wheel picker) * 2: compact (the date picker displays as a label that when tapped displays a calendar-style editor) * 3: inline (the date pickers displays as an inline, editable field) #### Ns Property *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`View`](View.md).[`isCollapsed`](View.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isEnabled`](View.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`View`](View.md).[`isLayoutValid`](View.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isUserInteractionEnabled`](View.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`left`](View.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`View`](View.md).[`margin`](View.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginBottom`](View.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginLeft`](View.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginRight`](View.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxDate ```ts maxDate: Date; ``` Defined in: [ui/date-picker/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L68) Gets or sets the max date. #### Ns Property *** ### minDate ```ts minDate: Date; ``` Defined in: [ui/date-picker/index.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L75) Gets or sets the min date. #### Ns Property *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`View`](View.md).[`mIsRootView`](View.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`View`](View.md).[`modal`](View.md#modal) *** ### month ```ts month: number; ``` Defined in: [ui/date-picker/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L47) Gets or sets the month. The months start from 1. #### Ns Property *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`View`](View.md).[`nativeBackgroundState`](View.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`View`](View.md).[`nativeViewProtected`](View.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`View`](View.md).[`opacity`](View.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`View`](View.md).[`order`](View.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originX`](View.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originY`](View.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`View`](View.md).[`parent`](View.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`perspective`](View.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`recycleNativeView`](View.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`View`](View.md).[`reusable`](View.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotate`](View.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateX`](View.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateY`](View.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`row`](View.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`rowSpan`](View.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleX`](View.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleY`](View.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionIgnore`](View.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionTag`](View.md#sharedtransitiontag) *** ### showTime ```ts showTime: boolean; ``` Defined in: [ui/date-picker/index.d.ts:94](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L94) Gets or sets whether the time should be shown. #### Ns Property *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`View`](View.md).[`statusBarStyle`](View.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`top`](View.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`View`](View.md).[`touchDelay`](View.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`View`](View.md).[`transitionId`](View.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateX`](View.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateY`](View.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`View`](View.md).[`verticalAlignment`](View.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`View`](View.md).[`viewController`](View.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`View`](View.md).[`visibility`](View.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionHoverStyle`](View.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionIgnoreHoverStyle`](View.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`width`](View.md#width) *** ### year ```ts year: number; ``` Defined in: [ui/date-picker/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L40) Gets or sets the year. #### Ns Property *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`View`](View.md).[`accessibilityBlurEvent`](View.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`View`](View.md).[`accessibilityFocusChangedEvent`](View.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`View`](View.md).[`accessibilityFocusEvent`](View.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`accessibilityPerformEscapeEvent`](View.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`View`](View.md).[`createdEvent`](View.md#createdevent) *** ### dateChangeEvent ```ts static dateChangeEvent: string; ``` Defined in: [ui/date-picker/index.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/date-picker/index.d.ts#L23) String value used when hooking to dateChange event. #### Ns Event dateChange *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`View`](View.md).[`disposeNativeViewEvent`](View.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`View`](View.md).[`layoutChangedEvent`](View.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`View`](View.md).[`loadedEvent`](View.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`View`](View.md).[`propertyChangeEvent`](View.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`View`](View.md).[`showingModallyEvent`](View.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`View`](View.md).[`unloadedEvent`](View.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundPosition`](View.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundRepeat`](View.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundSize`](View.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`class`](View.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingBottom`](View.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingLeft`](View.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingRight`](View.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingTop`](View.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`View`](View.md).[`isLoaded`](View.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`View`](View.md).[`nativeView`](View.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`View`](View.md).[`page`](View.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`parentNode`](View.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`style`](View.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`textTransform`](View.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`View`](View.md).[`typeName`](View.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](View.md).[`visualState`](View.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addView`](View.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addViewCore`](View.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_addViewToNativeVisualTree`](View.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`View`](View.md).[`_applyGlassEffect`](View.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`View`](View.md).[`_applyXmlAttribute`](View.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`View`](View.md).[`_batchUpdate`](View.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`_childIndexToNativeChildIndex`](View.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`View`](View.md).[`_closeAllModalViewsInternal`](View.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`View`](View.md).[`_createPropertyChangeData`](View.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_dialogClosed`](View.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_eachLayoutView`](View.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`_emit`](View.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`View`](View.md).[`_getRootModalViews`](View.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_getValue`](View.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_handleLivesync`](View.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_hasAncestorView`](View.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_hideNativeModalView`](View.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyles`](View.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyleScope`](View.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_layoutParent`](View.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_observe`](View.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onAttachedToWindow`](View.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onDetachedFromWindow`](View.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_onRootViewReset`](View.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`View`](View.md).[`_onSizeChanged`](View.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_parentChanged`](View.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseLayoutChangedEvent`](View.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShowingModallyEvent`](View.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShownModallyEvent`](View.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeView`](View.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewCore`](View.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewFromNativeVisualTree`](View.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_resumeNativeUpdates`](View.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setDefaultPaddings`](View.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupAsRootView`](View.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupUI`](View.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_setValue`](View.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`View`](View.md).[`_shouldDelayLayout`](View.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_showNativeModalView`](View.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_suspendNativeUpdates`](View.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_tearDownUI`](View.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`View`](View.md).[`_updateStyleScope`](View.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityAnnouncement`](View.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityScreenChanged`](View.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`View`](View.md).[`addPseudoClass`](View.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`View`](View.md).[`animate`](View.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`View`](View.md).[`bind`](View.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callLoaded`](View.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callUnloaded`](View.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`View`](View.md).[`closeModal`](View.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`View`](View.md).[`createAnimation`](View.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`View`](View.md).[`createNativeView`](View.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`View`](View.md).[`deletePseudoClass`](View.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`View`](View.md).[`destroyNode`](View.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`disposeNativeView`](View.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChild`](View.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChildView`](View.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`View`](View.md).[`ensureDomNode`](View.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`View`](View.md).[`focus`](View.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`View`](View.md).[`get`](View.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`View`](View.md).[`getActualSize`](View.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`View`](View.md).[`getClosestWindow`](View.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`View`](View.md).[`getEffectivePaddingShorthand`](View.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`View`](View.md).[`getGestureObservers`](View.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationInWindow`](View.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationOnScreen`](View.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationRelativeTo`](View.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredHeight`](View.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`View`](View.md).[`getSafeAreaInsets`](View.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewByDomId`](View.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewById`](View.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasGestureObservers`](View.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasListeners`](View.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`initNativeView`](View.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`layout`](View.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutNativeView`](View.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`View`](View.md).[`loadView`](View.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`View`](View.md).[`measure`](View.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`View`](View.md).[`notify`](View.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`notifyPropertyChange`](View.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`View`](View.md).[`off`](View.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`View`](View.md).[`onBackPressed`](View.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`View`](View.md).[`once`](View.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`onLayout`](View.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onLoaded`](View.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`View`](View.md).[`onMeasure`](View.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onResumeNativeUpdates`](View.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onUnloaded`](View.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`View`](View.md).[`requestLayout`](View.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`resetNativeView`](View.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`View`](View.md).[`sendAccessibilityEvent`](View.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`set`](View.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setAccessibilityIdentifier`](View.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setInlineStyle`](View.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`View`](View.md).[`setMeasuredDimension`](View.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setNativeView`](View.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`View`](View.md).[`setOnTouchListener`](View.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setProperty`](View.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`View`](View.md).[`showModal`](View.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`View`](View.md).[`toString`](View.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`unbind`](View.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`View`](View.md).[`unloadView`](View.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`View`](View.md).[`updateStatusBarStyle`](View.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`View`](View.md).[`combineMeasuredStates`](View.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutChild`](View.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`View`](View.md).[`measureChild`](View.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`off`](View.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`on`](View.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`once`](View.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`resolveSizeAndState`](View.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/DockLayout.md' description: >- A Layout that arranges its children at its outer edges, and allows its last child to take up the remaining space. --- Defined in: [ui/layouts/dock-layout/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/dock-layout/index.d.ts#L11) A Layout that arranges its children at its outer edges, and allows its last child to take up the remaining space. ## Ns View DockLayout ## Extends * [`LayoutBase`](LayoutBase.md) ## Constructors ### Constructor ```ts new DockLayout(): DockLayout; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `DockLayout` #### Inherited from [`LayoutBase`](LayoutBase.md).[`constructor`](LayoutBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`LayoutBase`](LayoutBase.md).[`_androidContentDescriptionUpdated`](LayoutBase.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_automaticallyAdjustsScrollViewInsets`](LayoutBase.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_closeModalCallback`](LayoutBase.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_context`](LayoutBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_cssState`](LayoutBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingBottom`](LayoutBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingLeft`](LayoutBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingRight`](LayoutBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingTop`](LayoutBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_domId`](LayoutBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_ignoreFlexMinWidthHeightReset`](LayoutBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isAddedToNativeVisualTree`](LayoutBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isPaddingRelative`](LayoutBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldBottom`](LayoutBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldLeft`](LayoutBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldRight`](LayoutBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldTop`](LayoutBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_styleScope`](LayoutBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_suspendNativeUpdatesCount`](LayoutBase.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityHidden`](LayoutBase.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityHint`](LayoutBase.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIdentifier`](LayoutBase.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLabel`](LayoutBase.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLanguage`](LayoutBase.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLiveRegion`](LayoutBase.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityMediaSession`](LayoutBase.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityRole`](LayoutBase.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityState`](LayoutBase.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityValue`](LayoutBase.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessible`](LayoutBase.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`alignSelf`](LayoutBase.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`LayoutBase`](LayoutBase.md).[`android`](LayoutBase.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidDynamicElevationOffset`](LayoutBase.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidElevation`](LayoutBase.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowEdge`](LayoutBase.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`background`](LayoutBase.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundColor`](LayoutBase.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundImage`](LayoutBase.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`bindingContext`](LayoutBase.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomColor`](LayoutBase.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomLeftRadius`](LayoutBase.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomRightRadius`](LayoutBase.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomWidth`](LayoutBase.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderColor`](LayoutBase.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderLeftColor`](LayoutBase.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderLeftWidth`](LayoutBase.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRadius`](LayoutBase.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRightColor`](LayoutBase.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRightWidth`](LayoutBase.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopColor`](LayoutBase.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopLeftRadius`](LayoutBase.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopRightRadius`](LayoutBase.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopWidth`](LayoutBase.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderWidth`](LayoutBase.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`boxShadow`](LayoutBase.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`className`](LayoutBase.md#classname) *** ### clipToBounds ```ts clipToBounds: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L106) Gets or sets a value indicating whether to clip the content of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`clipToBounds`](LayoutBase.md#cliptobounds) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`col`](LayoutBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`color`](LayoutBase.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`colSpan`](LayoutBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`column`](LayoutBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`columnSpan`](LayoutBase.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssType`](LayoutBase.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`defaultVisualState`](LayoutBase.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`direction`](LayoutBase.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`dock`](LayoutBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`domNode`](LayoutBase.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderBottomWidth`](LayoutBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderLeftWidth`](LayoutBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderRightWidth`](LayoutBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveHeight`](LayoutBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveLeft`](LayoutBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginBottom`](LayoutBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginLeft`](LayoutBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginRight`](LayoutBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinHeight`](LayoutBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveTop`](LayoutBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveWidth`](LayoutBase.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flex`](LayoutBase.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexFlow`](LayoutBase.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexGrow`](LayoutBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexShrink`](LayoutBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexWrapBefore`](LayoutBase.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`height`](LayoutBase.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`hidden`](LayoutBase.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`horizontalAlignment`](LayoutBase.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`id`](LayoutBase.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`LayoutBase`](LayoutBase.md).[`ios`](LayoutBase.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityAdjustsFontSize`](LayoutBase.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityMaxFontScale`](LayoutBase.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityMinFontScale`](LayoutBase.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosGlassEffect`](LayoutBase.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosIgnoreSafeArea`](LayoutBase.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosOverflowSafeArea`](LayoutBase.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosOverflowSafeAreaEnabled`](LayoutBase.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isCollapsed`](LayoutBase.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isEnabled`](LayoutBase.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`LayoutBase`](LayoutBase.md).[`isLayoutValid`](LayoutBase.md#islayoutvalid) *** ### isPassThroughParentEnabled ```ts isPassThroughParentEnabled: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L115) 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. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isPassThroughParentEnabled`](LayoutBase.md#ispassthroughparentenabled) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isUserInteractionEnabled`](LayoutBase.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`left`](LayoutBase.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`margin`](LayoutBase.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginBottom`](LayoutBase.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginLeft`](LayoutBase.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginRight`](LayoutBase.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minHeight`](LayoutBase.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`LayoutBase`](LayoutBase.md).[`mIsRootView`](LayoutBase.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`LayoutBase`](LayoutBase.md).[`modal`](LayoutBase.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeBackgroundState`](LayoutBase.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeViewProtected`](LayoutBase.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`opacity`](LayoutBase.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`order`](LayoutBase.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`originX`](LayoutBase.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`originY`](LayoutBase.md#originy) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/layouts/layout-base.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L71) Gets or sets padding style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`padding`](LayoutBase.md#padding) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L78) Specify the bottom padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingBottom`](LayoutBase.md#paddingbottom) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L85) Specify the left padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingLeft`](LayoutBase.md#paddingleft) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L92) Specify the right padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingRight`](LayoutBase.md#paddingright) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L99) Specify the top padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingTop`](LayoutBase.md#paddingtop) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`LayoutBase`](LayoutBase.md).[`parent`](LayoutBase.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`perspective`](LayoutBase.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`recycleNativeView`](LayoutBase.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`reusable`](LayoutBase.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotate`](LayoutBase.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotateX`](LayoutBase.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotateY`](LayoutBase.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`row`](LayoutBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rowSpan`](LayoutBase.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`scaleX`](LayoutBase.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`scaleY`](LayoutBase.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`sharedTransitionIgnore`](LayoutBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`sharedTransitionTag`](LayoutBase.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`statusBarStyle`](LayoutBase.md#statusbarstyle) *** ### stretchLastChild ```ts stretchLastChild: boolean; ``` Defined in: [ui/layouts/dock-layout/index.d.ts:28](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/dock-layout/index.d.ts#L28) Gets or sets a value that indicates whether the last child element within a DockLayout stretches to fill the remaining available space. The default value is true. #### Ns Property *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`testID`](LayoutBase.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`top`](LayoutBase.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchDelay`](LayoutBase.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`LayoutBase`](LayoutBase.md).[`transitionId`](LayoutBase.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`translateX`](LayoutBase.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`translateY`](LayoutBase.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`verticalAlignment`](LayoutBase.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`LayoutBase`](LayoutBase.md).[`viewController`](LayoutBase.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visibility`](LayoutBase.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visionHoverStyle`](LayoutBase.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visionIgnoreHoverStyle`](LayoutBase.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`width`](LayoutBase.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityBlurEvent`](LayoutBase.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityFocusChangedEvent`](LayoutBase.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityFocusEvent`](LayoutBase.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityPerformEscapeEvent`](LayoutBase.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`LayoutBase`](LayoutBase.md).[`createdEvent`](LayoutBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`LayoutBase`](LayoutBase.md).[`disposeNativeViewEvent`](LayoutBase.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutChangedEvent`](LayoutBase.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`LayoutBase`](LayoutBase.md).[`loadedEvent`](LayoutBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`LayoutBase`](LayoutBase.md).[`propertyChangeEvent`](LayoutBase.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`showingModallyEvent`](LayoutBase.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`shownModallyEvent`](LayoutBase.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`LayoutBase`](LayoutBase.md).[`unloadedEvent`](LayoutBase.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundPosition`](LayoutBase.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundRepeat`](LayoutBase.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundSize`](LayoutBase.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`class`](LayoutBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingBottom`](LayoutBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingLeft`](LayoutBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingRight`](LayoutBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingTop`](LayoutBase.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`isLoaded`](LayoutBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeView`](LayoutBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`page`](LayoutBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`parentNode`](LayoutBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`style`](LayoutBase.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`textTransform`](LayoutBase.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`typeName`](LayoutBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`visualState`](LayoutBase.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addView`](LayoutBase.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addViewCore`](LayoutBase.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addViewToNativeVisualTree`](LayoutBase.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_applyGlassEffect`](LayoutBase.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_applyXmlAttribute`](LayoutBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_batchUpdate`](LayoutBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_childIndexToNativeChildIndex`](LayoutBase.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_closeAllModalViewsInternal`](LayoutBase.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_createPropertyChangeData`](LayoutBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_dialogClosed`](LayoutBase.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_eachLayoutView`](LayoutBase.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_emit`](LayoutBase.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalViews`](LayoutBase.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getValue`](LayoutBase.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_handleLivesync`](LayoutBase.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_hasAncestorView`](LayoutBase.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_hideNativeModalView`](LayoutBase.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_inheritStyles`](LayoutBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_inheritStyleScope`](LayoutBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_layoutParent`](LayoutBase.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_observe`](LayoutBase.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onAttachedToWindow`](LayoutBase.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onDetachedFromWindow`](LayoutBase.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onRootViewReset`](LayoutBase.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onSizeChanged`](LayoutBase.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_parentChanged`](LayoutBase.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseLayoutChangedEvent`](LayoutBase.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseShowingModallyEvent`](LayoutBase.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseShownModallyEvent`](LayoutBase.md#raiseshownmodallyevent) *** ### \_registerLayoutChild() ```ts _registerLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L53) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_registerLayoutChild`](LayoutBase.md#registerlayoutchild) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeView`](LayoutBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeViewCore`](LayoutBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeViewFromNativeVisualTree`](LayoutBase.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_resumeNativeUpdates`](LayoutBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setDefaultPaddings`](LayoutBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setupAsRootView`](LayoutBase.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setupUI`](LayoutBase.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setValue`](LayoutBase.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_shouldDelayLayout`](LayoutBase.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_showNativeModalView`](LayoutBase.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_suspendNativeUpdates`](LayoutBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_tearDownUI`](LayoutBase.md#teardownui) *** ### \_unregisterLayoutChild() ```ts _unregisterLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L58) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_unregisterLayoutChild`](LayoutBase.md#unregisterlayoutchild) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_updateStyleScope`](LayoutBase.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityAnnouncement`](LayoutBase.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityScreenChanged`](LayoutBase.md#accessibilityscreenchanged) *** ### addChild() ```ts addChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L30) Adds the view to children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to be added to the end of the children array. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`addChild`](LayoutBase.md#addchild) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`addEventListener`](LayoutBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`LayoutBase`](LayoutBase.md).[`addPseudoClass`](LayoutBase.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`animate`](LayoutBase.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`bind`](LayoutBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`callLoaded`](LayoutBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`callUnloaded`](LayoutBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`closeModal`](LayoutBase.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`createAnimation`](LayoutBase.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`LayoutBase`](LayoutBase.md).[`createNativeView`](LayoutBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`LayoutBase`](LayoutBase.md).[`deletePseudoClass`](LayoutBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`LayoutBase`](LayoutBase.md).[`destroyNode`](LayoutBase.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`disposeNativeView`](LayoutBase.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachChild`](LayoutBase.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachChildView`](LayoutBase.md#eachchildview) *** ### eachLayoutChild() ```ts eachLayoutChild(callback: (child: View, isLast: boolean) => void): void; ``` Defined in: [ui/layouts/layout-base.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L64) Calls the callback for each child that should be laid out. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md), `isLast`: `boolean`) => `void` | The callback | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachLayoutChild`](LayoutBase.md#eachlayoutchild) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`ensureDomNode`](LayoutBase.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`focus`](LayoutBase.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`get`](LayoutBase.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getActualSize`](LayoutBase.md#getactualsize) *** ### getChildAt() ```ts getChildAt(index: number): View; ``` Defined in: [ui/layouts/layout-base.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L18) Returns the view at the specified position. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | The position at which to get the child from. | #### Returns [`View`](View.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildAt`](LayoutBase.md#getchildat) *** ### getChildIndex() ```ts getChildIndex(child: View): number; ``` Defined in: [ui/layouts/layout-base.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L24) Returns the position of the child view #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | The child view that we are looking for. | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildIndex`](LayoutBase.md#getchildindex) *** ### getChildrenCount() ```ts getChildrenCount(): number; ``` Defined in: [ui/layouts/layout-base.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L12) Returns the number of children in this Layout. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildrenCount`](LayoutBase.md#getchildrencount) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getClosestWindow`](LayoutBase.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getEffectivePaddingShorthand`](LayoutBase.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`LayoutBase`](LayoutBase.md).[`getGestureObservers`](LayoutBase.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationInWindow`](LayoutBase.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationOnScreen`](LayoutBase.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationRelativeTo`](LayoutBase.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredHeight`](LayoutBase.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getSafeAreaInsets`](LayoutBase.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getViewByDomId`](LayoutBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getViewById`](LayoutBase.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`hasGestureObservers`](LayoutBase.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`hasListeners`](LayoutBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`initNativeView`](LayoutBase.md#initnativeview) *** ### insertChild() ```ts insertChild(child: View, atIndex: number): boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L37) Inserts the view to children array at the specified index. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | - | | `atIndex` | `number` | The insertion index. | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`insertChild`](LayoutBase.md#insertchild) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layout`](LayoutBase.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutNativeView`](LayoutBase.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`loadView`](LayoutBase.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`measure`](LayoutBase.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`notify`](LayoutBase.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`notifyPropertyChange`](LayoutBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`off`](LayoutBase.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onBackPressed`](LayoutBase.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`once`](LayoutBase.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onLayout`](LayoutBase.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onLoaded`](LayoutBase.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onMeasure`](LayoutBase.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onResumeNativeUpdates`](LayoutBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onUnloaded`](LayoutBase.md#onunloaded) *** ### removeChild() ```ts removeChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L43) Removes the specified view from the children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to remove from the children array. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeChild`](LayoutBase.md#removechild) *** ### removeChildren() ```ts removeChildren(): void; ``` Defined in: [ui/layouts/layout-base.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L48) Removes all views in this layout. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeChildren`](LayoutBase.md#removechildren) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeEventListener`](LayoutBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`requestLayout`](LayoutBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`resetNativeView`](LayoutBase.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`LayoutBase`](LayoutBase.md).[`sendAccessibilityEvent`](LayoutBase.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`set`](LayoutBase.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setAccessibilityIdentifier`](LayoutBase.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setInlineStyle`](LayoutBase.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setMeasuredDimension`](LayoutBase.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setNativeView`](LayoutBase.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setOnTouchListener`](LayoutBase.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setProperty`](LayoutBase.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`showModal`](LayoutBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`toString`](LayoutBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`unbind`](LayoutBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`unloadView`](LayoutBase.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`updateStatusBarStyle`](LayoutBase.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`addEventListener`](LayoutBase.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`combineMeasuredStates`](LayoutBase.md#combinemeasuredstates) *** ### getDock() ```ts static getDock(view: View): DockType; ``` Defined in: [ui/layouts/dock-layout/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/dock-layout/index.d.ts#L15) Gets the value of the Dock property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns [`DockType`](../namespaces/CoreTypes/type-aliases/DockType.md) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutChild`](LayoutBase.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`LayoutBase`](LayoutBase.md).[`measureChild`](LayoutBase.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`off`](LayoutBase.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`once`](LayoutBase.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeEventListener`](LayoutBase.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`resolveSizeAndState`](LayoutBase.md#resolvesizeandstate) *** ### setDock() ```ts static setDock(view: View, value: DockType): void; ``` Defined in: [ui/layouts/dock-layout/index.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/dock-layout/index.d.ts#L20) Sets the value of the Dock property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | [`DockType`](../namespaces/CoreTypes/type-aliases/DockType.md) | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/EditableTextBase.md' description: Represents the base class for all editable text views. --- Defined in: [ui/editable-text-base/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L13) Represents the base class for all editable text views. ## Ns View EditableTextBase ## Extends * [`TextBase`](TextBase.md) ## Extended by * [`TextField`](TextField.md) * [`TextView`](TextView.md) ## Constructors ### Constructor ```ts new EditableTextBase(): EditableTextBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `EditableTextBase` #### Inherited from [`TextBase`](TextBase.md).[`constructor`](TextBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`TextBase`](TextBase.md).[`_androidContentDescriptionUpdated`](TextBase.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_automaticallyAdjustsScrollViewInsets`](TextBase.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`TextBase`](TextBase.md).[`_closeModalCallback`](TextBase.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_context`](TextBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_cssState`](TextBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingBottom`](TextBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingLeft`](TextBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingRight`](TextBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingTop`](TextBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_domId`](TextBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_ignoreFlexMinWidthHeightReset`](TextBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isAddedToNativeVisualTree`](TextBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isPaddingRelative`](TextBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isStyleScopeHost`](TextBase.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldBottom`](TextBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldLeft`](TextBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldRight`](TextBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldTop`](TextBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_styleScope`](TextBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`TextBase`](TextBase.md).[`_suspendNativeUpdatesCount`](TextBase.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityHidden`](TextBase.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityHint`](TextBase.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityIdentifier`](TextBase.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityIgnoresInvertColors`](TextBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityLabel`](TextBase.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityLanguage`](TextBase.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityLiveRegion`](TextBase.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityMediaSession`](TextBase.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityRole`](TextBase.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityState`](TextBase.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityValue`](TextBase.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessible`](TextBase.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`alignSelf`](TextBase.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`TextBase`](TextBase.md).[`android`](TextBase.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`androidDynamicElevationOffset`](TextBase.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`androidElevation`](TextBase.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`TextBase`](TextBase.md).[`androidOverflowEdge`](TextBase.md#androidoverflowedge) *** ### autocapitalizationType ```ts autocapitalizationType: AutocapitalizationInputType; ``` Defined in: [ui/editable-text-base/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L59) Gets or sets the autocapitalization type. #### Ns Property *** ### autocorrect ```ts autocorrect: boolean; ``` Defined in: [ui/editable-text-base/index.d.ts:80](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L80) Enables or disables autocorrection. #### Ns Property *** ### autofillType ```ts autofillType: string; ``` Defined in: [ui/editable-text-base/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L66) Gets or sets the autofill type. #### Ns Property *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`automationText`](TextBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`background`](TextBase.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`backgroundColor`](TextBase.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`backgroundImage`](TextBase.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`bindingContext`](TextBase.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomColor`](TextBase.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomLeftRadius`](TextBase.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomRightRadius`](TextBase.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomWidth`](TextBase.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderColor`](TextBase.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderLeftColor`](TextBase.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderLeftWidth`](TextBase.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderRadius`](TextBase.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderRightColor`](TextBase.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderRightWidth`](TextBase.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopColor`](TextBase.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopLeftRadius`](TextBase.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopRightRadius`](TextBase.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopWidth`](TextBase.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderWidth`](TextBase.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`boxShadow`](TextBase.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`className`](TextBase.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`col`](TextBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`color`](TextBase.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`colSpan`](TextBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`column`](TextBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`columnSpan`](TextBase.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`TextBase`](TextBase.md).[`cssClasses`](TextBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`TextBase`](TextBase.md).[`cssPseudoClasses`](TextBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`TextBase`](TextBase.md).[`cssType`](TextBase.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`defaultVisualState`](TextBase.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`direction`](TextBase.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`dock`](TextBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`domNode`](TextBase.md#domnode) *** ### editable ```ts editable: boolean; ``` Defined in: [ui/editable-text-base/index.d.ts:73](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L73) Gets or sets whether the instance is editable. #### Ns Property *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderBottomWidth`](TextBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderLeftWidth`](TextBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderRightWidth`](TextBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderTopWidth`](TextBase.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveHeight`](TextBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveLeft`](TextBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginBottom`](TextBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginLeft`](TextBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginRight`](TextBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginTop`](TextBase.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMinHeight`](TextBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMinWidth`](TextBase.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveTop`](TextBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveWidth`](TextBase.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flex`](TextBase.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexFlow`](TextBase.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexGrow`](TextBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexShrink`](TextBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexWrapBefore`](TextBase.md#flexwrapbefore) *** ### fontFamily ```ts fontFamily: string; ``` Defined in: [ui/text-base/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L40) Gets or sets font-family style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontFamily`](TextBase.md#fontfamily) *** ### fontSize ```ts fontSize: number; ``` Defined in: [ui/text-base/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L47) Gets or sets font-size style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontSize`](TextBase.md#fontsize) *** ### fontStyle ```ts fontStyle: FontStyleType; ``` Defined in: [ui/text-base/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L54) Gets or sets font-style style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontStyle`](TextBase.md#fontstyle) *** ### fontWeight ```ts fontWeight: FontWeightType; ``` Defined in: [ui/text-base/index.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L61) Gets or sets font-weight style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontWeight`](TextBase.md#fontweight) *** ### formattedText ```ts formattedText: FormattedString; ``` Defined in: [ui/text-base/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L33) Gets or sets a formatted string. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`formattedText`](TextBase.md#formattedtext) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`height`](TextBase.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`hidden`](TextBase.md#hidden) *** ### hint ```ts hint: string; ``` Defined in: [ui/editable-text-base/index.d.ts:87](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L87) Gets or sets the placeholder text. #### Ns Property *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`horizontalAlignment`](TextBase.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`id`](TextBase.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`ignoreTouchAnimation`](TextBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`TextBase`](TextBase.md).[`ios`](TextBase.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosAccessibilityAdjustsFontSize`](TextBase.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosAccessibilityMaxFontScale`](TextBase.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosAccessibilityMinFontScale`](TextBase.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosGlassEffect`](TextBase.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosIgnoreSafeArea`](TextBase.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosOverflowSafeArea`](TextBase.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosOverflowSafeAreaEnabled`](TextBase.md#iosoverflowsafeareaenabled) *** ### iosTextAnimation ```ts iosTextAnimation: boolean | "inherit"; ``` Defined in: [ui/text-base/index.d.ts:174](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L174) Specify wether the native text should be applied with or without animations #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosTextAnimation`](TextBase.md#iostextanimation) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`TextBase`](TextBase.md).[`isCollapsed`](TextBase.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`isEnabled`](TextBase.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`TextBase`](TextBase.md).[`isLayoutValid`](TextBase.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`isUserInteractionEnabled`](TextBase.md#isuserinteractionenabled) *** ### keyboardType ```ts keyboardType: KeyboardInputType; ``` Defined in: [ui/editable-text-base/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L38) Gets or sets the soft keyboard type. #### Ns Property *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`left`](TextBase.md#left) *** ### letterSpacing ```ts letterSpacing: number; ``` Defined in: [ui/text-base/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L68) Gets or sets letterSpace style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`letterSpacing`](TextBase.md#letterspacing) *** ### lineHeight ```ts lineHeight: number; ``` Defined in: [ui/text-base/index.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L75) Gets or sets lineHeight style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`lineHeight`](TextBase.md#lineheight) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`margin`](TextBase.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginBottom`](TextBase.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginLeft`](TextBase.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginRight`](TextBase.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginTop`](TextBase.md#margintop) *** ### maxLength ```ts maxLength: number; ``` Defined in: [ui/editable-text-base/index.d.ts:94](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L94) Limits input to a certain number of characters. #### Ns Property *** ### maxLines ```ts maxLines: number; ``` Defined in: [ui/text-base/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L132) Gets or sets white space style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`maxLines`](TextBase.md#maxlines) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`minHeight`](TextBase.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`minWidth`](TextBase.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`TextBase`](TextBase.md).[`mIsRootView`](TextBase.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`TextBase`](TextBase.md).[`modal`](TextBase.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`TextBase`](TextBase.md).[`nativeBackgroundState`](TextBase.md#nativebackgroundstate) *** ### nativeTextViewProtected ```ts readonly nativeTextViewProtected: any; ``` Defined in: [ui/text-base/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L19) Gets of the text widget. In some cases(android TextInputLayout) the TextView is made of 2 views: the layout and the text view So we need a different getter for the layout and text functions #### Inherited from [`TextBase`](TextBase.md).[`nativeTextViewProtected`](TextBase.md#nativetextviewprotected) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`TextBase`](TextBase.md).[`nativeViewProtected`](TextBase.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`opacity`](TextBase.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`order`](TextBase.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`originX`](TextBase.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`originY`](TextBase.md#originy) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/text-base/index.d.ts:139](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L139) Gets or sets padding style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`padding`](TextBase.md#padding) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/text-base/index.d.ts:146](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L146) Specify the bottom padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingBottom`](TextBase.md#paddingbottom) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/text-base/index.d.ts:153](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L153) Specify the left padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingLeft`](TextBase.md#paddingleft) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/text-base/index.d.ts:160](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L160) Specify the right padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingRight`](TextBase.md#paddingright) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/text-base/index.d.ts:167](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L167) Specify the top padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingTop`](TextBase.md#paddingtop) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`TextBase`](TextBase.md).[`parent`](TextBase.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`perspective`](TextBase.md#perspective) *** ### placeholderColor ```ts placeholderColor: Color; ``` Defined in: [ui/editable-text-base/index.d.ts:101](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L101) Gets or sets the color of the placeholder text #### Ns Property *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`recycleNativeView`](TextBase.md#recyclenativeview) *** ### returnKeyType ```ts returnKeyType: ReturnKeyButtonType; ``` Defined in: [ui/editable-text-base/index.d.ts:45](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L45) Gets or sets the soft keyboard return key flavor. #### Ns Property *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`reusable`](TextBase.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rotate`](TextBase.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rotateX`](TextBase.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rotateY`](TextBase.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`row`](TextBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rowSpan`](TextBase.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`scaleX`](TextBase.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`scaleY`](TextBase.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`sharedTransitionIgnore`](TextBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`sharedTransitionTag`](TextBase.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`statusBarStyle`](TextBase.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`testID`](TextBase.md#testid) *** ### text ```ts text: string; ``` Defined in: [ui/text-base/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L26) Gets or sets the text. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`text`](TextBase.md#text) *** ### textAlignment ```ts textAlignment: TextAlignmentType; ``` Defined in: [ui/text-base/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L82) Gets or sets text-alignment style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textAlignment`](TextBase.md#textalignment) *** ### textDecoration ```ts textDecoration: TextDecorationType; ``` Defined in: [ui/text-base/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L89) Gets or sets text decorations style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textDecoration`](TextBase.md#textdecoration) *** ### textOverflow ```ts textOverflow: TextOverflowType; ``` Defined in: [ui/text-base/index.d.ts:125](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L125) Gets or sets text-overflow style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textOverflow`](TextBase.md#textoverflow) *** ### textShadow ```ts textShadow: ShadowCSSValues; ``` Defined in: [ui/text-base/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L103) Gets or sets text shadow style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textShadow`](TextBase.md#textshadow) *** ### textStroke ```ts textStroke: StrokeCSSValues; ``` Defined in: [ui/text-base/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L111) Gets or sets text stroke style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textStroke`](TextBase.md#textstroke) *** ### textTransform ```ts textTransform: TextTransformType; ``` Defined in: [ui/text-base/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L96) Gets or sets text transform style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textTransform`](TextBase.md#texttransform) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`top`](TextBase.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`touchAnimation`](TextBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`touchDelay`](TextBase.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`TextBase`](TextBase.md).[`transitionId`](TextBase.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`translateX`](TextBase.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`translateY`](TextBase.md#translatey) *** ### updateTextTrigger ```ts updateTextTrigger: UpdateTextTriggerType; ``` Defined in: [ui/editable-text-base/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L52) Gets or sets a value indicating when the text property will be updated. #### Ns Property *** ### valueFormatter ```ts valueFormatter: (value: string) => string; ``` Defined in: [ui/editable-text-base/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L107) Format input values Note: useful for input masking/formatting #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | #### Returns `string` *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`verticalAlignment`](TextBase.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`TextBase`](TextBase.md).[`viewController`](TextBase.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`visibility`](TextBase.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`visionHoverStyle`](TextBase.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`visionIgnoreHoverStyle`](TextBase.md#visionignorehoverstyle) *** ### whiteSpace ```ts whiteSpace: WhiteSpaceType; ``` Defined in: [ui/text-base/index.d.ts:118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L118) Gets or sets white space style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`whiteSpace`](TextBase.md#whitespace) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`width`](TextBase.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`TextBase`](TextBase.md).[`accessibilityBlurEvent`](TextBase.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`TextBase`](TextBase.md).[`accessibilityFocusChangedEvent`](TextBase.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`TextBase`](TextBase.md).[`accessibilityFocusEvent`](TextBase.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`TextBase`](TextBase.md).[`accessibilityPerformEscapeEvent`](TextBase.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`TextBase`](TextBase.md).[`androidOverflowInsetEvent`](TextBase.md#androidoverflowinsetevent) *** ### blurEvent ```ts static blurEvent: string; ``` Defined in: [ui/editable-text-base/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L19) String value used when hooking to the blur event. #### Ns Event blurEvent *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`TextBase`](TextBase.md).[`createdEvent`](TextBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`TextBase`](TextBase.md).[`disposeNativeViewEvent`](TextBase.md#disposenativeviewevent) *** ### focusEvent ```ts static focusEvent: string; ``` Defined in: [ui/editable-text-base/index.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L25) String value used when hooking to the focus event. #### Ns Event focusEvent *** ### iosTextAnimationFallback ```ts static iosTextAnimationFallback: boolean; ``` Defined in: [ui/text-base/index.d.ts:179](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L179) The value used when the iosTextAnimation is set to 'inherit' #### Inherited from [`TextBase`](TextBase.md).[`iosTextAnimationFallback`](TextBase.md#iostextanimationfallback) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`TextBase`](TextBase.md).[`layoutChangedEvent`](TextBase.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`TextBase`](TextBase.md).[`loadedEvent`](TextBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`TextBase`](TextBase.md).[`propertyChangeEvent`](TextBase.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`TextBase`](TextBase.md).[`showingModallyEvent`](TextBase.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`TextBase`](TextBase.md).[`shownModallyEvent`](TextBase.md#shownmodallyevent) *** ### textChangeEvent ```ts static textChangeEvent: string; ``` Defined in: [ui/editable-text-base/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L31) String value used when hooking to the textChange event. #### Ns Event textChangeEvent *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`TextBase`](TextBase.md).[`unloadedEvent`](TextBase.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`backgroundPosition`](TextBase.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`backgroundRepeat`](TextBase.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`backgroundSize`](TextBase.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`class`](TextBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingBottom`](TextBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingLeft`](TextBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingRight`](TextBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingTop`](TextBase.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`isLoaded`](TextBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`nativeView`](TextBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`TextBase`](TextBase.md).[`page`](TextBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`parentNode`](TextBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`style`](TextBase.md#style) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`typeName`](TextBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`visualState`](TextBase.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_addView`](TextBase.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_addViewCore`](TextBase.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_addViewToNativeVisualTree`](TextBase.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`TextBase`](TextBase.md).[`_applyGlassEffect`](TextBase.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`TextBase`](TextBase.md).[`_applyXmlAttribute`](TextBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`TextBase`](TextBase.md).[`_batchUpdate`](TextBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`_childIndexToNativeChildIndex`](TextBase.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_closeAllModalViewsInternal`](TextBase.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`TextBase`](TextBase.md).[`_createPropertyChangeData`](TextBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_dialogClosed`](TextBase.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_eachLayoutView`](TextBase.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_emit`](TextBase.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`_getNativeViewsCount`](TextBase.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`TextBase`](TextBase.md).[`_getRootModalViews`](TextBase.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`TextBase`](TextBase.md).[`_getValue`](TextBase.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_handleLivesync`](TextBase.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_hasAncestorView`](TextBase.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_hideNativeModalView`](TextBase.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_inheritStyles`](TextBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_inheritStyleScope`](TextBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_layoutParent`](TextBase.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_observe`](TextBase.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onAttachedToWindow`](TextBase.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onDetachedFromWindow`](TextBase.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onRootViewReset`](TextBase.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onSizeChanged`](TextBase.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_parentChanged`](TextBase.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_raiseLayoutChangedEvent`](TextBase.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_raiseShowingModallyEvent`](TextBase.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_raiseShownModallyEvent`](TextBase.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_removeView`](TextBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_removeViewCore`](TextBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_removeViewFromNativeVisualTree`](TextBase.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_resumeNativeUpdates`](TextBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_setDefaultPaddings`](TextBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_setupAsRootView`](TextBase.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_setupUI`](TextBase.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`TextBase`](TextBase.md).[`_setValue`](TextBase.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_shouldDelayLayout`](TextBase.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_showNativeModalView`](TextBase.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_suspendNativeUpdates`](TextBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_tearDownUI`](TextBase.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_updateStyleScope`](TextBase.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`accessibilityAnnouncement`](TextBase.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`accessibilityScreenChanged`](TextBase.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`addEventListener`](TextBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`TextBase`](TextBase.md).[`addPseudoClass`](TextBase.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`TextBase`](TextBase.md).[`animate`](TextBase.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`bind`](TextBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`callLoaded`](TextBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`callUnloaded`](TextBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`closeModal`](TextBase.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`TextBase`](TextBase.md).[`createAnimation`](TextBase.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`TextBase`](TextBase.md).[`createNativeView`](TextBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`TextBase`](TextBase.md).[`deletePseudoClass`](TextBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`TextBase`](TextBase.md).[`destroyNode`](TextBase.md#destroynode) *** ### dismissSoftInput() ```ts dismissSoftInput(): void; ``` Defined in: [ui/editable-text-base/index.d.ts:112](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L112) Hides the soft input method, ususally a soft keyboard. #### Returns `void` *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`disposeNativeView`](TextBase.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`eachChild`](TextBase.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`eachChildView`](TextBase.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`TextBase`](TextBase.md).[`ensureDomNode`](TextBase.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`focus`](TextBase.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`TextBase`](TextBase.md).[`get`](TextBase.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`TextBase`](TextBase.md).[`getActualSize`](TextBase.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`TextBase`](TextBase.md).[`getClosestWindow`](TextBase.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`getEffectivePaddingShorthand`](TextBase.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`TextBase`](TextBase.md).[`getGestureObservers`](TextBase.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`TextBase`](TextBase.md).[`getLocationInWindow`](TextBase.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`TextBase`](TextBase.md).[`getLocationOnScreen`](TextBase.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`TextBase`](TextBase.md).[`getLocationRelativeTo`](TextBase.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredHeight`](TextBase.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredState`](TextBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredWidth`](TextBase.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`TextBase`](TextBase.md).[`getSafeAreaInsets`](TextBase.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`TextBase`](TextBase.md).[`getViewByDomId`](TextBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`TextBase`](TextBase.md).[`getViewById`](TextBase.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`hasGestureObservers`](TextBase.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`hasListeners`](TextBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`initNativeView`](TextBase.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`layout`](TextBase.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`layoutNativeView`](TextBase.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`loadView`](TextBase.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`measure`](TextBase.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`notify`](TextBase.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`notifyPropertyChange`](TextBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`TextBase`](TextBase.md).[`off`](TextBase.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`onBackPressed`](TextBase.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`once`](TextBase.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onLayout`](TextBase.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onLoaded`](TextBase.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onMeasure`](TextBase.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onResumeNativeUpdates`](TextBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onUnloaded`](TextBase.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`removeEventListener`](TextBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`requestLayout`](TextBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`resetNativeView`](TextBase.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`TextBase`](TextBase.md).[`sendAccessibilityEvent`](TextBase.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`set`](TextBase.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setAccessibilityIdentifier`](TextBase.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setInlineStyle`](TextBase.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setMeasuredDimension`](TextBase.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setNativeView`](TextBase.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setOnTouchListener`](TextBase.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setProperty`](TextBase.md#setproperty) *** ### setSelection() ```ts setSelection(start: number, stop?: number): any; ``` Defined in: [ui/editable-text-base/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/editable-text-base/index.d.ts#L124) Set the selection anchor to start and the selection edge to stop #### Parameters | Parameter | Type | | ------ | ------ | | `start` | `number` | | `stop?` | `number` | #### Returns `any` *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`TextBase`](TextBase.md).[`showModal`](TextBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`toString`](TextBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`unbind`](TextBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`unloadView`](TextBase.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`updateStatusBarStyle`](TextBase.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`addEventListener`](TextBase.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`combineMeasuredStates`](TextBase.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`layoutChild`](TextBase.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`TextBase`](TextBase.md).[`measureChild`](TextBase.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`off`](TextBase.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`once`](TextBase.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`removeEventListener`](TextBase.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`resolveSizeAndState`](TextBase.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/FadeTransition.md' --- Defined in: [ui/transition/fade-transition.d.ts:3](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/fade-transition.d.ts#L3) ## Extends * [`Transition`](Transition.md) ## Constructors ### Constructor ```ts new FadeTransition(duration?: number, nativeCurve?: any): FadeTransition; ``` Defined in: [ui/transition/index.d.ts:39](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L39) #### Parameters | Parameter | Type | | ------ | ------ | | `duration?` | `number` | | `nativeCurve?` | `any` | #### Returns `FadeTransition` #### Inherited from [`Transition`](Transition.md).[`constructor`](Transition.md#constructor) ## Properties ### id ```ts id: number; ``` Defined in: [ui/transition/index.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L23) #### Inherited from [`Transition`](Transition.md).[`id`](Transition.md#id) *** ### interactiveController? ```ts optional interactiveController?: any; ``` Defined in: [ui/transition/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L29) #### Inherited from [`Transition`](Transition.md).[`interactiveController`](Transition.md#interactivecontroller) *** ### name? ```ts optional name?: string; ``` Defined in: [ui/transition/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L27) (Optional) Provide a unique name to identify this transition #### Inherited from [`Transition`](Transition.md).[`name`](Transition.md#name) *** ### presented? ```ts optional presented?: any; ``` Defined in: [ui/transition/index.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L30) #### Inherited from [`Transition`](Transition.md).[`presented`](Transition.md#presented) *** ### presenting? ```ts optional presenting?: any; ``` Defined in: [ui/transition/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L31) #### Inherited from [`Transition`](Transition.md).[`presenting`](Transition.md#presenting) *** ### sharedElements? ```ts optional sharedElements?: { independent?: SharedElementSettings & { isPresented?: boolean; }[]; presented?: SharedElementSettings[]; presenting?: SharedElementSettings[]; }; ``` Defined in: [ui/transition/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L32) #### independent? ```ts optional independent?: SharedElementSettings & { isPresented?: boolean; }[]; ``` #### presented? ```ts optional presented?: SharedElementSettings[]; ``` #### presenting? ```ts optional presenting?: SharedElementSettings[]; ``` #### Inherited from [`Transition`](Transition.md).[`sharedElements`](Transition.md#sharedelements) *** ### transitionController? ```ts optional transitionController?: any; ``` Defined in: [ui/transition/index.d.ts:28](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L28) #### Inherited from [`Transition`](Transition.md).[`transitionController`](Transition.md#transitioncontroller) *** ### AndroidTransitionType? ```ts static optional AndroidTransitionType?: { enter?: string; exit?: string; popEnter?: string; popExit?: string; }; ``` Defined in: [ui/transition/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L38) #### enter? ```ts optional enter?: string; ``` #### exit? ```ts optional exit?: string; ``` #### popEnter? ```ts optional popEnter?: string; ``` #### popExit? ```ts optional popExit?: string; ``` #### Inherited from [`Transition`](Transition.md).[`AndroidTransitionType`](Transition.md#androidtransitiontype) ## Methods ### androidFragmentTransactionCallback()? ```ts optional androidFragmentTransactionCallback( fragmentTransaction: any, currentEntry: BackstackEntry, newEntry: BackstackEntry): void; ``` Defined in: [ui/transition/index.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L58) #### Parameters | Parameter | Type | | ------ | ------ | | `fragmentTransaction` | `any` | | `currentEntry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | | `newEntry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`androidFragmentTransactionCallback`](Transition.md#androidfragmenttransactioncallback) *** ### animateIOSTransition() ```ts animateIOSTransition( transitionContext: any, fromViewCtrl: any, toViewCtrl: any, operation: any): void; ``` Defined in: [ui/transition/index.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L43) #### Parameters | Parameter | Type | | ------ | ------ | | `transitionContext` | `any` | | `fromViewCtrl` | `any` | | `toViewCtrl` | `any` | | `operation` | `any` | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`animateIOSTransition`](Transition.md#animateiostransition) *** ### createAndroidAnimator() ```ts createAndroidAnimator(transitionType: string): any; ``` Defined in: [ui/transition/index.d.ts:44](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L44) #### Parameters | Parameter | Type | | ------ | ------ | | `transitionType` | `string` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`createAndroidAnimator`](Transition.md#createandroidanimator) *** ### getCurve() ```ts getCurve(): any; ``` Defined in: [ui/transition/index.d.ts:42](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L42) #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`getCurve`](Transition.md#getcurve) *** ### getDuration() ```ts getDuration(): number; ``` Defined in: [ui/transition/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L40) #### Returns `number` #### Inherited from [`Transition`](Transition.md).[`getDuration`](Transition.md#getduration) *** ### iosDismissedController()? ```ts optional iosDismissedController(dismissed: any): any; ``` Defined in: [ui/transition/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L48) #### Parameters | Parameter | Type | | ------ | ------ | | `dismissed` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosDismissedController`](Transition.md#iosdismissedcontroller) *** ### iosInteractionDismiss()? ```ts optional iosInteractionDismiss(animator: any): any; ``` Defined in: [ui/transition/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L52) #### Parameters | Parameter | Type | | ------ | ------ | | `animator` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosInteractionDismiss`](Transition.md#iosinteractiondismiss) *** ### iosInteractionPresented()? ```ts optional iosInteractionPresented(animator: any): any; ``` Defined in: [ui/transition/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L54) #### Parameters | Parameter | Type | | ------ | ------ | | `animator` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosInteractionPresented`](Transition.md#iosinteractionpresented) *** ### iosNavigatedController()? ```ts optional iosNavigatedController( navigationController: any, operation: number, fromVC: any, toVC: any): any; ``` Defined in: [ui/transition/index.d.ts:56](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L56) #### Parameters | Parameter | Type | | ------ | ------ | | `navigationController` | `any` | | `operation` | `number` | | `fromVC` | `any` | | `toVC` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosNavigatedController`](Transition.md#iosnavigatedcontroller) *** ### iosPresentedController()? ```ts optional iosPresentedController( presented: any, presenting: any, source: any): any; ``` Defined in: [ui/transition/index.d.ts:50](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L50) #### Parameters | Parameter | Type | | ------ | ------ | | `presented` | `any` | | `presenting` | `any` | | `source` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosPresentedController`](Transition.md#iospresentedcontroller) *** ### setDuration() ```ts setDuration(value: number): void; ``` Defined in: [ui/transition/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L41) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`setDuration`](Transition.md#setduration) *** ### setupInteractiveGesture()? ```ts optional setupInteractiveGesture(startCallback: () => void, view: View): void; ``` Defined in: [ui/transition/index.d.ts:46](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L46) #### Parameters | Parameter | Type | | ------ | ------ | | `startCallback` | () => `void` | | `view` | [`View`](View.md) | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`setupInteractiveGesture`](Transition.md#setupinteractivegesture) --- --- url: 'https://docs.nativescript.org/api/classes/File.md' description: Represents a File entity on the file system. --- Defined in: [file-system/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L89) Represents a File entity on the file system. ## Extends * [`FileSystemEntity`](FileSystemEntity.md) ## Constructors ### Constructor ```ts new File(): File; ``` #### Returns `File` #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`constructor`](FileSystemEntity.md#constructor) ## Properties ### extension ```ts extension: string; ``` Defined in: [file-system/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L103) Gets the extension of the file. *** ### isLocked ```ts isLocked: boolean; ``` Defined in: [file-system/index.d.ts:113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L113) Gets a value indicating whether the file is currently locked, meaning a background operation associated with this file is running. *** ### lastModified ```ts lastModified: Date; ``` Defined in: [file-system/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L31) Gets the Date object specifying the last time this entity was modified. #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`lastModified`](FileSystemEntity.md#lastmodified) *** ### name ```ts name: string; ``` Defined in: [file-system/index.d.ts:36](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L36) Gets the name of the entity. #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`name`](FileSystemEntity.md#name) *** ### parent ```ts parent: Folder; ``` Defined in: [file-system/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L48) Gets the Folder object representing the parent of this entity. Will be null for a root folder like Documents or Temporary. This property is readonly. #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`parent`](FileSystemEntity.md#parent) *** ### path ```ts path: string; ``` Defined in: [file-system/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L41) Gets the fully-qualified path (including the extension for a File) of the entity. #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`path`](FileSystemEntity.md#path) *** ### size ```ts size: number; ``` Defined in: [file-system/index.d.ts:108](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L108) Gets the size in bytes of the file. *** ### android ```ts readonly static android: Android; ``` Defined in: [file-system/index.d.ts:90](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L90) *** ### ios ```ts readonly static ios: iOS; ``` Defined in: [file-system/index.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L92) ## Methods ### append() ```ts append(content: any): Promise; ``` Defined in: [file-system/index.d.ts:134](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L134) Appends the provided binary content to the file. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `content` | `any` | The binary content to be saved to the file. | #### Returns `Promise`<`void`> *** ### appendSync() ```ts appendSync(content: any, onError?: (error: any) => any): void; ``` Defined in: [file-system/index.d.ts:141](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L141) Appends the provided binary content to the file synchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `content` | `any` | The binary content to be saved to the file. | | `onError?` | (`error`: `any`) => `any` | An optional function to be called if some IO-error occurs. | #### Returns `void` *** ### appendText() ```ts appendText(content: string, encoding?: string): Promise; ``` Defined in: [file-system/index.d.ts:120](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L120) Appends the provided string to the file, using the specified encoding (defaults to UTF-8). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `content` | `string` | The content to be saved to the file. | | `encoding?` | `string` | An optional value specifying the preferred encoding (defaults to UTF-8). | #### Returns `Promise`<`any`> *** ### appendTextSync() ```ts appendTextSync( content: string, onError?: (error: any) => any, encoding?: string): void; ``` Defined in: [file-system/index.d.ts:128](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L128) Appends the provided string to the file synchronously, using the specified encoding (defaults to UTF-8). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `content` | `string` | The content to be saved to the file. | | `onError?` | (`error`: `any`) => `any` | An optional function to be called if some IO-error occurs. | | `encoding?` | `string` | An optional value specifying the preferred encoding (defaults to UTF-8). | #### Returns `void` *** ### copy() ```ts copy(dest: string): Promise; ``` Defined in: [file-system/index.d.ts:148](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L148) Copies a file to a given path. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `dest` | `string` | The path to the destination file. Returns a Promise with a boolean. | #### Returns `Promise`<`boolean`> *** ### copySync() ```ts copySync(dest: string, onError?: (error: any) => any): any; ``` Defined in: [file-system/index.d.ts:156](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L156) Copies a file to a given path. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `dest` | `string` | The path to the destination file. | | `onError?` | (`error`: `any`) => `any` | (optional) A callback function to use if any error occurs. Returns a Promise with a boolean. | #### Returns `any` *** ### read() ```ts read(): Promise; ``` Defined in: [file-system/index.d.ts:181](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L181) Reads the binary content of the file asynchronously. #### Returns `Promise`<`any`> *** ### readSync() ```ts readSync(onError?: (error: any) => any): any; ``` Defined in: [file-system/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L187) Reads the binary content of the file synchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `onError?` | (`error`: `any`) => `any` | An optional function to be called if some IO-error occurs. | #### Returns `any` *** ### readText() ```ts readText(encoding?: string): Promise; ``` Defined in: [file-system/index.d.ts:169](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L169) Reads the content of the file as a string using the specified encoding (defaults to UTF-8). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `encoding?` | `string` | An optional value specifying the preferred encoding (defaults to UTF-8). | #### Returns `Promise`<`string`> *** ### readTextSync() ```ts readTextSync(onError?: (error: any) => any, encoding?: string): string; ``` Defined in: [file-system/index.d.ts:176](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L176) Reads the content of the file as a string synchronously, using the specified encoding (defaults to UTF-8). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `onError?` | (`error`: `any`) => `any` | An optional function to be called if some IO-error occurs. | | `encoding?` | `string` | An optional value specifying the preferred encoding (defaults to UTF-8). | #### Returns `string` *** ### remove() ```ts remove(): Promise; ``` Defined in: [file-system/index.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L53) Removes (deletes) the current Entity from the file system. #### Returns `Promise`<`any`> #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`remove`](FileSystemEntity.md#remove) *** ### removeSync() ```ts removeSync(onError?: (error: any) => any): void; ``` Defined in: [file-system/index.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L58) Removes (deletes) the current Entity from the file system synchronously. #### Parameters | Parameter | Type | | ------ | ------ | | `onError?` | (`error`: `any`) => `any` | #### Returns `void` #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`removeSync`](FileSystemEntity.md#removesync) *** ### rename() ```ts rename(newName: string): Promise; ``` Defined in: [file-system/index.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L64) Renames the current entity using the specified name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `newName` | `string` | The new name to be applied to the entity. | #### Returns `Promise`<`any`> #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`rename`](FileSystemEntity.md#rename) *** ### renameSync() ```ts renameSync(newName: string, onError?: (error: any) => any): void; ``` Defined in: [file-system/index.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L70) Renames the current entity synchronously, using the specified name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `newName` | `string` | The new name to be applied to the entity. | | `onError?` | (`error`: `any`) => `any` | - | #### Returns `void` #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`renameSync`](FileSystemEntity.md#renamesync) *** ### write() ```ts write(content: any): Promise; ``` Defined in: [file-system/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L208) Writes the provided binary content to the file. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `content` | `any` | The binary content to be saved to the file. | #### Returns `Promise`<`void`> *** ### writeSync() ```ts writeSync(content: any, onError?: (error: any) => any): void; ``` Defined in: [file-system/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L215) Writes the provided binary content to the file synchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `content` | `any` | The binary content to be saved to the file. | | `onError?` | (`error`: `any`) => `any` | An optional function to be called if some IO-error occurs. | #### Returns `void` *** ### writeText() ```ts writeText(content: string, encoding?: string): Promise; ``` Defined in: [file-system/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L194) Writes the provided string to the file, using the specified encoding (defaults to UTF-8). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `content` | `string` | The content to be saved to the file. | | `encoding?` | `string` | An optional value specifying the preferred encoding (defaults to UTF-8). | #### Returns `Promise`<`any`> *** ### writeTextSync() ```ts writeTextSync( content: string, onError?: (error: any) => any, encoding?: string): void; ``` Defined in: [file-system/index.d.ts:202](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L202) Writes the provided string to the file synchronously, using the specified encoding (defaults to UTF-8). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `content` | `string` | The content to be saved to the file. | | `onError?` | (`error`: `any`) => `any` | An optional function to be called if some IO-error occurs. | | `encoding?` | `string` | An optional value specifying the preferred encoding (defaults to UTF-8). | #### Returns `void` *** ### exists() ```ts static exists(path: string): boolean; ``` Defined in: [file-system/index.d.ts:98](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L98) Checks whether a File with the specified path already exists. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The path to check for. | #### Returns `boolean` *** ### fromPath() ```ts static fromPath(path: string, copy?: boolean): File; ``` Defined in: [file-system/index.d.ts:163](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L163) Gets or creates a File entity at the specified path. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The path to get/create the file at. | | `copy?` | `boolean` | An optional value when set, copies the content-uri to a temp file enabling the legacy behaviour | #### Returns `File` --- --- url: 'https://docs.nativescript.org/api/classes/FileSystemEntity.md' description: Represents a single entity on the file system. --- Defined in: [file-system/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L27) Represents a single entity on the file system. ## Extended by * [`File`](File.md) * [`Folder`](Folder.md) ## Constructors ### Constructor ```ts new FileSystemEntity(): FileSystemEntity; ``` #### Returns `FileSystemEntity` ## Properties ### lastModified ```ts lastModified: Date; ``` Defined in: [file-system/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L31) Gets the Date object specifying the last time this entity was modified. *** ### name ```ts name: string; ``` Defined in: [file-system/index.d.ts:36](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L36) Gets the name of the entity. *** ### parent ```ts parent: Folder; ``` Defined in: [file-system/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L48) Gets the Folder object representing the parent of this entity. Will be null for a root folder like Documents or Temporary. This property is readonly. *** ### path ```ts path: string; ``` Defined in: [file-system/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L41) Gets the fully-qualified path (including the extension for a File) of the entity. ## Methods ### remove() ```ts remove(): Promise; ``` Defined in: [file-system/index.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L53) Removes (deletes) the current Entity from the file system. #### Returns `Promise`<`any`> *** ### removeSync() ```ts removeSync(onError?: (error: any) => any): void; ``` Defined in: [file-system/index.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L58) Removes (deletes) the current Entity from the file system synchronously. #### Parameters | Parameter | Type | | ------ | ------ | | `onError?` | (`error`: `any`) => `any` | #### Returns `void` *** ### rename() ```ts rename(newName: string): Promise; ``` Defined in: [file-system/index.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L64) Renames the current entity using the specified name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `newName` | `string` | The new name to be applied to the entity. | #### Returns `Promise`<`any`> *** ### renameSync() ```ts renameSync(newName: string, onError?: (error: any) => any): void; ``` Defined in: [file-system/index.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L70) Renames the current entity synchronously, using the specified name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `newName` | `string` | The new name to be applied to the entity. | | `onError?` | (`error`: `any`) => `any` | - | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/FlexboxLayout.md' --- Defined in: [ui/layouts/flexbox-layout/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L40) ## Ns View FlexboxLayout ## Extends * [`LayoutBase`](LayoutBase.md) ## Constructors ### Constructor ```ts new FlexboxLayout(): FlexboxLayout; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `FlexboxLayout` #### Inherited from [`LayoutBase`](LayoutBase.md).[`constructor`](LayoutBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`LayoutBase`](LayoutBase.md).[`_androidContentDescriptionUpdated`](LayoutBase.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_automaticallyAdjustsScrollViewInsets`](LayoutBase.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_closeModalCallback`](LayoutBase.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_context`](LayoutBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_cssState`](LayoutBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingBottom`](LayoutBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingLeft`](LayoutBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingRight`](LayoutBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingTop`](LayoutBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_domId`](LayoutBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_ignoreFlexMinWidthHeightReset`](LayoutBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isAddedToNativeVisualTree`](LayoutBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isPaddingRelative`](LayoutBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldBottom`](LayoutBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldLeft`](LayoutBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldRight`](LayoutBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldTop`](LayoutBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_styleScope`](LayoutBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_suspendNativeUpdatesCount`](LayoutBase.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityHidden`](LayoutBase.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityHint`](LayoutBase.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIdentifier`](LayoutBase.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLabel`](LayoutBase.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLanguage`](LayoutBase.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLiveRegion`](LayoutBase.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityMediaSession`](LayoutBase.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityRole`](LayoutBase.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityState`](LayoutBase.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityValue`](LayoutBase.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessible`](LayoutBase.md#accessible) *** ### alignContent ```ts alignContent: AlignContent; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L70) Gets or sets alignment of items along the cross axis #### Ns Property *** ### alignItems ```ts alignItems: AlignItems; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L64) Gets or sets alignment of the childern on cross axis #### Ns Property *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`alignSelf`](LayoutBase.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`LayoutBase`](LayoutBase.md).[`android`](LayoutBase.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidDynamicElevationOffset`](LayoutBase.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidElevation`](LayoutBase.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowEdge`](LayoutBase.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`background`](LayoutBase.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundColor`](LayoutBase.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundImage`](LayoutBase.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`bindingContext`](LayoutBase.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomColor`](LayoutBase.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomLeftRadius`](LayoutBase.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomRightRadius`](LayoutBase.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomWidth`](LayoutBase.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderColor`](LayoutBase.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderLeftColor`](LayoutBase.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderLeftWidth`](LayoutBase.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRadius`](LayoutBase.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRightColor`](LayoutBase.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRightWidth`](LayoutBase.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopColor`](LayoutBase.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopLeftRadius`](LayoutBase.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopRightRadius`](LayoutBase.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopWidth`](LayoutBase.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderWidth`](LayoutBase.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`boxShadow`](LayoutBase.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`className`](LayoutBase.md#classname) *** ### clipToBounds ```ts clipToBounds: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L106) Gets or sets a value indicating whether to clip the content of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`clipToBounds`](LayoutBase.md#cliptobounds) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`col`](LayoutBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`color`](LayoutBase.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`colSpan`](LayoutBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`column`](LayoutBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`columnSpan`](LayoutBase.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssType`](LayoutBase.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`defaultVisualState`](LayoutBase.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`direction`](LayoutBase.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`dock`](LayoutBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`domNode`](LayoutBase.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderBottomWidth`](LayoutBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderLeftWidth`](LayoutBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderRightWidth`](LayoutBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveHeight`](LayoutBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveLeft`](LayoutBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginBottom`](LayoutBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginLeft`](LayoutBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginRight`](LayoutBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinHeight`](LayoutBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveTop`](LayoutBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveWidth`](LayoutBase.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flex`](LayoutBase.md#flex) *** ### flexDirection ```ts flexDirection: FlexDirection; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:46](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L46) Gets or set the direction of childern on the main axis. #### Ns Property *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexFlow`](LayoutBase.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexGrow`](LayoutBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexShrink`](LayoutBase.md#flexshrink) *** ### flexWrap ```ts flexWrap: FlexWrap; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L52) Gets or sets whether children can wrap into multiple lines #### Ns Property *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexWrapBefore`](LayoutBase.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`height`](LayoutBase.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`hidden`](LayoutBase.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`horizontalAlignment`](LayoutBase.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`id`](LayoutBase.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`LayoutBase`](LayoutBase.md).[`ios`](LayoutBase.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityAdjustsFontSize`](LayoutBase.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityMaxFontScale`](LayoutBase.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityMinFontScale`](LayoutBase.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosGlassEffect`](LayoutBase.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosIgnoreSafeArea`](LayoutBase.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosOverflowSafeArea`](LayoutBase.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosOverflowSafeAreaEnabled`](LayoutBase.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isCollapsed`](LayoutBase.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isEnabled`](LayoutBase.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`LayoutBase`](LayoutBase.md).[`isLayoutValid`](LayoutBase.md#islayoutvalid) *** ### isPassThroughParentEnabled ```ts isPassThroughParentEnabled: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L115) 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. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isPassThroughParentEnabled`](LayoutBase.md#ispassthroughparentenabled) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isUserInteractionEnabled`](LayoutBase.md#isuserinteractionenabled) *** ### justifyContent ```ts justifyContent: JustifyContent; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L58) Gets or sets alignment of childern on the main axis #### Ns Property *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`left`](LayoutBase.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`margin`](LayoutBase.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginBottom`](LayoutBase.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginLeft`](LayoutBase.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginRight`](LayoutBase.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minHeight`](LayoutBase.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`LayoutBase`](LayoutBase.md).[`mIsRootView`](LayoutBase.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`LayoutBase`](LayoutBase.md).[`modal`](LayoutBase.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeBackgroundState`](LayoutBase.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeViewProtected`](LayoutBase.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`opacity`](LayoutBase.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`order`](LayoutBase.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`originX`](LayoutBase.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`originY`](LayoutBase.md#originy) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/layouts/layout-base.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L71) Gets or sets padding style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`padding`](LayoutBase.md#padding) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L78) Specify the bottom padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingBottom`](LayoutBase.md#paddingbottom) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L85) Specify the left padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingLeft`](LayoutBase.md#paddingleft) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L92) Specify the right padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingRight`](LayoutBase.md#paddingright) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L99) Specify the top padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingTop`](LayoutBase.md#paddingtop) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`LayoutBase`](LayoutBase.md).[`parent`](LayoutBase.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`perspective`](LayoutBase.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`recycleNativeView`](LayoutBase.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`reusable`](LayoutBase.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotate`](LayoutBase.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotateX`](LayoutBase.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotateY`](LayoutBase.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`row`](LayoutBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rowSpan`](LayoutBase.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`scaleX`](LayoutBase.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`scaleY`](LayoutBase.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`sharedTransitionIgnore`](LayoutBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`sharedTransitionTag`](LayoutBase.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`statusBarStyle`](LayoutBase.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`testID`](LayoutBase.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`top`](LayoutBase.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchDelay`](LayoutBase.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`LayoutBase`](LayoutBase.md).[`transitionId`](LayoutBase.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`translateX`](LayoutBase.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`translateY`](LayoutBase.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`verticalAlignment`](LayoutBase.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`LayoutBase`](LayoutBase.md).[`viewController`](LayoutBase.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visibility`](LayoutBase.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visionHoverStyle`](LayoutBase.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visionIgnoreHoverStyle`](LayoutBase.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`width`](LayoutBase.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityBlurEvent`](LayoutBase.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityFocusChangedEvent`](LayoutBase.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityFocusEvent`](LayoutBase.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityPerformEscapeEvent`](LayoutBase.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`LayoutBase`](LayoutBase.md).[`createdEvent`](LayoutBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`LayoutBase`](LayoutBase.md).[`disposeNativeViewEvent`](LayoutBase.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutChangedEvent`](LayoutBase.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`LayoutBase`](LayoutBase.md).[`loadedEvent`](LayoutBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`LayoutBase`](LayoutBase.md).[`propertyChangeEvent`](LayoutBase.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`showingModallyEvent`](LayoutBase.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`shownModallyEvent`](LayoutBase.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`LayoutBase`](LayoutBase.md).[`unloadedEvent`](LayoutBase.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundPosition`](LayoutBase.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundRepeat`](LayoutBase.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundSize`](LayoutBase.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`class`](LayoutBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingBottom`](LayoutBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingLeft`](LayoutBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingRight`](LayoutBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingTop`](LayoutBase.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`isLoaded`](LayoutBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeView`](LayoutBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`page`](LayoutBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`parentNode`](LayoutBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`style`](LayoutBase.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`textTransform`](LayoutBase.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`typeName`](LayoutBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`visualState`](LayoutBase.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addView`](LayoutBase.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addViewCore`](LayoutBase.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addViewToNativeVisualTree`](LayoutBase.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_applyGlassEffect`](LayoutBase.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_applyXmlAttribute`](LayoutBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_batchUpdate`](LayoutBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_childIndexToNativeChildIndex`](LayoutBase.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_closeAllModalViewsInternal`](LayoutBase.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_createPropertyChangeData`](LayoutBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_dialogClosed`](LayoutBase.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_eachLayoutView`](LayoutBase.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_emit`](LayoutBase.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalViews`](LayoutBase.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getValue`](LayoutBase.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_handleLivesync`](LayoutBase.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_hasAncestorView`](LayoutBase.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_hideNativeModalView`](LayoutBase.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_inheritStyles`](LayoutBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_inheritStyleScope`](LayoutBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_layoutParent`](LayoutBase.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_observe`](LayoutBase.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onAttachedToWindow`](LayoutBase.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onDetachedFromWindow`](LayoutBase.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onRootViewReset`](LayoutBase.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onSizeChanged`](LayoutBase.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_parentChanged`](LayoutBase.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseLayoutChangedEvent`](LayoutBase.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseShowingModallyEvent`](LayoutBase.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseShownModallyEvent`](LayoutBase.md#raiseshownmodallyevent) *** ### \_registerLayoutChild() ```ts _registerLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L53) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_registerLayoutChild`](LayoutBase.md#registerlayoutchild) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeView`](LayoutBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeViewCore`](LayoutBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeViewFromNativeVisualTree`](LayoutBase.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_resumeNativeUpdates`](LayoutBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setDefaultPaddings`](LayoutBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setupAsRootView`](LayoutBase.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setupUI`](LayoutBase.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setValue`](LayoutBase.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_shouldDelayLayout`](LayoutBase.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_showNativeModalView`](LayoutBase.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_suspendNativeUpdates`](LayoutBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_tearDownUI`](LayoutBase.md#teardownui) *** ### \_unregisterLayoutChild() ```ts _unregisterLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L58) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_unregisterLayoutChild`](LayoutBase.md#unregisterlayoutchild) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_updateStyleScope`](LayoutBase.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityAnnouncement`](LayoutBase.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityScreenChanged`](LayoutBase.md#accessibilityscreenchanged) *** ### addChild() ```ts addChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L30) Adds the view to children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to be added to the end of the children array. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`addChild`](LayoutBase.md#addchild) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`addEventListener`](LayoutBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`LayoutBase`](LayoutBase.md).[`addPseudoClass`](LayoutBase.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`animate`](LayoutBase.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`bind`](LayoutBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`callLoaded`](LayoutBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`callUnloaded`](LayoutBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`closeModal`](LayoutBase.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`createAnimation`](LayoutBase.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`LayoutBase`](LayoutBase.md).[`createNativeView`](LayoutBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`LayoutBase`](LayoutBase.md).[`deletePseudoClass`](LayoutBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`LayoutBase`](LayoutBase.md).[`destroyNode`](LayoutBase.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`disposeNativeView`](LayoutBase.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachChild`](LayoutBase.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachChildView`](LayoutBase.md#eachchildview) *** ### eachLayoutChild() ```ts eachLayoutChild(callback: (child: View, isLast: boolean) => void): void; ``` Defined in: [ui/layouts/layout-base.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L64) Calls the callback for each child that should be laid out. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md), `isLast`: `boolean`) => `void` | The callback | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachLayoutChild`](LayoutBase.md#eachlayoutchild) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`ensureDomNode`](LayoutBase.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`focus`](LayoutBase.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`get`](LayoutBase.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getActualSize`](LayoutBase.md#getactualsize) *** ### getChildAt() ```ts getChildAt(index: number): View; ``` Defined in: [ui/layouts/layout-base.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L18) Returns the view at the specified position. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | The position at which to get the child from. | #### Returns [`View`](View.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildAt`](LayoutBase.md#getchildat) *** ### getChildIndex() ```ts getChildIndex(child: View): number; ``` Defined in: [ui/layouts/layout-base.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L24) Returns the position of the child view #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | The child view that we are looking for. | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildIndex`](LayoutBase.md#getchildindex) *** ### getChildrenCount() ```ts getChildrenCount(): number; ``` Defined in: [ui/layouts/layout-base.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L12) Returns the number of children in this Layout. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildrenCount`](LayoutBase.md#getchildrencount) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getClosestWindow`](LayoutBase.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getEffectivePaddingShorthand`](LayoutBase.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`LayoutBase`](LayoutBase.md).[`getGestureObservers`](LayoutBase.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationInWindow`](LayoutBase.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationOnScreen`](LayoutBase.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationRelativeTo`](LayoutBase.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredHeight`](LayoutBase.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getSafeAreaInsets`](LayoutBase.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getViewByDomId`](LayoutBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getViewById`](LayoutBase.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`hasGestureObservers`](LayoutBase.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`hasListeners`](LayoutBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`initNativeView`](LayoutBase.md#initnativeview) *** ### insertChild() ```ts insertChild(child: View, atIndex: number): boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L37) Inserts the view to children array at the specified index. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | - | | `atIndex` | `number` | The insertion index. | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`insertChild`](LayoutBase.md#insertchild) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layout`](LayoutBase.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutNativeView`](LayoutBase.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`loadView`](LayoutBase.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`measure`](LayoutBase.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`notify`](LayoutBase.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`notifyPropertyChange`](LayoutBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`off`](LayoutBase.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onBackPressed`](LayoutBase.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`once`](LayoutBase.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onLayout`](LayoutBase.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onLoaded`](LayoutBase.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onMeasure`](LayoutBase.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onResumeNativeUpdates`](LayoutBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onUnloaded`](LayoutBase.md#onunloaded) *** ### removeChild() ```ts removeChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L43) Removes the specified view from the children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to remove from the children array. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeChild`](LayoutBase.md#removechild) *** ### removeChildren() ```ts removeChildren(): void; ``` Defined in: [ui/layouts/layout-base.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L48) Removes all views in this layout. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeChildren`](LayoutBase.md#removechildren) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeEventListener`](LayoutBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`requestLayout`](LayoutBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`resetNativeView`](LayoutBase.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`LayoutBase`](LayoutBase.md).[`sendAccessibilityEvent`](LayoutBase.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`set`](LayoutBase.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setAccessibilityIdentifier`](LayoutBase.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setInlineStyle`](LayoutBase.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setMeasuredDimension`](LayoutBase.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setNativeView`](LayoutBase.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setOnTouchListener`](LayoutBase.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setProperty`](LayoutBase.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`showModal`](LayoutBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`toString`](LayoutBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`unbind`](LayoutBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`unloadView`](LayoutBase.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`updateStatusBarStyle`](LayoutBase.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`addEventListener`](LayoutBase.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`combineMeasuredStates`](LayoutBase.md#combinemeasuredstates) *** ### getAlignSelf() ```ts static getAlignSelf(view: View): AlignSelf; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L82) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns [`AlignSelf`](../type-aliases/AlignSelf.md) *** ### getFlexGrow() ```ts static getFlexGrow(view: View): any; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:76](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L76) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `any` *** ### getFlexShrink() ```ts static getFlexShrink(view: View): number; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L79) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` *** ### getFlexWrapBefore() ```ts static getFlexWrapBefore(view: View): boolean; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L85) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `boolean` *** ### getOrder() ```ts static getOrder(view: View): number; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:73](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L73) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutChild`](LayoutBase.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`LayoutBase`](LayoutBase.md).[`measureChild`](LayoutBase.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`off`](LayoutBase.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`once`](LayoutBase.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeEventListener`](LayoutBase.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`resolveSizeAndState`](LayoutBase.md#resolvesizeandstate) *** ### setAlignSelf() ```ts static setAlignSelf(view: View, align: AlignSelf): any; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:81](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L81) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `align` | [`AlignSelf`](../type-aliases/AlignSelf.md) | #### Returns `any` *** ### setFlexGrow() ```ts static setFlexGrow(view: View, grow: number): any; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L75) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `grow` | `number` | #### Returns `any` *** ### setFlexShrink() ```ts static setFlexShrink(view: View, shrink: number): any; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L78) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `shrink` | `number` | #### Returns `any` *** ### setFlexWrapBefore() ```ts static setFlexWrapBefore(view: View, wrap: boolean): any; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:84](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L84) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `wrap` | `boolean` | #### Returns `any` *** ### setOrder() ```ts static setOrder(view: View, order: number): any; ``` Defined in: [ui/layouts/flexbox-layout/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/flexbox-layout/index.d.ts#L72) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `order` | `number` | #### Returns `any` --- --- url: 'https://docs.nativescript.org/api/classes/Folder.md' description: Represents a Folder (directory) entity on the file system. --- Defined in: [file-system/index.d.ts:221](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L221) Represents a Folder (directory) entity on the file system. ## Extends * [`FileSystemEntity`](FileSystemEntity.md) ## Constructors ### Constructor ```ts new Folder(): Folder; ``` #### Returns `Folder` #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`constructor`](FileSystemEntity.md#constructor) ## Properties ### isKnown ```ts isKnown: boolean; ``` Defined in: [file-system/index.d.ts:225](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L225) Determines whether this instance is a KnownFolder (accessed through the KnownFolders object). *** ### lastModified ```ts lastModified: Date; ``` Defined in: [file-system/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L31) Gets the Date object specifying the last time this entity was modified. #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`lastModified`](FileSystemEntity.md#lastmodified) *** ### name ```ts name: string; ``` Defined in: [file-system/index.d.ts:36](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L36) Gets the name of the entity. #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`name`](FileSystemEntity.md#name) *** ### parent ```ts parent: Folder; ``` Defined in: [file-system/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L48) Gets the Folder object representing the parent of this entity. Will be null for a root folder like Documents or Temporary. This property is readonly. #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`parent`](FileSystemEntity.md#parent) *** ### path ```ts path: string; ``` Defined in: [file-system/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L41) Gets the fully-qualified path (including the extension for a File) of the entity. #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`path`](FileSystemEntity.md#path) ## Methods ### clear() ```ts clear(): Promise; ``` Defined in: [file-system/index.d.ts:249](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L249) Deletes all the files and folders (recursively), contained within this Folder. #### Returns `Promise`<`any`> *** ### clearSync() ```ts clearSync(onError?: (error: any) => void): void; ``` Defined in: [file-system/index.d.ts:255](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L255) Deletes all the files and folders (recursively), contained within this Folder synchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `onError?` | (`error`: `any`) => `void` | An optional function to be called if some error occurs. | #### Returns `void` *** ### contains() ```ts contains(name: string): boolean; ``` Defined in: [file-system/index.d.ts:244](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L244) Checks whether this Folder contains an Entity with the specified name. The path of the folder is added to the name to resolve the complete path to check for. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | The name of the entity to check for. | #### Returns `boolean` *** ### eachEntity() ```ts eachEntity(onEntity: (entity: FileSystemEntity) => boolean): any; ``` Defined in: [file-system/index.d.ts:284](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L284) Enumerates all the top-level FileSystem entities residing within this folder. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `onEntity` | (`entity`: [`FileSystemEntity`](FileSystemEntity.md)) => `boolean` | A callback that receives the current entity. If the callback returns false this will mean for the iteration to stop. | #### Returns `any` *** ### getEntities() ```ts getEntities(): Promise; ``` Defined in: [file-system/index.d.ts:272](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L272) Gets all the top-level entities residing within this folder. #### Returns `Promise`<[`FileSystemEntity`](FileSystemEntity.md)\[]> *** ### getEntitiesSync() ```ts getEntitiesSync(onError?: (error: any) => any): FileSystemEntity[]; ``` Defined in: [file-system/index.d.ts:278](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L278) Gets all the top-level entities residing within this folder synchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `onError?` | (`error`: `any`) => `any` | An optional function to be called if some error occurs. | #### Returns [`FileSystemEntity`](FileSystemEntity.md)\[] *** ### getFile() ```ts getFile(name: string): File; ``` Defined in: [file-system/index.d.ts:261](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L261) Gets or creates a File entity with the specified name within this Folder. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | The name of the file to get/create. | #### Returns [`File`](File.md) *** ### getFolder() ```ts getFolder(name: string): Folder; ``` Defined in: [file-system/index.d.ts:267](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L267) Gets or creates a Folder entity with the specified name within this Folder. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | The name of the folder to get/create. | #### Returns `Folder` *** ### remove() ```ts remove(): Promise; ``` Defined in: [file-system/index.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L53) Removes (deletes) the current Entity from the file system. #### Returns `Promise`<`any`> #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`remove`](FileSystemEntity.md#remove) *** ### removeSync() ```ts removeSync(onError?: (error: any) => any): void; ``` Defined in: [file-system/index.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L58) Removes (deletes) the current Entity from the file system synchronously. #### Parameters | Parameter | Type | | ------ | ------ | | `onError?` | (`error`: `any`) => `any` | #### Returns `void` #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`removeSync`](FileSystemEntity.md#removesync) *** ### rename() ```ts rename(newName: string): Promise; ``` Defined in: [file-system/index.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L64) Renames the current entity using the specified name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `newName` | `string` | The new name to be applied to the entity. | #### Returns `Promise`<`any`> #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`rename`](FileSystemEntity.md#rename) *** ### renameSync() ```ts renameSync(newName: string, onError?: (error: any) => any): void; ``` Defined in: [file-system/index.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L70) Renames the current entity synchronously, using the specified name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `newName` | `string` | The new name to be applied to the entity. | | `onError?` | (`error`: `any`) => `any` | - | #### Returns `void` #### Inherited from [`FileSystemEntity`](FileSystemEntity.md).[`renameSync`](FileSystemEntity.md#renamesync) *** ### exists() ```ts static exists(path: string): boolean; ``` Defined in: [file-system/index.d.ts:237](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L237) Checks whether a Folder with the specified path already exists. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The path to check for. | #### Returns `boolean` *** ### fromPath() ```ts static fromPath(path: string): Folder; ``` Defined in: [file-system/index.d.ts:231](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/file-system/index.d.ts#L231) Gets or creates a Folder entity at the specified path. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The path to get/create the folder at. | #### Returns `Folder` --- --- url: 'https://docs.nativescript.org/api/classes/Font.md' --- Defined in: [ui/styling/font.d.ts:6](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L6) ## Extends * `Font` ## Constructors ### Constructor ```ts new Font( family: string, size: number, style?: FontStyleType, weight?: FontWeightType, scale?: number, fontVariationSettings?: FontVariationSettings[]): Font; ``` Defined in: [ui/styling/font.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L19) #### Parameters | Parameter | Type | | ------ | ------ | | `family` | `string` | | `size` | `number` | | `style?` | `FontStyleType` | | `weight?` | `FontWeightType` | | `scale?` | `number` | | `fontVariationSettings?` | `FontVariationSettings`\[] | #### Returns `Font` #### Overrides ```ts FontBase.constructor ``` ## Properties ### fontFamily ```ts fontFamily: string; ``` Defined in: [ui/styling/font.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L9) #### Overrides ```ts FontBase.fontFamily ``` *** ### fontScale ```ts fontScale: number; ``` Defined in: [ui/styling/font.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L13) #### Overrides ```ts FontBase.fontScale ``` *** ### fontSize ```ts fontSize: number; ``` Defined in: [ui/styling/font.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L12) #### Overrides ```ts FontBase.fontSize ``` *** ### fontStyle ```ts fontStyle: FontStyleType; ``` Defined in: [ui/styling/font.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L10) #### Overrides ```ts FontBase.fontStyle ``` *** ### fontVariationSettings? ```ts optional fontVariationSettings?: FontVariationSettingsType[]; ``` Defined in: [ui/styling/font.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L14) #### Overrides ```ts FontBase.fontVariationSettings ``` *** ### fontWeight ```ts fontWeight: FontWeightType; ``` Defined in: [ui/styling/font.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L11) #### Overrides ```ts FontBase.fontWeight ``` *** ### isBold ```ts isBold: boolean; ``` Defined in: [ui/styling/font.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L16) #### Overrides ```ts FontBase.isBold ``` *** ### isItalic ```ts isItalic: boolean; ``` Defined in: [ui/styling/font.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L17) #### Overrides ```ts FontBase.isItalic ``` *** ### default ```ts static default: Font; ``` Defined in: [ui/styling/font.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L7) #### Overrides ```ts FontBase.default ``` ## Methods ### getAndroidTypeface() ```ts getAndroidTypeface(): any; ``` Defined in: [ui/styling/font.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L21) #### Returns `any` #### Overrides ```ts FontBase.getAndroidTypeface ``` *** ### getUIFont() ```ts getUIFont(defaultFont: any): any; ``` Defined in: [ui/styling/font.d.ts:22](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L22) #### Parameters | Parameter | Type | | ------ | ------ | | `defaultFont` | `any` | #### Returns `any` #### Overrides ```ts FontBase.getUIFont ``` *** ### withFontFamily() ```ts withFontFamily(family: string): Font; ``` Defined in: [ui/styling/font.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L24) #### Parameters | Parameter | Type | | ------ | ------ | | `family` | `string` | #### Returns `Font` #### Overrides ```ts FontBase.withFontFamily ``` *** ### withFontScale() ```ts withFontScale(scale: number): Font; ``` Defined in: [ui/styling/font.d.ts:28](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L28) #### Parameters | Parameter | Type | | ------ | ------ | | `scale` | `number` | #### Returns `Font` #### Overrides ```ts FontBase.withFontScale ``` *** ### withFontSize() ```ts withFontSize(size: number): Font; ``` Defined in: [ui/styling/font.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L27) #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | #### Returns `Font` #### Overrides ```ts FontBase.withFontSize ``` *** ### withFontStyle() ```ts withFontStyle(style: FontStyleType): Font; ``` Defined in: [ui/styling/font.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L25) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `FontStyleType` | #### Returns `Font` #### Overrides ```ts FontBase.withFontStyle ``` *** ### withFontVariationSettings() ```ts withFontVariationSettings(variationSettings: FontVariationSettings[]): Font; ``` Defined in: [ui/styling/font.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L29) #### Parameters | Parameter | Type | | ------ | ------ | | `variationSettings` | `FontVariationSettings`\[] | #### Returns `Font` #### Overrides ```ts FontBase.withFontVariationSettings ``` *** ### withFontWeight() ```ts withFontWeight(weight: FontWeightType): Font; ``` Defined in: [ui/styling/font.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L26) #### Parameters | Parameter | Type | | ------ | ------ | | `weight` | `FontWeightType` | #### Returns `Font` #### Overrides ```ts FontBase.withFontWeight ``` *** ### equals() ```ts static equals(value1: Font, value2: Font): boolean; ``` Defined in: [ui/styling/font.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/font.d.ts#L31) #### Parameters | Parameter | Type | | ------ | ------ | | `value1` | `Font` | | `value2` | `Font` | #### Returns `boolean` #### Overrides ```ts FontBase.equals ``` --- --- url: 'https://docs.nativescript.org/api/classes/FormattedString.md' description: A class used to create a formatted (rich text) string. --- Defined in: [ui/text-base/formatted-string.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L17) A class used to create a formatted (rich text) string. ## Ns View FormattedString ## Extends * [`ViewBase`](ViewBase.md) ## Constructors ### Constructor ```ts new FormattedString(): FormattedString; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `FormattedString` #### Inherited from [`ViewBase`](ViewBase.md).[`constructor`](ViewBase.md#constructor) ## Properties ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_automaticallyAdjustsScrollViewInsets`](ViewBase.md#automaticallyadjustsscrollviewinsets) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_context`](ViewBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_cssState`](ViewBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_defaultPaddingBottom`](ViewBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_defaultPaddingLeft`](ViewBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_defaultPaddingRight`](ViewBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_defaultPaddingTop`](ViewBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_domId`](ViewBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_ignoreFlexMinWidthHeightReset`](ViewBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_isAddedToNativeVisualTree`](ViewBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_isPaddingRelative`](ViewBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_isStyleScopeHost`](ViewBase.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_oldBottom`](ViewBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_oldLeft`](ViewBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_oldRight`](ViewBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_oldTop`](ViewBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`_styleScope`](ViewBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`ViewBase`](ViewBase.md).[`_suspendNativeUpdatesCount`](ViewBase.md#suspendnativeupdatescount) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`alignSelf`](ViewBase.md#alignself) *** ### backgroundColor ```ts backgroundColor: Color; ``` Defined in: [ui/text-base/formatted-string.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L82) Gets or sets the font background color which will be used for all spans that doesn't have a specific value. #### Ns Property *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`bindingContext`](ViewBase.md#bindingcontext) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`className`](ViewBase.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`col`](ViewBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/text-base/formatted-string.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L75) Gets or sets the font foreground color which will be used for all spans that doesn't have a specific value. #### Ns Property *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`colSpan`](ViewBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`column`](ViewBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`columnSpan`](ViewBase.md#columnspan) *** ### cssClasses ```ts readonly cssClasses: Set; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`cssClasses`](ViewBase.md#cssclasses) *** ### cssPseudoClasses ```ts readonly cssPseudoClasses: Set; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`cssPseudoClasses`](ViewBase.md#csspseudoclasses) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`defaultVisualState`](ViewBase.md#defaultvisualstate) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`dock`](ViewBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`domNode`](ViewBase.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderBottomWidth`](ViewBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderLeftWidth`](ViewBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderRightWidth`](ViewBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveBorderTopWidth`](ViewBase.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveHeight`](ViewBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveLeft`](ViewBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginBottom`](ViewBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginLeft`](ViewBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginRight`](ViewBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMarginTop`](ViewBase.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMinHeight`](ViewBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveMinWidth`](ViewBase.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveTop`](ViewBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`effectiveWidth`](ViewBase.md#effectivewidth) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`flexGrow`](ViewBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`flexShrink`](ViewBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`flexWrapBefore`](ViewBase.md#flexwrapbefore) *** ### fontFamily ```ts fontFamily: string; ``` Defined in: [ui/text-base/formatted-string.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L33) Gets or sets the font family which will be used for all spans that doesn't have a specific value. #### Ns Property *** ### fontSize ```ts fontSize: number; ``` Defined in: [ui/text-base/formatted-string.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L40) Gets or sets the font size which will be used for all spans that doesn't have a specific value. #### Ns Property *** ### fontStyle ```ts fontStyle: FontStyleType; ``` Defined in: [ui/text-base/formatted-string.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L47) Gets or sets the font style which will be used for all spans that doesn't have a specific value. #### Ns Property *** ### fontVariationSettings ```ts fontVariationSettings: FontVariationSettingsType[]; ``` Defined in: [ui/text-base/formatted-string.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L61) Gets or sets the font variation settings which will be used for all spans that doesn't have a specific value. #### Ns Property *** ### fontWeight ```ts fontWeight: FontWeightType; ``` Defined in: [ui/text-base/formatted-string.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L54) Gets or sets the font weight which will be used for all spans that doesn't have a specific value. #### Ns Property *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`hidden`](ViewBase.md#hidden) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`id`](ViewBase.md#id) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/text-base/formatted-string.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L89) Defines whether accessibility font scale should affect font size. #### Ns Property *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/text-base/formatted-string.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L103) Gets or sets the maximum accessibility font scale. #### Ns Property *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/text-base/formatted-string.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L96) Gets or sets the minimum accessibility font scale. #### Ns Property *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`ViewBase`](ViewBase.md).[`isCollapsed`](ViewBase.md#iscollapsed) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`left`](ViewBase.md#left) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`ViewBase`](ViewBase.md).[`mIsRootView`](ViewBase.md#misrootview) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`ViewBase`](ViewBase.md).[`nativeViewProtected`](ViewBase.md#nativeviewprotected) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`order`](ViewBase.md#order) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`ViewBase`](ViewBase.md).[`parent`](ViewBase.md#parent) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ViewBase`](ViewBase.md).[`recycleNativeView`](ViewBase.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`reusable`](ViewBase.md#reusable) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`row`](ViewBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`rowSpan`](ViewBase.md#rowspan) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`sharedTransitionIgnore`](ViewBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`sharedTransitionTag`](ViewBase.md#sharedtransitiontag) *** ### spans ```ts spans: ObservableArray; ``` Defined in: [ui/text-base/formatted-string.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L21) An observable collection of Span objects used to define common text properties. *** ### textDecoration ```ts textDecoration: TextDecorationType; ``` Defined in: [ui/text-base/formatted-string.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L68) Gets or sets text decorations which will be used for all spans that doesn't have a specific value. #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`ViewBase`](ViewBase.md).[`top`](ViewBase.md#top) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`ViewBase`](ViewBase.md).[`viewController`](ViewBase.md#viewcontroller) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`ViewBase`](ViewBase.md).[`createdEvent`](ViewBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`ViewBase`](ViewBase.md).[`disposeNativeViewEvent`](ViewBase.md#disposenativeviewevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`ViewBase`](ViewBase.md).[`loadedEvent`](ViewBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`ViewBase`](ViewBase.md).[`propertyChangeEvent`](ViewBase.md#propertychangeevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`ViewBase`](ViewBase.md).[`unloadedEvent`](ViewBase.md#unloadedevent) ## Accessors ### android #### Get Signature ```ts get android(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Inherited from [`ViewBase`](ViewBase.md).[`android`](ViewBase.md#android) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`class`](ViewBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`effectivePaddingBottom`](ViewBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`effectivePaddingLeft`](ViewBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`effectivePaddingRight`](ViewBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`effectivePaddingTop`](ViewBase.md#effectivepaddingtop) *** ### ios #### Get Signature ```ts get ios(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Inherited from [`ViewBase`](ViewBase.md).[`ios`](ViewBase.md#ios) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`ViewBase`](ViewBase.md).[`isLoaded`](ViewBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`nativeView`](ViewBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`ViewBase`](ViewBase.md).[`page`](ViewBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`parentNode`](ViewBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`style`](ViewBase.md#style) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`ViewBase`](ViewBase.md).[`typeName`](ViewBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`ViewBase`](ViewBase.md).[`visualState`](ViewBase.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_addView`](ViewBase.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_addViewCore`](ViewBase.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`ViewBase`](ViewBase.md).[`_addViewToNativeVisualTree`](ViewBase.md#addviewtonativevisualtree) *** ### \_addVisualState() ```ts _addVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_addVisualState`](ViewBase.md#addvisualstate) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`ViewBase`](ViewBase.md).[`_applyXmlAttribute`](ViewBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`ViewBase`](ViewBase.md).[`_batchUpdate`](ViewBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`ViewBase`](ViewBase.md).[`_childIndexToNativeChildIndex`](ViewBase.md#childindextonativechildindex) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`ViewBase`](ViewBase.md).[`_createPropertyChangeData`](ViewBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_dialogClosed`](ViewBase.md#dialogclosed) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_emit`](ViewBase.md#emit) *** ### ~~\_goToVisualState()~~ ```ts _goToVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` #### Deprecated Use View.\_addVisualState() and View.\_removeVisualState() instead. #### Inherited from [`ViewBase`](ViewBase.md).[`_goToVisualState`](ViewBase.md#gotovisualstate) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_inheritStyles`](ViewBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_inheritStyleScope`](ViewBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_layoutParent`](ViewBase.md#layoutparent) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_onRootViewReset`](ViewBase.md#onrootviewreset) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_parentChanged`](ViewBase.md#parentchanged) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_removeView`](ViewBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_removeViewCore`](ViewBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_removeViewFromNativeVisualTree`](ViewBase.md#removeviewfromnativevisualtree) *** ### \_removeVisualState() ```ts _removeVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_removeVisualState`](ViewBase.md#removevisualstate) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_resumeNativeUpdates`](ViewBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_setDefaultPaddings`](ViewBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_setupAsRootView`](ViewBase.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_setupUI`](ViewBase.md#setupui) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`ViewBase`](ViewBase.md).[`_shouldDelayLayout`](ViewBase.md#shoulddelaylayout) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_suspendNativeUpdates`](ViewBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`_tearDownUI`](ViewBase.md#teardownui) *** ### addEventListener() ```ts addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`addEventListener`](ViewBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`ViewBase`](ViewBase.md).[`addPseudoClass`](ViewBase.md#addpseudoclass) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`bind`](ViewBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`callLoaded`](ViewBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`callUnloaded`](ViewBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`closeModal`](ViewBase.md#closemodal) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`ViewBase`](ViewBase.md).[`createNativeView`](ViewBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`ViewBase`](ViewBase.md).[`deletePseudoClass`](ViewBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`ViewBase`](ViewBase.md).[`destroyNode`](ViewBase.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`disposeNativeView`](ViewBase.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`eachChild`](ViewBase.md#eachchild) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`ViewBase`](ViewBase.md).[`ensureDomNode`](ViewBase.md#ensuredomnode) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`ViewBase`](ViewBase.md).[`get`](ViewBase.md#get) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`ViewBase`](ViewBase.md).[`getEffectivePaddingShorthand`](ViewBase.md#geteffectivepaddingshorthand) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`ViewBase`](ViewBase.md).[`getViewByDomId`](ViewBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`ViewBase`](ViewBase.md).[`getViewById`](ViewBase.md#getviewbyid) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`ViewBase`](ViewBase.md).[`hasListeners`](ViewBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`initNativeView`](ViewBase.md#initnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`loadView`](ViewBase.md#loadview) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`notify`](ViewBase.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`notifyPropertyChange`](ViewBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`off`](ViewBase.md#off) *** ### on() ```ts on( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`on`](ViewBase.md#on) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`once`](ViewBase.md#once) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`onLoaded`](ViewBase.md#onloaded) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`onResumeNativeUpdates`](ViewBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`onUnloaded`](ViewBase.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`removeEventListener`](ViewBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`requestLayout`](ViewBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`resetNativeView`](ViewBase.md#resetnativeview) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`set`](ViewBase.md#set) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`setInlineStyle`](ViewBase.md#setinlinestyle) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`setNativeView`](ViewBase.md#setnativeview) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`setProperty`](ViewBase.md#setproperty) *** ### showModal() #### Call Signature ```ts showModal(view: ViewBase, modalOptions?: ShowModalOptions): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Shows the view passed as parameter as a modal view. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | View instance to be shown modally. | | `modalOptions?` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | A ShowModalOptions instance | ##### Returns [`ViewBase`](ViewBase.md) ##### Inherited from [`ViewBase`](ViewBase.md).[`showModal`](ViewBase.md#showmodal) #### Call Signature ```ts showModal(moduleName: string, modalOptions?: ShowModalOptions): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Shows the View contained in moduleName as a modal view. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `moduleName` | `string` | The name of the module to load starting from the application root. | | `modalOptions?` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | A ShowModalOptions instance | ##### Returns [`ViewBase`](ViewBase.md) ##### Inherited from [`ViewBase`](ViewBase.md).[`showModal`](ViewBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/text-base/formatted-string.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/formatted-string.d.ts#L26) A human readable representation of the formatted string. #### Returns `string` #### Overrides [`ViewBase`](ViewBase.md).[`toString`](ViewBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`unbind`](ViewBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`ViewBase`](ViewBase.md).[`unloadView`](ViewBase.md#unloadview) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`ViewBase`](ViewBase.md).[`addEventListener`](ViewBase.md#addeventlistener-1) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ViewBase`](ViewBase.md).[`off`](ViewBase.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`ViewBase`](ViewBase.md).[`on`](ViewBase.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ViewBase`](ViewBase.md).[`once`](ViewBase.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ViewBase`](ViewBase.md).[`removeEventListener`](ViewBase.md#removeeventlistener-1) --- --- url: 'https://docs.nativescript.org/api/classes/Frame.md' description: >- Represents the logical View unit that is responsible for navigation within an application. Nested frames are supported, enabling hierarchical navigation scen... --- Defined in: [ui/frame/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L16) Represents the logical View unit that is responsible for navigation within an application. Nested frames are supported, enabling hierarchical navigation scenarios. ## Ns View Frame ## Extends * `FrameBase` ## Constructors ### Constructor ```ts new Frame(): Frame; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `Frame` #### Inherited from ```ts FrameBase.constructor ``` ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from ```ts FrameBase._androidContentDescriptionUpdated ``` *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._automaticallyAdjustsScrollViewInsets ``` *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts FrameBase._closeModalCallback ``` *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._context ``` *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._cssState ``` *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._defaultPaddingBottom ``` *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._defaultPaddingLeft ``` *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._defaultPaddingRight ``` *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._defaultPaddingTop ``` *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._domId ``` *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._ignoreFlexMinWidthHeightReset ``` *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._isAddedToNativeVisualTree ``` *** ### \_isInFrameStack ```ts _isInFrameStack: boolean; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Inherited from ```ts FrameBase._isInFrameStack ``` *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._isPaddingRelative ``` *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._isStyleScopeHost ``` *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._oldBottom ``` *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._oldLeft ``` *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._oldRight ``` *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._oldTop ``` *** ### \_resolvedPage ```ts _resolvedPage: Page; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) A reference of current page that is set earlier than current entry. Using this property, methods like 'eachChildView' and '\_childrenCount' gain access to page view just in time for calls like '\_addView' to perform view-tree iterations. #### Inherited from ```ts FrameBase._resolvedPage ``` *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase._styleScope ``` *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from ```ts FrameBase._suspendNativeUpdatesCount ``` *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from ```ts FrameBase.accessibilityHidden ``` *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from ```ts FrameBase.accessibilityHint ``` *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from ```ts FrameBase.accessibilityIdentifier ``` *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from ```ts FrameBase.accessibilityIgnoresInvertColors ``` *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from ```ts FrameBase.accessibilityLabel ``` *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from ```ts FrameBase.accessibilityLanguage ``` *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from ```ts FrameBase.accessibilityLiveRegion ``` *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from ```ts FrameBase.accessibilityMediaSession ``` *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from ```ts FrameBase.accessibilityRole ``` *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from ```ts FrameBase.accessibilityState ``` *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from ```ts FrameBase.accessibilityValue ``` *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from ```ts FrameBase.accessible ``` *** ### actionBarVisibility ```ts actionBarVisibility: "auto" | "always" | "never"; ``` Defined in: [ui/frame/index.d.ts:116](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L116) Used to control the visibility the Navigation Bar in iOS and the Action Bar in Android. #### Ns Property #### Overrides ```ts FrameBase.actionBarVisibility ``` *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from ```ts FrameBase.alignSelf ``` *** ### android ```ts android: AndroidFrame; ``` Defined in: [ui/frame/index.d.ts:160](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L160) Gets the AndroidFrame object that represents the Android-specific APIs for this Frame. Valid when running on Android OS. #### Overrides ```ts FrameBase.android ``` *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from ```ts FrameBase.androidDynamicElevationOffset ``` *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from ```ts FrameBase.androidElevation ``` *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts FrameBase.androidOverflowEdge ``` *** ### animated ```ts animated: boolean; ``` Defined in: [ui/frame/index.d.ts:139](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L139) Gets or sets if navigation transitions should be animated. #### Overrides ```ts FrameBase.animated ``` *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from ```ts FrameBase.automationText ``` *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from ```ts FrameBase.background ``` *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from ```ts FrameBase.backgroundColor ``` *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from ```ts FrameBase.backgroundImage ``` *** ### backStack ```ts backStack: BackstackEntry[]; ``` Defined in: [ui/frame/index.d.ts:122](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L122) Gets the back stack of this instance. #### Overrides ```ts FrameBase.backStack ``` *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from ```ts FrameBase.bindingContext ``` *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderBottomColor ``` *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderBottomLeftRadius ``` *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderBottomRightRadius ``` *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderBottomWidth ``` *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderColor ``` *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderLeftColor ``` *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderLeftWidth ``` *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderRadius ``` *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderRightColor ``` *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderRightWidth ``` *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderTopColor ``` *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderTopLeftRadius ``` *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderTopRightRadius ``` *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderTopWidth ``` *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from ```ts FrameBase.borderWidth ``` *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from ```ts FrameBase.boxShadow ``` *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from ```ts FrameBase.className ``` *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from ```ts FrameBase.col ``` *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from ```ts FrameBase.color ``` *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from ```ts FrameBase.colSpan ``` *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from ```ts FrameBase.column ``` *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from ```ts FrameBase.columnSpan ``` *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from ```ts FrameBase.cssClasses ``` *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from ```ts FrameBase.cssPseudoClasses ``` *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from ```ts FrameBase.cssType ``` *** ### currentEntry ```ts currentEntry: NavigationEntry; ``` Defined in: [ui/frame/index.d.ts:133](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L133) Gets the NavigationEntry instance the Frame is currently navigated to. #### Overrides ```ts FrameBase.currentEntry ``` *** ### currentPage ```ts currentPage: Page; ``` Defined in: [ui/frame/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L127) Gets the Page instance the Frame is currently navigated to. #### Overrides ```ts FrameBase.currentPage ``` *** ### defaultPage? ```ts optional defaultPage?: string; ``` Defined in: [ui/frame/index.d.ts:42](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L42) #### Ns Property *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from ```ts FrameBase.defaultVisualState ``` *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from ```ts FrameBase.direction ``` *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from ```ts FrameBase.dock ``` *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.domNode ``` *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveBorderBottomWidth ``` *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveBorderLeftWidth ``` *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveBorderRightWidth ``` *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveBorderTopWidth ``` *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveHeight ``` *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveLeft ``` *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveMarginBottom ``` *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveMarginLeft ``` *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveMarginRight ``` *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveMarginTop ``` *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveMinHeight ``` *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveMinWidth ``` *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveTop ``` *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.effectiveWidth ``` *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from ```ts FrameBase.flex ``` *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from ```ts FrameBase.flexFlow ``` *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from ```ts FrameBase.flexGrow ``` *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from ```ts FrameBase.flexShrink ``` *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from ```ts FrameBase.flexWrapBefore ``` *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from ```ts FrameBase.height ``` *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from ```ts FrameBase.hidden ``` *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from ```ts FrameBase.horizontalAlignment ``` *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from ```ts FrameBase.id ``` *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from ```ts FrameBase.ignoreTouchAnimation ``` *** ### ios ```ts ios: iOSFrame; ``` Defined in: [ui/frame/index.d.ts:165](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L165) Gets the iOSFrame object that represents the iOS-specific APIs for this Frame. Valid when running on iOS. #### Overrides ```ts FrameBase.ios ``` *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from ```ts FrameBase.iosAccessibilityAdjustsFontSize ``` *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from ```ts FrameBase.iosAccessibilityMaxFontScale ``` *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from ```ts FrameBase.iosAccessibilityMinFontScale ``` *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from ```ts FrameBase.iosGlassEffect ``` *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from ```ts FrameBase.iosIgnoreSafeArea ``` *** ### iosNavigationBarClass? ```ts optional iosNavigationBarClass?: any; ``` Defined in: [ui/frame/index.d.ts:172](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L172) Specify a custom UINavigationBar class (iOS only) #### Ns Property *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from ```ts FrameBase.iosOverflowSafeArea ``` *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from ```ts FrameBase.iosOverflowSafeAreaEnabled ``` *** ### iosToolbarClass? ```ts optional iosToolbarClass?: any; ``` Defined in: [ui/frame/index.d.ts:178](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L178) Specify a custom UIToolbar class (iOS only) #### Ns Property *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from ```ts FrameBase.isCollapsed ``` *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from ```ts FrameBase.isEnabled ``` *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from ```ts FrameBase.isLayoutValid ``` *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from ```ts FrameBase.isUserInteractionEnabled ``` *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from ```ts FrameBase.left ``` *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from ```ts FrameBase.margin ``` *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from ```ts FrameBase.marginBottom ``` *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from ```ts FrameBase.marginLeft ``` *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from ```ts FrameBase.marginRight ``` *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from ```ts FrameBase.marginTop ``` *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from ```ts FrameBase.minHeight ``` *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from ```ts FrameBase.minWidth ``` *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from ```ts FrameBase.mIsRootView ``` *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from ```ts FrameBase.modal ``` *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from ```ts FrameBase.nativeBackgroundState ``` *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from ```ts FrameBase.nativeViewProtected ``` *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from ```ts FrameBase.opacity ``` *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from ```ts FrameBase.order ``` *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from ```ts FrameBase.originX ``` *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from ```ts FrameBase.originY ``` *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from ```ts FrameBase.parent ``` *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from ```ts FrameBase.perspective ``` *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts FrameBase.recycleNativeView ``` *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from ```ts FrameBase.reusable ``` *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from ```ts FrameBase.rotate ``` *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from ```ts FrameBase.rotateX ``` *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from ```ts FrameBase.rotateY ``` *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from ```ts FrameBase.row ``` *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from ```ts FrameBase.rowSpan ``` *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from ```ts FrameBase.scaleX ``` *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from ```ts FrameBase.scaleY ``` *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from ```ts FrameBase.sharedTransitionIgnore ``` *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from ```ts FrameBase.sharedTransitionTag ``` *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from ```ts FrameBase.statusBarStyle ``` *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from ```ts FrameBase.testID ``` *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from ```ts FrameBase.top ``` *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from ```ts FrameBase.touchAnimation ``` *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from ```ts FrameBase.touchDelay ``` *** ### transition ```ts transition: NavigationTransition; ``` Defined in: [ui/frame/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L145) Gets or sets the default navigation transition for this frame. #### Overrides ```ts FrameBase.transition ``` *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from ```ts FrameBase.transitionId ``` *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from ```ts FrameBase.translateX ``` *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from ```ts FrameBase.translateY ``` *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from ```ts FrameBase.verticalAlignment ``` *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from ```ts FrameBase.viewController ``` *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from ```ts FrameBase.visibility ``` *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from ```ts FrameBase.visionHoverStyle ``` *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from ```ts FrameBase.visionIgnoreHoverStyle ``` *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from ```ts FrameBase.width ``` *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from ```ts FrameBase.accessibilityBlurEvent ``` *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from ```ts FrameBase.accessibilityFocusChangedEvent ``` *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from ```ts FrameBase.accessibilityFocusEvent ``` *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts FrameBase.accessibilityPerformEscapeEvent ``` *** ### androidOptionSelectedEvent ```ts static androidOptionSelectedEvent: string; ``` Defined in: [ui/frame/index.d.ts:22](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L22) String value used when hooking to OptionSelected event. #### Ns Event optionSelected *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from ```ts FrameBase.androidOverflowInsetEvent ``` *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from ```ts FrameBase.createdEvent ``` *** ### defaultAnimatedNavigation ```ts static defaultAnimatedNavigation: boolean; ``` Defined in: [ui/frame/index.d.ts:150](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L150) Gets or sets if navigation transitions should be animated globally. #### Overrides ```ts FrameBase.defaultAnimatedNavigation ``` *** ### defaultTransition ```ts static defaultTransition: NavigationTransition; ``` Defined in: [ui/frame/index.d.ts:155](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L155) Gets or sets the default NavigationTransition for all frames across the app. #### Overrides ```ts FrameBase.defaultTransition ``` *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from ```ts FrameBase.disposeNativeViewEvent ``` *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from ```ts FrameBase.layoutChangedEvent ``` *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from ```ts FrameBase.loadedEvent ``` *** ### navigatedToEvent ```ts static navigatedToEvent: string; ``` Defined in: [ui/frame/index.d.ts:36](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L36) String value used when hooking to navigatedTo event. #### Ns Event navigatedTo #### Overrides ```ts FrameBase.navigatedToEvent ``` *** ### navigatingToEvent ```ts static navigatingToEvent: string; ``` Defined in: [ui/frame/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L29) String value used when hooking to navigatingTo event. #### Ns Event navigatingTo #### Overrides ```ts FrameBase.navigatingToEvent ``` *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from ```ts FrameBase.propertyChangeEvent ``` *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from ```ts FrameBase.showingModallyEvent ``` *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from ```ts FrameBase.shownModallyEvent ``` *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from ```ts FrameBase.unloadedEvent ``` ## Accessors ### \_childrenCount #### Get Signature ```ts get _childrenCount(): number; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) ##### Returns `number` #### Inherited from ```ts FrameBase._childrenCount ``` *** ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from ```ts FrameBase.backgroundPosition ``` *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from ```ts FrameBase.backgroundRepeat ``` *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from ```ts FrameBase.backgroundSize ``` *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from ```ts FrameBase.class ``` *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts FrameBase.effectivePaddingBottom ``` *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts FrameBase.effectivePaddingLeft ``` *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts FrameBase.effectivePaddingRight ``` *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts FrameBase.effectivePaddingTop ``` *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from ```ts FrameBase.isLoaded ``` *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from ```ts FrameBase.nativeView ``` *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from ```ts FrameBase.page ``` *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from ```ts FrameBase.parentNode ``` *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from ```ts FrameBase.style ``` *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from ```ts FrameBase.textTransform ``` *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from ```ts FrameBase.typeName ``` *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from ```ts FrameBase.visualState ``` ## Methods ### \_addChildFromBuilder() ```ts _addChildFromBuilder(name: string, value: any): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from ```ts FrameBase._addChildFromBuilder ``` *** ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from ```ts FrameBase._addView ``` *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from ```ts FrameBase._addViewCore ``` *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(child: View): boolean; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `boolean` #### Inherited from ```ts FrameBase._addViewToNativeVisualTree ``` *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from ```ts FrameBase._applyGlassEffect ``` *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from ```ts FrameBase._applyXmlAttribute ``` *** ### \_backstackEntryTrace() ```ts _backstackEntryTrace(b: BackstackEntry): string; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `b` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | #### Returns `string` #### Inherited from ```ts FrameBase._backstackEntryTrace ``` *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from ```ts FrameBase._batchUpdate ``` *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from ```ts FrameBase._childIndexToNativeChildIndex ``` *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from ```ts FrameBase._closeAllModalViewsInternal ``` *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from ```ts FrameBase._createPropertyChangeData ``` *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from ```ts FrameBase._dialogClosed ``` *** ### \_disposeBackstackEntry() ```ts protected _disposeBackstackEntry(entry: BackstackEntry): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `entry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | #### Returns `void` #### Inherited from ```ts FrameBase._disposeBackstackEntry ``` *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from ```ts FrameBase._eachLayoutView ``` *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from ```ts FrameBase._emit ``` *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from ```ts FrameBase._getNativeViewsCount ``` *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from ```ts FrameBase._getRootModalViews ``` *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from ```ts FrameBase._getValue ``` *** ### \_goBackCore() ```ts _goBackCore(backstackEntry: BackstackEntry): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `backstackEntry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | #### Returns `void` #### Inherited from ```ts FrameBase._goBackCore ``` *** ### \_handleLivesync() ```ts _handleLivesync(context?: ModuleContext): boolean; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | `ModuleContext` | #### Returns `boolean` #### Inherited from ```ts FrameBase._handleLivesync ``` *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from ```ts FrameBase._hasAncestorView ``` *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from ```ts FrameBase._hideNativeModalView ``` *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts FrameBase._inheritStyles ``` *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from ```ts FrameBase._inheritStyleScope ``` *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts FrameBase._layoutParent ``` *** ### \_navigateCore() ```ts _navigateCore(backstackEntry: BackstackEntry): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `backstackEntry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | #### Returns `void` #### Inherited from ```ts FrameBase._navigateCore ``` *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from ```ts FrameBase._observe ``` *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from ```ts FrameBase._onAttachedToWindow ``` *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from ```ts FrameBase._onDetachedFromWindow ``` *** ### \_onNavigatingTo() ```ts _onNavigatingTo(backstackEntry: BackstackEntry, isBack: boolean): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `backstackEntry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | | `isBack` | `boolean` | #### Returns `void` #### Inherited from ```ts FrameBase._onNavigatingTo ``` *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from ```ts FrameBase._onRootViewReset ``` *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from ```ts FrameBase._onSizeChanged ``` *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts FrameBase._parentChanged ``` *** ### \_popFromFrameStack() ```ts _popFromFrameStack(): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Returns `void` #### Inherited from ```ts FrameBase._popFromFrameStack ``` *** ### \_printFrameBackStack() ```ts _printFrameBackStack(): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Returns `void` #### Inherited from ```ts FrameBase._printFrameBackStack ``` *** ### \_processNextNavigationEntry() ```ts protected _processNextNavigationEntry(): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Returns `void` #### Inherited from ```ts FrameBase._processNextNavigationEntry ``` *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts FrameBase._raiseLayoutChangedEvent ``` *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts FrameBase._raiseShowingModallyEvent ``` *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts FrameBase._raiseShownModallyEvent ``` *** ### \_removeEntry() ```ts _removeEntry(removed: BackstackEntry): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `removed` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | #### Returns `void` #### Inherited from ```ts FrameBase._removeEntry ``` *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts FrameBase._removeView ``` *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts FrameBase._removeViewCore ``` *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(child: View): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from ```ts FrameBase._removeViewFromNativeVisualTree ``` *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from ```ts FrameBase._resumeNativeUpdates ``` *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from ```ts FrameBase._setDefaultPaddings ``` *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from ```ts FrameBase._setupAsRootView ``` *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from ```ts FrameBase._setupUI ``` *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from ```ts FrameBase._setValue ``` *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from ```ts FrameBase._shouldDelayLayout ``` *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from ```ts FrameBase._showNativeModalView ``` *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from ```ts FrameBase._suspendNativeUpdates ``` *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from ```ts FrameBase._tearDownUI ``` *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from ```ts FrameBase._updateStyleScope ``` *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from ```ts FrameBase.accessibilityAnnouncement ``` *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from ```ts FrameBase.accessibilityScreenChanged ``` *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from ```ts FrameBase.addEventListener ``` *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from ```ts FrameBase.addPseudoClass ``` *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from ```ts FrameBase.animate ``` *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from ```ts FrameBase.bind ``` *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts FrameBase.callLoaded ``` *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts FrameBase.callUnloaded ``` *** ### canGoBack() ```ts canGoBack(): boolean; ``` Defined in: [ui/frame/index.d.ts:84](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L84) Checks whether the goBack operation is available. #### Returns `boolean` #### Overrides ```ts FrameBase.canGoBack ``` *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from ```ts FrameBase.closeModal ``` *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from ```ts FrameBase.createAnimation ``` *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from ```ts FrameBase.createNativeView ``` *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from ```ts FrameBase.deletePseudoClass ``` *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from ```ts FrameBase.destroyNode ``` *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from ```ts FrameBase.disposeNativeView ``` *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from ```ts FrameBase.eachChild ``` *** ### eachChildView() ```ts eachChildView(callback: (child: View) => boolean): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from ```ts FrameBase.eachChildView ``` *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from ```ts FrameBase.ensureDomNode ``` *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from ```ts FrameBase.focus ``` *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from ```ts FrameBase.get ``` *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from ```ts FrameBase.getActualSize ``` *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from ```ts FrameBase.getClosestWindow ``` *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from ```ts FrameBase.getEffectivePaddingShorthand ``` *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from ```ts FrameBase.getGestureObservers ``` *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from ```ts FrameBase.getLocationInWindow ``` *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from ```ts FrameBase.getLocationOnScreen ``` *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from ```ts FrameBase.getLocationRelativeTo ``` *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from ```ts FrameBase.getMeasuredHeight ``` *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from ```ts FrameBase.getMeasuredState ``` *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from ```ts FrameBase.getMeasuredWidth ``` *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from ```ts FrameBase.getSafeAreaInsets ``` *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from ```ts FrameBase.getViewByDomId ``` *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from ```ts FrameBase.getViewById ``` *** ### goBack() ```ts goBack(to?: BackstackEntry): any; ``` Defined in: [ui/frame/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L79) Navigates to the previous entry (if any) in the back stack. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `to?` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | The backstack entry to navigate back to. | #### Returns `any` #### Overrides ```ts FrameBase.goBack ``` *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from ```ts FrameBase.hasGestureObservers ``` *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from ```ts FrameBase.hasListeners ``` *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from ```ts FrameBase.initNativeView ``` *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from ```ts FrameBase.layout ``` *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from ```ts FrameBase.layoutNativeView ``` *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from ```ts FrameBase.loadView ``` *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from ```ts FrameBase.measure ``` *** ### navigate() #### Call Signature ```ts navigate(pageModuleName: string): any; ``` Defined in: [ui/frame/index.d.ts:94](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L94) Navigates to a Page instance as described by the module name. This method will require the module and will check for a Page property in the exports of the module. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `pageModuleName` | `string` | The name of the module to require starting from the application root. For example if you want to navigate to page called "myPage.js" in a folder called "subFolder" and your root folder is "app" you can call navigate method like this: const frames = require("@nativescript/core/ui/frame"); frames.topmost().navigate("app/subFolder/myPage"); | ##### Returns `any` ##### Overrides ```ts FrameBase.navigate ``` #### Call Signature ```ts navigate(create: () => Page): any; ``` Defined in: [ui/frame/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L100) Creates a new Page instance using the provided callback and navigates to that Page. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `create` | () => [`Page`](Page.md) | The function to be used to create the new Page instance. | ##### Returns `any` ##### Overrides ```ts FrameBase.navigate ``` #### Call Signature ```ts navigate(entry: NavigationEntry): any; ``` Defined in: [ui/frame/index.d.ts:109](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L109) Navigates to a Page resolved by the provided NavigationEntry object. Since there are a couple of ways to specify a Page instance through an entry, there is a resolution priority: 1\. entry.moduleName 2\. entry.create() ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `entry` | [`NavigationEntry`](../interfaces/NavigationEntry.md) | The NavigationEntry instance. | ##### Returns `any` ##### Overrides ```ts FrameBase.navigate ``` *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from ```ts FrameBase.notify ``` *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from ```ts FrameBase.notifyPropertyChange ``` *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from ```ts FrameBase.off ``` *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/frame/index.d.ts:287](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L287) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `void` ##### Overrides ```ts FrameBase.on ``` #### Call Signature ```ts on( event: "navigatingTo", callback: (args: NavigationData) => void, thisArg?: any): void; ``` Defined in: [ui/frame/index.d.ts:292](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L292) Raised when navigation to the page has started. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"navigatingTo"` | | `callback` | (`args`: [`NavigationData`](../interfaces/NavigationData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts FrameBase.on ``` #### Call Signature ```ts on( event: "navigatedTo", callback: (args: NavigationData) => void, thisArg?: any): void; ``` Defined in: [ui/frame/index.d.ts:297](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L297) Raised when navigation to the page has finished. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"navigatedTo"` | | `callback` | (`args`: [`NavigationData`](../interfaces/NavigationData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts FrameBase.on ``` *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from ```ts FrameBase.onBackPressed ``` *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from ```ts FrameBase.once ``` *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from ```ts FrameBase.onLayout ``` *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Returns `void` #### Inherited from ```ts FrameBase.onLoaded ``` *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from ```ts FrameBase.onMeasure ``` *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts FrameBase.onResumeNativeUpdates ``` *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts FrameBase.onUnloaded ``` *** ### performGoBack() ```ts performGoBack(navigationContext: NavigationContext): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `navigationContext` | `NavigationContext` | #### Returns `void` #### Inherited from ```ts FrameBase.performGoBack ``` *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from ```ts FrameBase.removeEventListener ``` *** ### replacePage() ```ts replacePage(entry: string | NavigationEntry): void; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `entry` | `string` | `NavigationEntry` | #### Returns `void` #### Inherited from ```ts FrameBase.replacePage ``` *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from ```ts FrameBase.requestLayout ``` *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from ```ts FrameBase.resetNativeView ``` *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from ```ts FrameBase.sendAccessibilityEvent ``` *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from ```ts FrameBase.set ``` *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from ```ts FrameBase.setAccessibilityIdentifier ``` *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from ```ts FrameBase.setInlineStyle ``` *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from ```ts FrameBase.setMeasuredDimension ``` *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from ```ts FrameBase.setNativeView ``` *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from ```ts FrameBase.setOnTouchListener ``` *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from ```ts FrameBase.setProperty ``` *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from ```ts FrameBase.showModal ``` *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from ```ts FrameBase.toString ``` *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from ```ts FrameBase.unbind ``` *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from ```ts FrameBase.unloadView ``` *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from ```ts FrameBase.updateStatusBarStyle ``` *** ### \_isEntryBackstackVisible() ```ts static _isEntryBackstackVisible(entry: BackstackEntry): boolean; ``` Defined in: [ui/frame/frame-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/frame-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `entry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | #### Returns `boolean` #### Inherited from ```ts FrameBase._isEntryBackstackVisible ``` *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from ```ts FrameBase.addEventListener ``` *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from ```ts FrameBase.combineMeasuredStates ``` *** ### getFrameById() ```ts static getFrameById(id: string): Frame; ``` Defined in: [ui/frame/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L52) Gets a frame by id. #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `Frame` #### Overrides ```ts FrameBase.getFrameById ``` *** ### goBack() ```ts static goBack(): any; ``` Defined in: [ui/frame/index.d.ts:63](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L63) Navigates back using the navigation hierarchy (if any). Updates the Frame stack as needed. This method will start from the topmost Frame and will recursively search for an instance that has the canGoBack operation available. #### Returns `any` #### Overrides ```ts FrameBase.goBack ``` *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from ```ts FrameBase.layoutChild ``` *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from ```ts FrameBase.measureChild ``` *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from ```ts FrameBase.off ``` *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from ```ts FrameBase.on ``` *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from ```ts FrameBase.once ``` *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from ```ts FrameBase.removeEventListener ``` *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from ```ts FrameBase.resolveSizeAndState ``` *** ### topmost() ```ts static topmost(): Frame; ``` Defined in: [ui/frame/index.d.ts:57](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/frame/index.d.ts#L57) Gets the topmost frame in the frames stack. An application will typically has one frame instance. Multiple frames handle nested (hierarchical) navigation scenarios. #### Returns `Frame` #### Overrides ```ts FrameBase.topmost ``` --- --- url: 'https://docs.nativescript.org/api/classes/GesturesObserver.md' description: Provides options for the GesturesObserver. --- Defined in: [ui/gestures/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/index.d.ts#L11) Provides options for the GesturesObserver. ## Constructors ### Constructor ```ts new GesturesObserver( target: View, callback: (args: GestureEventData) => void, context: any): GesturesObserver; ``` Defined in: [ui/gestures/index.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/index.d.ts#L18) Creates an instance of GesturesObserver class. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `target` | [`View`](View.md) | The view for which the observer is created. | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | A function that will be executed when a gesture is received. | | `context` | `any` | default this argument for the callbacks. | #### Returns `GesturesObserver` ## Properties ### androidOnTouchEvent ```ts androidOnTouchEvent: (motionEvent: any) => void; ``` Defined in: [ui/gestures/index.d.ts:51](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/index.d.ts#L51) An internal Android specific method used to pass the motion event to the correct gesture observer. #### Parameters | Parameter | Type | | ------ | ------ | | `motionEvent` | `any` | #### Returns `void` *** ### callback ```ts callback: (args: GestureEventData) => void; ``` Defined in: [ui/gestures/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/index.d.ts#L41) A function that will be executed when a gesture is received. #### Parameters | Parameter | Type | | ------ | ------ | | `args` | [`GestureEventData`](../interfaces/GestureEventData.md) | #### Returns `void` *** ### context ```ts context: any; ``` Defined in: [ui/gestures/index.d.ts:46](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/index.d.ts#L46) A context which will be used as `this` in callback execution. *** ### type ```ts type: GestureTypes; ``` Defined in: [ui/gestures/index.d.ts:36](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/index.d.ts#L36) Singular gesture type (e.g. GestureTypes.tap) attached to the observer. Does not support plural gesture types (e.g. GestureTypes.tap & GestureTypes.doubleTap). ## Methods ### disconnect() ```ts disconnect(): any; ``` Defined in: [ui/gestures/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/index.d.ts#L29) Disconnects the gesture observer. #### Returns `any` *** ### observe() ```ts observe(type: GestureTypes): any; ``` Defined in: [ui/gestures/index.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/gestures/index.d.ts#L24) Registers a gesture observer to a view and gesture. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | Type of the gesture. | #### Returns `any` --- --- url: 'https://docs.nativescript.org/api/classes/GridLayout.md' description: Defines a rectangular layout area that consists of columns and rows. --- Defined in: [ui/layouts/grid-layout/index.d.ts:51](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L51) Defines a rectangular layout area that consists of columns and rows. ## Ns View GridLayout ## Extends * [`LayoutBase`](LayoutBase.md) ## Extended by * [`RootLayout`](RootLayout.md) ## Constructors ### Constructor ```ts new GridLayout(): GridLayout; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `GridLayout` #### Inherited from [`LayoutBase`](LayoutBase.md).[`constructor`](LayoutBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`LayoutBase`](LayoutBase.md).[`_androidContentDescriptionUpdated`](LayoutBase.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_automaticallyAdjustsScrollViewInsets`](LayoutBase.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_closeModalCallback`](LayoutBase.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_context`](LayoutBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_cssState`](LayoutBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingBottom`](LayoutBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingLeft`](LayoutBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingRight`](LayoutBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingTop`](LayoutBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_domId`](LayoutBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_ignoreFlexMinWidthHeightReset`](LayoutBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isAddedToNativeVisualTree`](LayoutBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isPaddingRelative`](LayoutBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldBottom`](LayoutBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldLeft`](LayoutBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldRight`](LayoutBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldTop`](LayoutBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_styleScope`](LayoutBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_suspendNativeUpdatesCount`](LayoutBase.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityHidden`](LayoutBase.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityHint`](LayoutBase.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIdentifier`](LayoutBase.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLabel`](LayoutBase.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLanguage`](LayoutBase.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLiveRegion`](LayoutBase.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityMediaSession`](LayoutBase.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityRole`](LayoutBase.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityState`](LayoutBase.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityValue`](LayoutBase.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessible`](LayoutBase.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`alignSelf`](LayoutBase.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`LayoutBase`](LayoutBase.md).[`android`](LayoutBase.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidDynamicElevationOffset`](LayoutBase.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidElevation`](LayoutBase.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowEdge`](LayoutBase.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`background`](LayoutBase.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundColor`](LayoutBase.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundImage`](LayoutBase.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`bindingContext`](LayoutBase.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomColor`](LayoutBase.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomLeftRadius`](LayoutBase.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomRightRadius`](LayoutBase.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomWidth`](LayoutBase.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderColor`](LayoutBase.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderLeftColor`](LayoutBase.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderLeftWidth`](LayoutBase.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRadius`](LayoutBase.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRightColor`](LayoutBase.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRightWidth`](LayoutBase.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopColor`](LayoutBase.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopLeftRadius`](LayoutBase.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopRightRadius`](LayoutBase.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopWidth`](LayoutBase.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderWidth`](LayoutBase.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`boxShadow`](LayoutBase.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`className`](LayoutBase.md#classname) *** ### clipToBounds ```ts clipToBounds: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L106) Gets or sets a value indicating whether to clip the content of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`clipToBounds`](LayoutBase.md#cliptobounds) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`col`](LayoutBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`color`](LayoutBase.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`colSpan`](LayoutBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`column`](LayoutBase.md#column) *** ### columns ```ts columns: string; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:67](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L67) A string value representing column widths delimited with commas. Valid values: an absolute number, auto, or \*: #### Ns Property *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`columnSpan`](LayoutBase.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssType`](LayoutBase.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`defaultVisualState`](LayoutBase.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`direction`](LayoutBase.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`dock`](LayoutBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`domNode`](LayoutBase.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderBottomWidth`](LayoutBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderLeftWidth`](LayoutBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderRightWidth`](LayoutBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveHeight`](LayoutBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveLeft`](LayoutBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginBottom`](LayoutBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginLeft`](LayoutBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginRight`](LayoutBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinHeight`](LayoutBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveTop`](LayoutBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveWidth`](LayoutBase.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flex`](LayoutBase.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexFlow`](LayoutBase.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexGrow`](LayoutBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexShrink`](LayoutBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexWrapBefore`](LayoutBase.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`height`](LayoutBase.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`hidden`](LayoutBase.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`horizontalAlignment`](LayoutBase.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`id`](LayoutBase.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`LayoutBase`](LayoutBase.md).[`ios`](LayoutBase.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityAdjustsFontSize`](LayoutBase.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityMaxFontScale`](LayoutBase.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityMinFontScale`](LayoutBase.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosGlassEffect`](LayoutBase.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosIgnoreSafeArea`](LayoutBase.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosOverflowSafeArea`](LayoutBase.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosOverflowSafeAreaEnabled`](LayoutBase.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isCollapsed`](LayoutBase.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isEnabled`](LayoutBase.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`LayoutBase`](LayoutBase.md).[`isLayoutValid`](LayoutBase.md#islayoutvalid) *** ### isPassThroughParentEnabled ```ts isPassThroughParentEnabled: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L115) 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. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isPassThroughParentEnabled`](LayoutBase.md#ispassthroughparentenabled) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isUserInteractionEnabled`](LayoutBase.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`left`](LayoutBase.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`margin`](LayoutBase.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginBottom`](LayoutBase.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginLeft`](LayoutBase.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginRight`](LayoutBase.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minHeight`](LayoutBase.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`LayoutBase`](LayoutBase.md).[`mIsRootView`](LayoutBase.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`LayoutBase`](LayoutBase.md).[`modal`](LayoutBase.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeBackgroundState`](LayoutBase.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeViewProtected`](LayoutBase.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`opacity`](LayoutBase.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`order`](LayoutBase.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`originX`](LayoutBase.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`originY`](LayoutBase.md#originy) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/layouts/layout-base.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L71) Gets or sets padding style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`padding`](LayoutBase.md#padding) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L78) Specify the bottom padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingBottom`](LayoutBase.md#paddingbottom) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L85) Specify the left padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingLeft`](LayoutBase.md#paddingleft) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L92) Specify the right padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingRight`](LayoutBase.md#paddingright) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L99) Specify the top padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingTop`](LayoutBase.md#paddingtop) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`LayoutBase`](LayoutBase.md).[`parent`](LayoutBase.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`perspective`](LayoutBase.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`recycleNativeView`](LayoutBase.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`reusable`](LayoutBase.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotate`](LayoutBase.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotateX`](LayoutBase.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotateY`](LayoutBase.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`row`](LayoutBase.md#row) *** ### rows ```ts rows: string; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L59) A string value representing row heights delimited with commas. Valid values: an absolute number, auto, or \*: #### Ns Property *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rowSpan`](LayoutBase.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`scaleX`](LayoutBase.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`scaleY`](LayoutBase.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`sharedTransitionIgnore`](LayoutBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`sharedTransitionTag`](LayoutBase.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`statusBarStyle`](LayoutBase.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`testID`](LayoutBase.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`top`](LayoutBase.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchDelay`](LayoutBase.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`LayoutBase`](LayoutBase.md).[`transitionId`](LayoutBase.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`translateX`](LayoutBase.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`translateY`](LayoutBase.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`verticalAlignment`](LayoutBase.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`LayoutBase`](LayoutBase.md).[`viewController`](LayoutBase.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visibility`](LayoutBase.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visionHoverStyle`](LayoutBase.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visionIgnoreHoverStyle`](LayoutBase.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`width`](LayoutBase.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityBlurEvent`](LayoutBase.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityFocusChangedEvent`](LayoutBase.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityFocusEvent`](LayoutBase.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityPerformEscapeEvent`](LayoutBase.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`LayoutBase`](LayoutBase.md).[`createdEvent`](LayoutBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`LayoutBase`](LayoutBase.md).[`disposeNativeViewEvent`](LayoutBase.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutChangedEvent`](LayoutBase.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`LayoutBase`](LayoutBase.md).[`loadedEvent`](LayoutBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`LayoutBase`](LayoutBase.md).[`propertyChangeEvent`](LayoutBase.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`showingModallyEvent`](LayoutBase.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`shownModallyEvent`](LayoutBase.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`LayoutBase`](LayoutBase.md).[`unloadedEvent`](LayoutBase.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundPosition`](LayoutBase.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundRepeat`](LayoutBase.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundSize`](LayoutBase.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`class`](LayoutBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingBottom`](LayoutBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingLeft`](LayoutBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingRight`](LayoutBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingTop`](LayoutBase.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`isLoaded`](LayoutBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeView`](LayoutBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`page`](LayoutBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`parentNode`](LayoutBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`style`](LayoutBase.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`textTransform`](LayoutBase.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`typeName`](LayoutBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`visualState`](LayoutBase.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addView`](LayoutBase.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addViewCore`](LayoutBase.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addViewToNativeVisualTree`](LayoutBase.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_applyGlassEffect`](LayoutBase.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_applyXmlAttribute`](LayoutBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_batchUpdate`](LayoutBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_childIndexToNativeChildIndex`](LayoutBase.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_closeAllModalViewsInternal`](LayoutBase.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_createPropertyChangeData`](LayoutBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_dialogClosed`](LayoutBase.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_eachLayoutView`](LayoutBase.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_emit`](LayoutBase.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalViews`](LayoutBase.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getValue`](LayoutBase.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_handleLivesync`](LayoutBase.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_hasAncestorView`](LayoutBase.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_hideNativeModalView`](LayoutBase.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_inheritStyles`](LayoutBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_inheritStyleScope`](LayoutBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_layoutParent`](LayoutBase.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_observe`](LayoutBase.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onAttachedToWindow`](LayoutBase.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onDetachedFromWindow`](LayoutBase.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onRootViewReset`](LayoutBase.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onSizeChanged`](LayoutBase.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_parentChanged`](LayoutBase.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseLayoutChangedEvent`](LayoutBase.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseShowingModallyEvent`](LayoutBase.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseShownModallyEvent`](LayoutBase.md#raiseshownmodallyevent) *** ### \_registerLayoutChild() ```ts _registerLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L53) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_registerLayoutChild`](LayoutBase.md#registerlayoutchild) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeView`](LayoutBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeViewCore`](LayoutBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeViewFromNativeVisualTree`](LayoutBase.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_resumeNativeUpdates`](LayoutBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setDefaultPaddings`](LayoutBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setupAsRootView`](LayoutBase.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setupUI`](LayoutBase.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setValue`](LayoutBase.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_shouldDelayLayout`](LayoutBase.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_showNativeModalView`](LayoutBase.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_suspendNativeUpdates`](LayoutBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_tearDownUI`](LayoutBase.md#teardownui) *** ### \_unregisterLayoutChild() ```ts _unregisterLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L58) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_unregisterLayoutChild`](LayoutBase.md#unregisterlayoutchild) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_updateStyleScope`](LayoutBase.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityAnnouncement`](LayoutBase.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityScreenChanged`](LayoutBase.md#accessibilityscreenchanged) *** ### addChild() ```ts addChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L30) Adds the view to children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to be added to the end of the children array. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`addChild`](LayoutBase.md#addchild) *** ### addChildAtCell() ```ts addChildAtCell( view: View, row: number, column: number, rowSpan?: number, columnSpan?: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:122](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L122) Adds a child at specific cell in GridLayout. Optional rowSpan and columnSpan attributes #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `row` | `number` | | `column` | `number` | | `rowSpan?` | `number` | | `columnSpan?` | `number` | #### Returns `void` *** ### addColumn() ```ts addColumn(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:112](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L112) Adds a column specification to a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`addEventListener`](LayoutBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`LayoutBase`](LayoutBase.md).[`addPseudoClass`](LayoutBase.md#addpseudoclass) *** ### addRow() ```ts addRow(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L117) Adds a row specification to a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`animate`](LayoutBase.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`bind`](LayoutBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`callLoaded`](LayoutBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`callUnloaded`](LayoutBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`closeModal`](LayoutBase.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`createAnimation`](LayoutBase.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`LayoutBase`](LayoutBase.md).[`createNativeView`](LayoutBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`LayoutBase`](LayoutBase.md).[`deletePseudoClass`](LayoutBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`LayoutBase`](LayoutBase.md).[`destroyNode`](LayoutBase.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`disposeNativeView`](LayoutBase.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachChild`](LayoutBase.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachChildView`](LayoutBase.md#eachchildview) *** ### eachLayoutChild() ```ts eachLayoutChild(callback: (child: View, isLast: boolean) => void): void; ``` Defined in: [ui/layouts/layout-base.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L64) Calls the callback for each child that should be laid out. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md), `isLast`: `boolean`) => `void` | The callback | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachLayoutChild`](LayoutBase.md#eachlayoutchild) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`ensureDomNode`](LayoutBase.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`focus`](LayoutBase.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`get`](LayoutBase.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getActualSize`](LayoutBase.md#getactualsize) *** ### getChildAt() ```ts getChildAt(index: number): View; ``` Defined in: [ui/layouts/layout-base.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L18) Returns the view at the specified position. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | The position at which to get the child from. | #### Returns [`View`](View.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildAt`](LayoutBase.md#getchildat) *** ### getChildIndex() ```ts getChildIndex(child: View): number; ``` Defined in: [ui/layouts/layout-base.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L24) Returns the position of the child view #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | The child view that we are looking for. | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildIndex`](LayoutBase.md#getchildindex) *** ### getChildrenCount() ```ts getChildrenCount(): number; ``` Defined in: [ui/layouts/layout-base.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L12) Returns the number of children in this Layout. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildrenCount`](LayoutBase.md#getchildrencount) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getClosestWindow`](LayoutBase.md#getclosestwindow) *** ### getColumns() ```ts getColumns(): ItemSpec[]; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:147](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L147) Gets array of column specifications defined on this instance of GridLayout. #### Returns [`ItemSpec`](ItemSpec.md)\[] *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getEffectivePaddingShorthand`](LayoutBase.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`LayoutBase`](LayoutBase.md).[`getGestureObservers`](LayoutBase.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationInWindow`](LayoutBase.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationOnScreen`](LayoutBase.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationRelativeTo`](LayoutBase.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredHeight`](LayoutBase.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getRows() ```ts getRows(): ItemSpec[]; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L152) Gets array of row specifications defined on this instance of GridLayout. #### Returns [`ItemSpec`](ItemSpec.md)\[] *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getSafeAreaInsets`](LayoutBase.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getViewByDomId`](LayoutBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getViewById`](LayoutBase.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`hasGestureObservers`](LayoutBase.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`hasListeners`](LayoutBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`initNativeView`](LayoutBase.md#initnativeview) *** ### insertChild() ```ts insertChild(child: View, atIndex: number): boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L37) Inserts the view to children array at the specified index. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | - | | `atIndex` | `number` | The insertion index. | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`insertChild`](LayoutBase.md#insertchild) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layout`](LayoutBase.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutNativeView`](LayoutBase.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`loadView`](LayoutBase.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`measure`](LayoutBase.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`notify`](LayoutBase.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`notifyPropertyChange`](LayoutBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`off`](LayoutBase.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onBackPressed`](LayoutBase.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`once`](LayoutBase.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onLayout`](LayoutBase.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onLoaded`](LayoutBase.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onMeasure`](LayoutBase.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onResumeNativeUpdates`](LayoutBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onUnloaded`](LayoutBase.md#onunloaded) *** ### removeChild() ```ts removeChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L43) Removes the specified view from the children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to remove from the children array. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeChild`](LayoutBase.md#removechild) *** ### removeChildren() ```ts removeChildren(): void; ``` Defined in: [ui/layouts/layout-base.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L48) Removes all views in this layout. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeChildren`](LayoutBase.md#removechildren) *** ### removeColumn() ```ts removeColumn(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L127) Removes a column specification from a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` *** ### removeColumns() ```ts removeColumns(): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L132) Removes all column specifications from a GridLayout. #### Returns `void` *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeEventListener`](LayoutBase.md#removeeventlistener) *** ### removeRow() ```ts removeRow(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:137](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L137) Removes a row specification from a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` *** ### removeRows() ```ts removeRows(): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:142](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L142) Removes all row specifications from a GridLayout. #### Returns `void` *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`requestLayout`](LayoutBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`resetNativeView`](LayoutBase.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`LayoutBase`](LayoutBase.md).[`sendAccessibilityEvent`](LayoutBase.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`set`](LayoutBase.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setAccessibilityIdentifier`](LayoutBase.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setInlineStyle`](LayoutBase.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setMeasuredDimension`](LayoutBase.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setNativeView`](LayoutBase.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setOnTouchListener`](LayoutBase.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setProperty`](LayoutBase.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`showModal`](LayoutBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`toString`](LayoutBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`unbind`](LayoutBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`unloadView`](LayoutBase.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`updateStatusBarStyle`](LayoutBase.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`addEventListener`](LayoutBase.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`combineMeasuredStates`](LayoutBase.md#combinemeasuredstates) *** ### getColumn() ```ts static getColumn(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L72) Gets the value of the Column attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` *** ### getColumnSpan() ```ts static getColumnSpan(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L82) Gets the value of the ColumnSpan attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` *** ### getRow() ```ts static getRow(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L92) Gets the value of the Row attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` *** ### getRowSpan() ```ts static getRowSpan(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L102) Gets the value of the RowSpan attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutChild`](LayoutBase.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`LayoutBase`](LayoutBase.md).[`measureChild`](LayoutBase.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`off`](LayoutBase.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`once`](LayoutBase.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeEventListener`](LayoutBase.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`resolveSizeAndState`](LayoutBase.md#resolvesizeandstate) *** ### setColumn() ```ts static setColumn(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:77](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L77) Sets the value of the Column attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` *** ### setColumnSpan() ```ts static setColumnSpan(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:87](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L87) Sets the value of the ColumnSpan attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` *** ### setRow() ```ts static setRow(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:97](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L97) Sets the value of the Row attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` *** ### setRowSpan() ```ts static setRowSpan(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L107) Sets the value of the RowSpan attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` --- --- url: 'https://docs.nativescript.org/api/classes/HtmlView.md' description: >- Represents a view with html content. Use this component instead WebView when you want to show just static HTML content. [iOS support](https://developer.apple... --- Defined in: [ui/html-view/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/html-view/index.d.ts#L12) Represents a view with html content. Use this component instead WebView when you want to show just static HTML content. [iOS support](https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata) [android support](http://developer.android.com/reference/android/text/Html.html) ## Ns View HtmlView ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new HtmlView(): HtmlView; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `HtmlView` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`View`](View.md).[`_androidContentDescriptionUpdated`](View.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_automaticallyAdjustsScrollViewInsets`](View.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`_closeModalCallback`](View.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_context`](View.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_cssState`](View.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingBottom`](View.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingLeft`](View.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingRight`](View.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingTop`](View.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_domId`](View.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_ignoreFlexMinWidthHeightReset`](View.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isAddedToNativeVisualTree`](View.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isPaddingRelative`](View.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldBottom`](View.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldLeft`](View.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldRight`](View.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldTop`](View.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_styleScope`](View.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`View`](View.md).[`_suspendNativeUpdatesCount`](View.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHidden`](View.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHint`](View.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIdentifier`](View.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLabel`](View.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLanguage`](View.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLiveRegion`](View.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityMediaSession`](View.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityRole`](View.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityState`](View.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityValue`](View.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`View`](View.md).[`accessible`](View.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`View`](View.md).[`alignSelf`](View.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/html-view/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/html-view/index.d.ts#L16) Gets the native [android widget](http://developer.android.com/reference/android/widget/TextView.html) that represents the user interface for this component. Valid only when running on Android OS. #### Overrides [`View`](View.md).[`android`](View.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidDynamicElevationOffset`](View.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidElevation`](View.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`androidOverflowEdge`](View.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`View`](View.md).[`background`](View.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundColor`](View.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundImage`](View.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`View`](View.md).[`bindingContext`](View.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomColor`](View.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomLeftRadius`](View.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomRightRadius`](View.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomWidth`](View.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderColor`](View.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftColor`](View.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftWidth`](View.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRadius`](View.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightColor`](View.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightWidth`](View.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopColor`](View.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopLeftRadius`](View.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopRightRadius`](View.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopWidth`](View.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderWidth`](View.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`View`](View.md).[`className`](View.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`col`](View.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`color`](View.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`colSpan`](View.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`column`](View.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`View`](View.md).[`columnSpan`](View.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`View`](View.md).[`cssType`](View.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`View`](View.md).[`defaultVisualState`](View.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](View.md).[`direction`](View.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`View`](View.md).[`dock`](View.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`domNode`](View.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderBottomWidth`](View.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderLeftWidth`](View.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderRightWidth`](View.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveHeight`](View.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveLeft`](View.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginBottom`](View.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginLeft`](View.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginRight`](View.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinHeight`](View.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveTop`](View.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveWidth`](View.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flex`](View.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`View`](View.md).[`flexFlow`](View.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flexGrow`](View.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`View`](View.md).[`flexShrink`](View.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`View`](View.md).[`flexWrapBefore`](View.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`View`](View.md).[`height`](View.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`View`](View.md).[`hidden`](View.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`View`](View.md).[`horizontalAlignment`](View.md#horizontalalignment) *** ### html ```ts html: string; ``` Defined in: [ui/html-view/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/html-view/index.d.ts#L27) Gets or sets html string for the HtmlView. #### Ns Property *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`View`](View.md).[`id`](View.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/html-view/index.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/html-view/index.d.ts#L21) Gets the native [UITextView](https://developer.apple.com/documentation/uikit/uitextview) that represents the user interface for this component. Valid only when running on iOS. #### Overrides [`View`](View.md).[`ios`](View.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityAdjustsFontSize`](View.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMaxFontScale`](View.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`View`](View.md).[`iosGlassEffect`](View.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosIgnoreSafeArea`](View.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeArea`](View.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeAreaEnabled`](View.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`View`](View.md).[`isCollapsed`](View.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isEnabled`](View.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`View`](View.md).[`isLayoutValid`](View.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isUserInteractionEnabled`](View.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`left`](View.md#left) *** ### linkColor ```ts linkColor: Color; ``` Defined in: [ui/html-view/index.d.ts:39](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/html-view/index.d.ts#L39) Gets of sets color of links in the rendered HTML. #### Ns Property *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`View`](View.md).[`margin`](View.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginBottom`](View.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginLeft`](View.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginRight`](View.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`View`](View.md).[`mIsRootView`](View.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`View`](View.md).[`modal`](View.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`View`](View.md).[`nativeBackgroundState`](View.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`View`](View.md).[`nativeViewProtected`](View.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`View`](View.md).[`opacity`](View.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`View`](View.md).[`order`](View.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originX`](View.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originY`](View.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`View`](View.md).[`parent`](View.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`perspective`](View.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`recycleNativeView`](View.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`View`](View.md).[`reusable`](View.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotate`](View.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateX`](View.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateY`](View.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`row`](View.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`rowSpan`](View.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleX`](View.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleY`](View.md#scaley) *** ### selectable ```ts selectable: boolean; ``` Defined in: [ui/html-view/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/html-view/index.d.ts#L33) Gets or sets a value indicating whether HtmlView is selectable. #### Ns Property *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionIgnore`](View.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionTag`](View.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`View`](View.md).[`statusBarStyle`](View.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`top`](View.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`View`](View.md).[`touchDelay`](View.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`View`](View.md).[`transitionId`](View.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateX`](View.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateY`](View.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`View`](View.md).[`verticalAlignment`](View.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`View`](View.md).[`viewController`](View.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`View`](View.md).[`visibility`](View.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionHoverStyle`](View.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionIgnoreHoverStyle`](View.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`width`](View.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`View`](View.md).[`accessibilityBlurEvent`](View.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`View`](View.md).[`accessibilityFocusChangedEvent`](View.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`View`](View.md).[`accessibilityFocusEvent`](View.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`accessibilityPerformEscapeEvent`](View.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`View`](View.md).[`createdEvent`](View.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`View`](View.md).[`disposeNativeViewEvent`](View.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`View`](View.md).[`layoutChangedEvent`](View.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`View`](View.md).[`loadedEvent`](View.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`View`](View.md).[`propertyChangeEvent`](View.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`View`](View.md).[`showingModallyEvent`](View.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`View`](View.md).[`unloadedEvent`](View.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundPosition`](View.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundRepeat`](View.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundSize`](View.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`class`](View.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingBottom`](View.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingLeft`](View.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingRight`](View.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingTop`](View.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`View`](View.md).[`isLoaded`](View.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`View`](View.md).[`nativeView`](View.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`View`](View.md).[`page`](View.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`parentNode`](View.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`style`](View.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`textTransform`](View.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`View`](View.md).[`typeName`](View.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](View.md).[`visualState`](View.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addView`](View.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addViewCore`](View.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_addViewToNativeVisualTree`](View.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`View`](View.md).[`_applyGlassEffect`](View.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`View`](View.md).[`_applyXmlAttribute`](View.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`View`](View.md).[`_batchUpdate`](View.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`_childIndexToNativeChildIndex`](View.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`View`](View.md).[`_closeAllModalViewsInternal`](View.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`View`](View.md).[`_createPropertyChangeData`](View.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_dialogClosed`](View.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_eachLayoutView`](View.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`_emit`](View.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`View`](View.md).[`_getRootModalViews`](View.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_getValue`](View.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_handleLivesync`](View.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_hasAncestorView`](View.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_hideNativeModalView`](View.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyles`](View.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyleScope`](View.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_layoutParent`](View.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_observe`](View.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onAttachedToWindow`](View.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onDetachedFromWindow`](View.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_onRootViewReset`](View.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`View`](View.md).[`_onSizeChanged`](View.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_parentChanged`](View.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseLayoutChangedEvent`](View.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShowingModallyEvent`](View.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShownModallyEvent`](View.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeView`](View.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewCore`](View.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewFromNativeVisualTree`](View.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_resumeNativeUpdates`](View.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setDefaultPaddings`](View.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupAsRootView`](View.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupUI`](View.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_setValue`](View.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`View`](View.md).[`_shouldDelayLayout`](View.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_showNativeModalView`](View.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_suspendNativeUpdates`](View.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_tearDownUI`](View.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`View`](View.md).[`_updateStyleScope`](View.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityAnnouncement`](View.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityScreenChanged`](View.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`View`](View.md).[`addPseudoClass`](View.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`View`](View.md).[`animate`](View.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`View`](View.md).[`bind`](View.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callLoaded`](View.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callUnloaded`](View.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`View`](View.md).[`closeModal`](View.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`View`](View.md).[`createAnimation`](View.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`View`](View.md).[`createNativeView`](View.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`View`](View.md).[`deletePseudoClass`](View.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`View`](View.md).[`destroyNode`](View.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`disposeNativeView`](View.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChild`](View.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChildView`](View.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`View`](View.md).[`ensureDomNode`](View.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`View`](View.md).[`focus`](View.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`View`](View.md).[`get`](View.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`View`](View.md).[`getActualSize`](View.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`View`](View.md).[`getClosestWindow`](View.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`View`](View.md).[`getEffectivePaddingShorthand`](View.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`View`](View.md).[`getGestureObservers`](View.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationInWindow`](View.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationOnScreen`](View.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationRelativeTo`](View.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredHeight`](View.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`View`](View.md).[`getSafeAreaInsets`](View.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewByDomId`](View.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewById`](View.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasGestureObservers`](View.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasListeners`](View.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`initNativeView`](View.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`layout`](View.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutNativeView`](View.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`View`](View.md).[`loadView`](View.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`View`](View.md).[`measure`](View.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`View`](View.md).[`notify`](View.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`notifyPropertyChange`](View.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`View`](View.md).[`off`](View.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`View`](View.md).[`onBackPressed`](View.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`View`](View.md).[`once`](View.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`onLayout`](View.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onLoaded`](View.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`View`](View.md).[`onMeasure`](View.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onResumeNativeUpdates`](View.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onUnloaded`](View.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`View`](View.md).[`requestLayout`](View.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`resetNativeView`](View.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`View`](View.md).[`sendAccessibilityEvent`](View.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`set`](View.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setAccessibilityIdentifier`](View.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setInlineStyle`](View.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`View`](View.md).[`setMeasuredDimension`](View.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setNativeView`](View.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`View`](View.md).[`setOnTouchListener`](View.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setProperty`](View.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`View`](View.md).[`showModal`](View.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`View`](View.md).[`toString`](View.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`unbind`](View.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`View`](View.md).[`unloadView`](View.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`View`](View.md).[`updateStatusBarStyle`](View.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`View`](View.md).[`combineMeasuredStates`](View.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutChild`](View.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`View`](View.md).[`measureChild`](View.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`off`](View.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`on`](View.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`once`](View.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`resolveSizeAndState`](View.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/Image.md' description: >- Represents a class that provides functionality for loading and streching image(s). --- Defined in: [ui/image/index.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L18) Represents a class that provides functionality for loading and streching image(s). ## Ns View Image ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new Image(): Image; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `Image` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`View`](View.md).[`_androidContentDescriptionUpdated`](View.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_automaticallyAdjustsScrollViewInsets`](View.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`_closeModalCallback`](View.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_context`](View.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_cssState`](View.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingBottom`](View.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingLeft`](View.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingRight`](View.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingTop`](View.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_domId`](View.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_ignoreFlexMinWidthHeightReset`](View.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isAddedToNativeVisualTree`](View.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isPaddingRelative`](View.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldBottom`](View.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldLeft`](View.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldRight`](View.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldTop`](View.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_styleScope`](View.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`View`](View.md).[`_suspendNativeUpdatesCount`](View.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHidden`](View.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHint`](View.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIdentifier`](View.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLabel`](View.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLanguage`](View.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLiveRegion`](View.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityMediaSession`](View.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityRole`](View.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityState`](View.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityValue`](View.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`View`](View.md).[`accessible`](View.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`View`](View.md).[`alignSelf`](View.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/image/index.d.ts:28](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L28) Gets the native [android widget](http://developer.android.com/reference/android/widget/ImageView.html) that represents the user interface for this component. Valid only when running on Android OS. #### Overrides [`View`](View.md).[`android`](View.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidDynamicElevationOffset`](View.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidElevation`](View.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`androidOverflowEdge`](View.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`View`](View.md).[`background`](View.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundColor`](View.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundImage`](View.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`View`](View.md).[`bindingContext`](View.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomColor`](View.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomLeftRadius`](View.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomRightRadius`](View.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomWidth`](View.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderColor`](View.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftColor`](View.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftWidth`](View.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRadius`](View.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightColor`](View.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightWidth`](View.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopColor`](View.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopLeftRadius`](View.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopRightRadius`](View.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopWidth`](View.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderWidth`](View.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`View`](View.md).[`className`](View.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`col`](View.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`color`](View.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`colSpan`](View.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`column`](View.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`View`](View.md).[`columnSpan`](View.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`View`](View.md).[`cssType`](View.md#csstype) *** ### decodeHeight ```ts decodeHeight: LengthType; ``` Defined in: [ui/image/index.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L85) Gets or sets the desired decode height of the image. This property is Android specific. #### Ns Property *** ### decodeWidth ```ts decodeWidth: LengthType; ``` Defined in: [ui/image/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L93) Gets or sets the desired decode width of the image. This property is Android specific. #### Ns Property *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`View`](View.md).[`defaultVisualState`](View.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](View.md).[`direction`](View.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`View`](View.md).[`dock`](View.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`domNode`](View.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderBottomWidth`](View.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderLeftWidth`](View.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderRightWidth`](View.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveHeight`](View.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveLeft`](View.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginBottom`](View.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginLeft`](View.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginRight`](View.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinHeight`](View.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveTop`](View.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveWidth`](View.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flex`](View.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`View`](View.md).[`flexFlow`](View.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flexGrow`](View.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`View`](View.md).[`flexShrink`](View.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`View`](View.md).[`flexWrapBefore`](View.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`View`](View.md).[`height`](View.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`View`](View.md).[`hidden`](View.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`View`](View.md).[`horizontalAlignment`](View.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`View`](View.md).[`id`](View.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### imageSource ```ts imageSource: ImageSource; ``` Defined in: [ui/image/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L40) Gets or sets the image source of the image. #### Ns Property *** ### ios ```ts ios: any; ``` Defined in: [ui/image/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L33) Gets the native iOS [UIImageView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImageView_Class/) that represents the user interface for this component. Valid only when running on iOS. #### Overrides [`View`](View.md).[`ios`](View.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityAdjustsFontSize`](View.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMaxFontScale`](View.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`View`](View.md).[`iosGlassEffect`](View.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosIgnoreSafeArea`](View.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeArea`](View.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeAreaEnabled`](View.md#iosoverflowsafeareaenabled) *** ### iosSymbolEffect ```ts iosSymbolEffect: | ImageSymbolEffect | ImageSymbolEffects; ``` Defined in: [ui/image/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L100) Get or set the symbol effect used to animate the SF symbol image Symbol effects: https://developer.apple.com/documentation/symbols?language=objc #### Ns Property *** ### iosSymbolScale ```ts iosSymbolScale: iosSymbolScaleType; ``` Defined in: [ui/image/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L107) Get or set the SF Symbol scale to use. #### Ns Property *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`View`](View.md).[`isCollapsed`](View.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isEnabled`](View.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`View`](View.md).[`isLayoutValid`](View.md#islayoutvalid) *** ### isLoading ```ts readonly isLoading: boolean; ``` Defined in: [ui/image/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L52) Gets a value indicating if the image is currently loading. *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isUserInteractionEnabled`](View.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`left`](View.md#left) *** ### loadMode ```ts loadMode: "sync" | "async"; ``` Defined in: [ui/image/index.d.ts:69](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L69) Gets or sets the loading strategy for images on the local file system: * **sync** - blocks the UI if necessary to display immediately, good for small icons. * **async** *(default)* - will load in the background, may appear with short delay, good for large images. When loading images from web they are always loaded **async** no matter of loadMode value. #### Ns Property *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`View`](View.md).[`margin`](View.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginBottom`](View.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginLeft`](View.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginRight`](View.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`View`](View.md).[`mIsRootView`](View.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`View`](View.md).[`modal`](View.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`View`](View.md).[`nativeBackgroundState`](View.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`View`](View.md).[`nativeViewProtected`](View.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`View`](View.md).[`opacity`](View.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`View`](View.md).[`order`](View.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originX`](View.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originY`](View.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`View`](View.md).[`parent`](View.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`perspective`](View.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`recycleNativeView`](View.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`View`](View.md).[`reusable`](View.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotate`](View.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateX`](View.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateY`](View.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`row`](View.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`rowSpan`](View.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleX`](View.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleY`](View.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionIgnore`](View.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionTag`](View.md#sharedtransitiontag) *** ### src ```ts src: string | ImageSource | ImageAsset; ``` Defined in: [ui/image/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L47) Gets or sets the source of the Image. This can be either an URL string or a native image instance. #### Ns Property *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`View`](View.md).[`statusBarStyle`](View.md#statusbarstyle) *** ### stretch ```ts stretch: ImageStretchType; ``` Defined in: [ui/image/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L59) Gets or sets the image stretch mode. #### Ns Property *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### tintColor ```ts tintColor: Color; ``` Defined in: [ui/image/index.d.ts:76](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L76) A color used to tint template images. #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`top`](View.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`View`](View.md).[`touchDelay`](View.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`View`](View.md).[`transitionId`](View.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateX`](View.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateY`](View.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`View`](View.md).[`verticalAlignment`](View.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`View`](View.md).[`viewController`](View.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`View`](View.md).[`visibility`](View.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionHoverStyle`](View.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionIgnoreHoverStyle`](View.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`width`](View.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`View`](View.md).[`accessibilityBlurEvent`](View.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`View`](View.md).[`accessibilityFocusChangedEvent`](View.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`View`](View.md).[`accessibilityFocusEvent`](View.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`accessibilityPerformEscapeEvent`](View.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`View`](View.md).[`createdEvent`](View.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`View`](View.md).[`disposeNativeViewEvent`](View.md#disposenativeviewevent) *** ### isLoadingChangeEvent ```ts static isLoadingChangeEvent: string; ``` Defined in: [ui/image/index.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/index.d.ts#L24) String value used when hooking to the isLoadingChange event. #### Ns Event isLoading *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`View`](View.md).[`layoutChangedEvent`](View.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`View`](View.md).[`loadedEvent`](View.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`View`](View.md).[`propertyChangeEvent`](View.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`View`](View.md).[`showingModallyEvent`](View.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`View`](View.md).[`unloadedEvent`](View.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundPosition`](View.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundRepeat`](View.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundSize`](View.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`class`](View.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingBottom`](View.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingLeft`](View.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingRight`](View.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingTop`](View.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`View`](View.md).[`isLoaded`](View.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`View`](View.md).[`nativeView`](View.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`View`](View.md).[`page`](View.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`parentNode`](View.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`style`](View.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`textTransform`](View.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`View`](View.md).[`typeName`](View.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](View.md).[`visualState`](View.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addView`](View.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addViewCore`](View.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_addViewToNativeVisualTree`](View.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`View`](View.md).[`_applyGlassEffect`](View.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`View`](View.md).[`_applyXmlAttribute`](View.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`View`](View.md).[`_batchUpdate`](View.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`_childIndexToNativeChildIndex`](View.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`View`](View.md).[`_closeAllModalViewsInternal`](View.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`View`](View.md).[`_createPropertyChangeData`](View.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_dialogClosed`](View.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_eachLayoutView`](View.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`_emit`](View.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`View`](View.md).[`_getRootModalViews`](View.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_getValue`](View.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_handleLivesync`](View.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_hasAncestorView`](View.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_hideNativeModalView`](View.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyles`](View.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyleScope`](View.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_layoutParent`](View.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_observe`](View.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onAttachedToWindow`](View.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onDetachedFromWindow`](View.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_onRootViewReset`](View.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`View`](View.md).[`_onSizeChanged`](View.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_parentChanged`](View.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseLayoutChangedEvent`](View.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShowingModallyEvent`](View.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShownModallyEvent`](View.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeView`](View.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewCore`](View.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewFromNativeVisualTree`](View.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_resumeNativeUpdates`](View.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setDefaultPaddings`](View.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupAsRootView`](View.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupUI`](View.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_setValue`](View.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`View`](View.md).[`_shouldDelayLayout`](View.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_showNativeModalView`](View.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_suspendNativeUpdates`](View.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_tearDownUI`](View.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`View`](View.md).[`_updateStyleScope`](View.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityAnnouncement`](View.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityScreenChanged`](View.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`View`](View.md).[`addPseudoClass`](View.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`View`](View.md).[`animate`](View.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`View`](View.md).[`bind`](View.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callLoaded`](View.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callUnloaded`](View.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`View`](View.md).[`closeModal`](View.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`View`](View.md).[`createAnimation`](View.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`View`](View.md).[`createNativeView`](View.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`View`](View.md).[`deletePseudoClass`](View.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`View`](View.md).[`destroyNode`](View.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`disposeNativeView`](View.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChild`](View.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChildView`](View.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`View`](View.md).[`ensureDomNode`](View.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`View`](View.md).[`focus`](View.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`View`](View.md).[`get`](View.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`View`](View.md).[`getActualSize`](View.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`View`](View.md).[`getClosestWindow`](View.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`View`](View.md).[`getEffectivePaddingShorthand`](View.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`View`](View.md).[`getGestureObservers`](View.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationInWindow`](View.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationOnScreen`](View.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationRelativeTo`](View.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredHeight`](View.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`View`](View.md).[`getSafeAreaInsets`](View.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewByDomId`](View.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewById`](View.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasGestureObservers`](View.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasListeners`](View.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`initNativeView`](View.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`layout`](View.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutNativeView`](View.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`View`](View.md).[`loadView`](View.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`View`](View.md).[`measure`](View.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`View`](View.md).[`notify`](View.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`notifyPropertyChange`](View.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`View`](View.md).[`off`](View.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`View`](View.md).[`onBackPressed`](View.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`View`](View.md).[`once`](View.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`onLayout`](View.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onLoaded`](View.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`View`](View.md).[`onMeasure`](View.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onResumeNativeUpdates`](View.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onUnloaded`](View.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`View`](View.md).[`requestLayout`](View.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`resetNativeView`](View.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`View`](View.md).[`sendAccessibilityEvent`](View.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`set`](View.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setAccessibilityIdentifier`](View.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setInlineStyle`](View.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`View`](View.md).[`setMeasuredDimension`](View.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setNativeView`](View.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`View`](View.md).[`setOnTouchListener`](View.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setProperty`](View.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`View`](View.md).[`showModal`](View.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`View`](View.md).[`toString`](View.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`unbind`](View.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`View`](View.md).[`unloadView`](View.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`View`](View.md).[`updateStatusBarStyle`](View.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`View`](View.md).[`combineMeasuredStates`](View.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutChild`](View.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`View`](View.md).[`measureChild`](View.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`off`](View.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`on`](View.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`once`](View.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`resolveSizeAndState`](View.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/ImageAsset.md' description: >- 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 `ne... --- Defined in: [image-asset/index.d.ts:3](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-asset/index.d.ts#L3) 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. ## Extends * [`Observable`](Observable.md) ## Constructors ### Constructor ```ts new ImageAsset(asset: any): ImageAsset; ``` Defined in: [image-asset/index.d.ts:4](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-asset/index.d.ts#L4) #### Parameters | Parameter | Type | | ------ | ------ | | `asset` | `any` | #### Returns `ImageAsset` #### Overrides [`Observable`](Observable.md).[`constructor`](Observable.md#constructor) ## Properties ### android ```ts android: any; ``` Defined in: [image-asset/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-asset/index.d.ts#L8) *** ### ios ```ts ios: any; ``` Defined in: [image-asset/index.d.ts:6](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-asset/index.d.ts#L6) *** ### nativeImage ```ts nativeImage: any; ``` Defined in: [image-asset/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-asset/index.d.ts#L7) *** ### options ```ts options: ImageAssetOptions; ``` Defined in: [image-asset/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-asset/index.d.ts#L9) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`Observable`](Observable.md).[`propertyChangeEvent`](Observable.md#propertychangeevent) ## Methods ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`Observable`](Observable.md).[`_createPropertyChangeData`](Observable.md#createpropertychangedata) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`_emit`](Observable.md#emit) *** ### addEventListener() ```ts addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`addEventListener`](Observable.md#addeventlistener) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`Observable`](Observable.md).[`get`](Observable.md#get) *** ### getImageAsync() ```ts getImageAsync(callback: (image: any, error: any) => void): any; ``` Defined in: [image-asset/index.d.ts:5](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-asset/index.d.ts#L5) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`image`: `any`, `error`: `any`) => `void` | #### Returns `any` *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`Observable`](Observable.md).[`hasListeners`](Observable.md#haslisteners) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`notify`](Observable.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`notifyPropertyChange`](Observable.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`off`](Observable.md#off) *** ### on() ```ts on( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`on`](Observable.md#on) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`once`](Observable.md#once) *** ### removeEventListener() ```ts removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`removeEventListener`](Observable.md#removeeventlistener) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`set`](Observable.md#set) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`setProperty`](Observable.md#setproperty) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`addEventListener`](Observable.md#addeventlistener-1) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`off`](Observable.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`on`](Observable.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`once`](Observable.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`removeEventListener`](Observable.md#removeeventlistener-1) --- --- url: 'https://docs.nativescript.org/api/classes/ImageCache.md' description: >- Represents a class that stores handles image download requests and caches the already downloaded images. --- Defined in: [ui/image-cache/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L29) Represents a class that stores handles image download requests and caches the already downloaded images. ## Extends * [`Observable`](Observable.md) ## Constructors ### Constructor ```ts new ImageCache(): Cache; ``` #### Returns `Cache` #### Inherited from [`Observable`](Observable.md).[`constructor`](Observable.md#constructor) ## Properties ### maxRequests ```ts maxRequests: number; ``` Defined in: [ui/image-cache/index.d.ts:45](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L45) The maximum number of simultaneous download requests. Defaults to 5. *** ### placeholder ```ts placeholder: ImageSource; ``` Defined in: [ui/image-cache/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L41) The image to be used to notify for a pending download request - e.g. loading indicator. *** ### downloadedEvent ```ts static downloadedEvent: string; ``` Defined in: [ui/image-cache/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L33) String value used when hooking to downloaded event. *** ### downloadErrorEvent ```ts static downloadErrorEvent: string; ``` Defined in: [ui/image-cache/index.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L37) String value used when hooking to download error event. *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`Observable`](Observable.md).[`propertyChangeEvent`](Observable.md#propertychangeevent) ## Methods ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`Observable`](Observable.md).[`_createPropertyChangeData`](Observable.md#createpropertychangedata) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`_emit`](Observable.md#emit) *** ### addEventListener() ```ts addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`addEventListener`](Observable.md#addeventlistener) *** ### clear() ```ts clear(): void; ``` Defined in: [ui/image-cache/index.d.ts:80](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L80) Removes all the previously cached images. #### Returns `void` *** ### disableDownload() ```ts disableDownload(): void; ``` Defined in: [ui/image-cache/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L54) Temporary disables download requests. #### Returns `void` *** ### enableDownload() ```ts enableDownload(): void; ``` Defined in: [ui/image-cache/index.d.ts:50](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L50) Enables previously suspended download requests. #### Returns `void` *** ### enqueue() ```ts enqueue(request: DownloadRequest): any; ``` Defined in: [ui/image-cache/index.d.ts:63](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L63) Adds a new download request at the end of the download queue. This will be the last download to start. #### Parameters | Parameter | Type | | ------ | ------ | | `request` | [`DownloadRequest`](../interfaces/DownloadRequest.md) | #### Returns `any` *** ### get() ```ts get(key: string): any; ``` Defined in: [ui/image-cache/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L68) Gets the image for the specified key. May be undefined if the key is not present in the cache. #### Parameters | Parameter | Type | | ------ | ------ | | `key` | `string` | #### Returns `any` #### Overrides [`Observable`](Observable.md).[`get`](Observable.md#get) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`Observable`](Observable.md).[`hasListeners`](Observable.md#haslisteners) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`notify`](Observable.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`notifyPropertyChange`](Observable.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`off`](Observable.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/image-cache/index.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L92) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `void` ##### Overrides [`Observable`](Observable.md).[`on`](Observable.md#on) #### Call Signature ```ts on( event: "downloaded", callback: (args: DownloadedData) => void, thisArg?: any): void; ``` Defined in: [ui/image-cache/index.d.ts:97](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L97) Raised when the image has been downloaded. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"downloaded"` | | `callback` | (`args`: [`DownloadedData`](../interfaces/DownloadedData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` #### Call Signature ```ts on( event: "downloadError", callback: (args: DownloadError) => void, thisArg?: any): void; ``` Defined in: [ui/image-cache/index.d.ts:102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L102) Raised if the image download errors. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"downloadError"` | | `callback` | (`args`: [`DownloadError`](../interfaces/DownloadError.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides ```ts Observable.on ``` *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`once`](Observable.md#once) *** ### push() ```ts push(request: DownloadRequest): any; ``` Defined in: [ui/image-cache/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L59) Adds a new download request at the top of the download queue. This will be the next immediate download to start. #### Parameters | Parameter | Type | | ------ | ------ | | `request` | [`DownloadRequest`](../interfaces/DownloadRequest.md) | #### Returns `any` *** ### remove() ```ts remove(key: string): void; ``` Defined in: [ui/image-cache/index.d.ts:76](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L76) Removes the cache for the specified key. #### Parameters | Parameter | Type | | ------ | ------ | | `key` | `string` | #### Returns `void` *** ### removeEventListener() ```ts removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`removeEventListener`](Observable.md#removeeventlistener) *** ### set() ```ts set(key: string, image: any): void; ``` Defined in: [ui/image-cache/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image-cache/index.d.ts#L72) Sets the image for the specified key. #### Parameters | Parameter | Type | | ------ | ------ | | `key` | `string` | | `image` | `any` | #### Returns `void` #### Overrides [`Observable`](Observable.md).[`set`](Observable.md#set) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`setProperty`](Observable.md#setproperty) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`addEventListener`](Observable.md#addeventlistener-1) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`off`](Observable.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`on`](Observable.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`once`](Observable.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`removeEventListener`](Observable.md#removeeventlistener-1) --- --- url: 'https://docs.nativescript.org/api/classes/ImageSource.md' description: >- Encapsulates the common abstraction behind a platform specific object (typically a Bitmap) that is used as a source for images. --- Defined in: [image-source/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L8) Encapsulates the common abstraction behind a platform specific object (typically a Bitmap) that is used as a source for images. ## Constructors ### Constructor ```ts new ImageSource(nativeSource?: any): ImageSource; ``` Defined in: [image-source/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L131) Creates a new ImageSource instance and sets the provided native source object (typically a Bitmap). The native source object will update either the android or ios properties, depending on the target os. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `nativeSource?` | `any` | The native image object. Will be either a Bitmap for Android or a UIImage for iOS. | #### Returns `ImageSource` ## Properties ### android ```ts android: any; ``` Defined in: [image-source/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L32) The Android-specific [image](http://developer.android.com/reference/android/graphics/Bitmap.html) instance. Will be undefined when running on iOS. *** ### height ```ts height: number; ``` Defined in: [image-source/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L12) Gets the height of this instance. This is a read-only property. *** ### ios ```ts ios: any; ``` Defined in: [image-source/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L27) The iOS-specific [UIImage](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/) instance. Will be undefined when running on Android. *** ### rotationAngle ```ts rotationAngle: number; ``` Defined in: [image-source/index.d.ts:22](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L22) Gets or sets the rotation angle that should be applied to the image. (Used in android) *** ### width ```ts width: number; ``` Defined in: [image-source/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L17) Gets the width of this instance. This is a read-only property. ## Methods ### ~~fromAsset()~~ ```ts fromAsset(asset: ImageAsset): Promise; ``` Defined in: [image-source/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L138) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `asset` | [`ImageAsset`](ImageAsset.md) | The ImageAsset instance used to create ImageSource. | #### Returns `Promise`<`ImageSource`> #### Deprecated Use ImageSource.fromAsset() instead. Loads this instance from the specified asset asynchronously. *** ### ~~fromBase64()~~ ```ts fromBase64(source: string): Promise; ``` Defined in: [image-source/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L194) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `source` | `string` | The Base64 string to load the image from. | #### Returns `Promise`<`boolean`> #### Deprecated Use ImageSource.fromBase64() instead. Loads this instance from the specified base64 encoded string asynchronously. *** ### ~~fromData()~~ ```ts fromData(data: any): Promise; ``` Defined in: [image-source/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L180) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `any` | The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS. | #### Returns `Promise`<`boolean`> #### Deprecated Use ImageSource.fromData() instead. Loads this instance from the specified native image data asynchronously. *** ### ~~fromFile()~~ ```ts fromFile(path: string): Promise; ``` Defined in: [image-source/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L166) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The location of the file on the file system. | #### Returns `Promise`<`boolean`> #### Deprecated Use ImageSource.fromFile() instead. Loads this instance from the specified file asynchronously. *** ### ~~fromResource()~~ ```ts fromResource(name: string): Promise; ``` Defined in: [image-source/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L152) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | The name of the resource (without its extension). | #### Returns `Promise`<`boolean`> #### Deprecated Use ImageSource.fromResource() instead. Loads this instance from the specified resource name asynchronously. *** ### getNativeSource() ```ts getNativeSource(): any; ``` Defined in: [image-source/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L208) Gets the native source object (typically a Bitmap or a UIImage). #### Returns `any` *** ### ~~loadFromBase64()~~ ```ts loadFromBase64(source: string): boolean; ``` Defined in: [image-source/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L187) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `source` | `string` | The Base64 string to load the image from. | #### Returns `boolean` #### Deprecated Use ImageSource.fromBase64Sync() instead. Loads this instance from the specified base64 encoded string. *** ### ~~loadFromData()~~ ```ts loadFromData(data: any): boolean; ``` Defined in: [image-source/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L173) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `any` | The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS. | #### Returns `boolean` #### Deprecated Use ImageSource.fromDataSync() instead. Loads this instance from the specified native image data. *** ### ~~loadFromFile()~~ ```ts loadFromFile(path: string): boolean; ``` Defined in: [image-source/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L159) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The location of the file on the file system. | #### Returns `boolean` #### Deprecated Use ImageSource.fromFileSync() instead. Loads this instance from the specified file. *** ### ~~loadFromFontIconCode()~~ ```ts loadFromFontIconCode( source: string, font: Font, color: Color): boolean; ``` Defined in: [image-source/index.d.ts:203](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L203) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `source` | `string` | The hex font icon code string | | `font` | [`Font`](Font.md) | The font for the corresponding font icon code | | `color` | [`Color`](Color.md) | The color of the generated icon image | #### Returns `boolean` #### Deprecated Use ImageSource.fromFontIconCode() instead. Loads this instance from the specified font icon code. *** ### ~~loadFromResource()~~ ```ts loadFromResource(name: string): boolean; ``` Defined in: [image-source/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L145) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | The name of the resource (without its extension). | #### Returns `boolean` #### Deprecated Use ImageSource.fromResourceSync() instead. Loads this instance from the specified resource name. *** ### resize() ```ts resize(maxSize: number, options?: any): ImageSource; ``` Defined in: [image-source/index.d.ts:258](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L258) Returns a new ImageSource that is a resized version of this image with the same aspect ratio, but the max dimension set to the provided maxSize. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `maxSize` | `number` | The maximum pixel dimension of the resulting image. | | `options?` | `any` | Optional parameter, Only used for android, options.filter is a boolean which determines whether or not bilinear filtering should be used when scaling the bitmap. If this is true then bilinear filtering will be used when scaling which has better image quality at the cost of worse performance. If this is false then nearest-neighbor scaling is used instead which will have worse image quality but is faster. Recommended default is to set filter to 'true' as the cost of bilinear filtering is typically minimal and the improved image quality is significant. | #### Returns `ImageSource` *** ### resizeAsync() ```ts resizeAsync(maxSize: number, options?: any): Promise; ``` Defined in: [image-source/index.d.ts:271](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L271) Returns a new ImageSource that is a resized version of this image with the same aspect ratio, but the max dimension set to the provided maxSize asynchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `maxSize` | `number` | The maximum pixel dimension of the resulting image. | | `options?` | `any` | Optional parameter, Only used for android, options.filter is a boolean which determines whether or not bilinear filtering should be used when scaling the bitmap. If this is true then bilinear filtering will be used when scaling which has better image quality at the cost of worse performance. If this is false then nearest-neighbor scaling is used instead which will have worse image quality but is faster. Recommended default is to set filter to 'true' as the cost of bilinear filtering is typically minimal and the improved image quality is significant. | #### Returns `Promise`<`ImageSource`> *** ### saveToFile() ```ts saveToFile( path: string, format: "png" | "jpeg" | "jpg", quality?: number): boolean; ``` Defined in: [image-source/index.d.ts:223](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L223) Saves this instance to the specified file, using the provided image format and quality. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The path of the file on the file system to save to. | | `format` | `"png"` | `"jpeg"` | `"jpg"` | The format (encoding) of the image. | | `quality?` | `number` | Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100. | #### Returns `boolean` *** ### saveToFileAsync() ```ts saveToFileAsync( path: string, format: "png" | "jpeg" | "jpg", quality?: number): Promise; ``` Defined in: [image-source/index.d.ts:231](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L231) Saves this instance to the specified file, using the provided image format and quality asynchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The path of the file on the file system to save to. | | `format` | `"png"` | `"jpeg"` | `"jpg"` | The format (encoding) of the image. | | `quality?` | `number` | Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100. | #### Returns `Promise`<`boolean`> *** ### setNativeSource() ```ts setNativeSource(nativeSource: any): void; ``` Defined in: [image-source/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L215) Sets the provided native source object (typically a Bitmap or a UIImage). This will update either the android or ios properties, depending on the target os. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `nativeSource` | `any` | The native image object. Will be either a Bitmap for Android or a UIImage for iOS. | #### Returns `void` *** ### toBase64String() ```ts toBase64String(format: "png" | "jpeg" | "jpg", quality?: number): string; ``` Defined in: [image-source/index.d.ts:238](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L238) Converts the image to base64 encoded string, using the provided image format and quality. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `format` | `"png"` | `"jpeg"` | `"jpg"` | The format (encoding) of the image. | | `quality?` | `number` | Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100. | #### Returns `string` *** ### toBase64StringAsync() ```ts toBase64StringAsync(format: "png" | "jpeg" | "jpg", quality?: number): Promise; ``` Defined in: [image-source/index.d.ts:245](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L245) Converts the image to base64 encoded string, using the provided image format and quality asynchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `format` | `"png"` | `"jpeg"` | `"jpg"` | The format (encoding) of the image. | | `quality?` | `number` | Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100. | #### Returns `Promise`<`string`> *** ### fromAsset() ```ts static fromAsset(asset: ImageAsset): Promise; ``` Defined in: [image-source/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L38) Loads this instance from the specified asset asynchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `asset` | [`ImageAsset`](ImageAsset.md) | The ImageAsset instance used to create ImageSource. | #### Returns `Promise`<`ImageSource`> *** ### fromBase64() ```ts static fromBase64(source: string): Promise; ``` Defined in: [image-source/index.d.ts:116](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L116) Loads this instance from the specified base64 encoded string asynchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `source` | `string` | The Base64 string to load the image from. | #### Returns `Promise`<`ImageSource`> *** ### fromBase64Sync() ```ts static fromBase64Sync(source: string): ImageSource; ``` Defined in: [image-source/index.d.ts:110](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L110) Loads this instance from the specified base64 encoded string. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `source` | `string` | The Base64 string to load the image from. | #### Returns `ImageSource` *** ### fromData() ```ts static fromData(data: any): Promise; ``` Defined in: [image-source/index.d.ts:104](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L104) Loads this instance from the specified native image data asynchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `any` | The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS. | #### Returns `Promise`<`ImageSource`> *** ### fromDataSync() ```ts static fromDataSync(data: any): ImageSource; ``` Defined in: [image-source/index.d.ts:98](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L98) Loads this instance from the specified native image data. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `any` | The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS. | #### Returns `ImageSource` *** ### fromFile() ```ts static fromFile(path: string): Promise; ``` Defined in: [image-source/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L86) Loads this instance from the specified file asynchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The location of the file on the file system. | #### Returns `Promise`<`ImageSource`> *** ### fromFileOrResourceSync() ```ts static fromFileOrResourceSync(path: string): ImageSource; ``` Defined in: [image-source/index.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L92) Creates a new ImageSource instance and loads it from the specified local file or resource (if specified with the "res://" prefix). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The location of the file on the file system. | #### Returns `ImageSource` *** ### fromFileSync() ```ts static fromFileSync(path: string): ImageSource; ``` Defined in: [image-source/index.d.ts:80](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L80) Loads this instance from the specified file. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The location of the file on the file system. | #### Returns `ImageSource` *** ### fromFontIconCodeSync() ```ts static fromFontIconCodeSync( source: string, font: Font, color: Color): ImageSource; ``` Defined in: [image-source/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L124) Creates a new ImageSource instance and loads it from the specified font icon code. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `source` | `string` | The hex font icon code string | | `font` | [`Font`](Font.md) | The font for the corresponding font icon code | | `color` | [`Color`](Color.md) | The color of the generated icon image | #### Returns `ImageSource` *** ### fromResource() ```ts static fromResource(name: string): Promise; ``` Defined in: [image-source/index.d.ts:56](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L56) Loads this instance from the specified resource name asynchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | The name of the resource (without its extension). | #### Returns `Promise`<`ImageSource`> *** ### fromResourceSync() ```ts static fromResourceSync(name: string): ImageSource; ``` Defined in: [image-source/index.d.ts:50](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L50) Loads this instance from the specified resource name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | The name of the resource (without its extension). | #### Returns `ImageSource` *** ### fromSystemImage() ```ts static fromSystemImage(name: string, instance?: ImageBase): Promise; ``` Defined in: [image-source/index.d.ts:74](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L74) Loads this instance from the specified system image name asynchronously. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | the name of the system image | | `instance?` | `ImageBase` | - | #### Returns `Promise`<`ImageSource`> *** ### fromSystemImageSync() ```ts static fromSystemImageSync(name: string, instance?: ImageBase): ImageSource; ``` Defined in: [image-source/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L68) Loads this instance from the specified system image name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | the name of the system image | | `instance?` | `ImageBase` | - | #### Returns `ImageSource` *** ### fromUrl() ```ts static fromUrl(url: string): Promise; ``` Defined in: [image-source/index.d.ts:44](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L44) Downloads the image from the provided Url and creates a new ImageSource instance from it. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `url` | `string` | The link to the remote image object. This operation will download and decode the image. | #### Returns `Promise`<`ImageSource`> *** ### iosSymbolScaleFor() ```ts static iosSymbolScaleFor(scale: iosSymbolScaleType): number; ``` Defined in: [image-source/index.d.ts:62](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/image-source/index.d.ts#L62) (iOS only) Get system symbol scale #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `scale` | [`iosSymbolScaleType`](../type-aliases/iosSymbolScaleType.md) | symbol scale type | #### Returns `number` --- --- url: 'https://docs.nativescript.org/api/classes/ImageSymbolEffect.md' description: >- iOS only Symbol effects: https://developer.apple.com/documentation/symbols?language=objc --- Defined in: [ui/image/symbol-effects.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects.d.ts#L7) iOS only Symbol effects: https://developer.apple.com/documentation/symbols?language=objc ## Constructors ### Constructor ```ts new ImageSymbolEffect(symbol: NSSymbolEffect): ImageSymbolEffect; ``` Defined in: [ui/image/symbol-effects.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects.d.ts#L11) #### Parameters | Parameter | Type | | ------ | ------ | | `symbol` | `NSSymbolEffect` | #### Returns `ImageSymbolEffect` ## Properties ### completion? ```ts optional completion?: (context: UISymbolEffectCompletionContext) => void; ``` Defined in: [ui/image/symbol-effects.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects.d.ts#L10) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `UISymbolEffectCompletionContext` | #### Returns `void` *** ### effect? ```ts optional effect?: NSSymbolEffect; ``` Defined in: [ui/image/symbol-effects.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects.d.ts#L8) *** ### options? ```ts optional options?: NSSymbolEffectOptions; ``` Defined in: [ui/image/symbol-effects.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects.d.ts#L9) ## Methods ### fromSymbol() ```ts static fromSymbol(symbol: string): ImageSymbolEffect; ``` Defined in: [ui/image/symbol-effects.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/image/symbol-effects.d.ts#L12) #### Parameters | Parameter | Type | | ------ | ------ | | `symbol` | `string` | #### Returns `ImageSymbolEffect` --- --- url: 'https://docs.nativescript.org/api/classes/InheritedCssProperty.md' --- Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) ## Extends * [`CssProperty`](CssProperty.md)<`T`, `U`> ## Type Parameters | Type Parameter | | ------ | | `T` *extends* [`Style`](Style.md) | | `U` | ## Implements * `InheritedCssProperty`<`T`, `U`> ## Constructors ### Constructor ```ts new InheritedCssProperty(options: CssPropertyOptions): InheritedCssProperty; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `CssPropertyOptions`<`T`, `U`> | #### Returns `InheritedCssProperty`<`T`, `U`> #### Overrides ```ts CssProperty.constructor ``` ## Properties ### cssLocalName ```ts readonly cssLocalName: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.cssLocalName ``` #### Inherited from ```ts CssProperty.cssLocalName ``` *** ### cssName ```ts readonly cssName: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.cssName ``` #### Inherited from ```ts CssProperty.cssName ``` *** ### cssValueDescriptor ```ts protected readonly cssValueDescriptor: PropertyDescriptor; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.cssValueDescriptor ``` #### Inherited from ```ts CssProperty.cssValueDescriptor ``` *** ### defaultValue ```ts readonly defaultValue: U; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.defaultValue ``` #### Inherited from ```ts CssProperty.defaultValue ``` *** ### defaultValueKey ```ts readonly defaultValueKey: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.defaultValueKey ``` #### Inherited from ```ts CssProperty.defaultValueKey ``` *** ### getDefault ```ts readonly getDefault: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.getDefault ``` #### Inherited from ```ts CssProperty.getDefault ``` *** ### isStyleProperty ```ts isStyleProperty: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.isStyleProperty ``` #### Inherited from ```ts CssProperty.isStyleProperty ``` *** ### key ```ts readonly key: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.key ``` #### Inherited from ```ts CssProperty.key ``` *** ### localValueDescriptor ```ts protected readonly localValueDescriptor: PropertyDescriptor; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.localValueDescriptor ``` #### Inherited from ```ts CssProperty.localValueDescriptor ``` *** ### name ```ts readonly name: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.name ``` #### Inherited from ```ts CssProperty.name ``` *** ### overrideHandlers ```ts overrideHandlers: (options: CssPropertyOptions) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `CssPropertyOptions`<`T`, `U`> | #### Returns `void` #### Implementation of ```ts InheritedCssProperty.overrideHandlers ``` #### Inherited from ```ts CssProperty.overrideHandlers ``` *** ### setInheritedValue ```ts setInheritedValue: (value: U) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `U` | #### Returns `void` #### Implementation of ```ts InheritedCssProperty.setInheritedValue ``` *** ### setNative ```ts readonly setNative: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.setNative ``` #### Inherited from ```ts CssProperty.setNative ``` *** ### sourceKey ```ts readonly sourceKey: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedCssProperty.sourceKey ``` #### Inherited from ```ts CssProperty.sourceKey ``` ## Methods ### isSet() ```ts isSet(instance: T): boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `instance` | `T` | #### Returns `boolean` #### Implementation of ```ts InheritedCssProperty.isSet ``` #### Inherited from ```ts CssProperty.isSet ``` *** ### register() ```ts register(cls: { prototype: T; }): void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `cls` | { `prototype`: `T`; } | | `cls.prototype` | `T` | #### Returns `void` #### Implementation of ```ts InheritedCssProperty.register ``` #### Inherited from ```ts CssProperty.register ``` --- --- url: 'https://docs.nativescript.org/api/classes/InheritedProperty.md' --- Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) ## Extends * [`Property`](Property.md)<`T`, `U`> ## Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | | `U` | ## Implements * `InheritedProperty`<`T`, `U`> ## Constructors ### Constructor ```ts new InheritedProperty(options: PropertyOptions): InheritedProperty; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `PropertyOptions`<`T`, `U`> | #### Returns `InheritedProperty`<`T`, `U`> #### Overrides ```ts Property.constructor ``` ## Properties ### configurable ```ts configurable: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedProperty.configurable ``` #### Inherited from ```ts Property.configurable ``` *** ### defaultValue ```ts readonly defaultValue: U; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedProperty.defaultValue ``` #### Inherited from ```ts Property.defaultValue ``` *** ### defaultValueKey ```ts readonly defaultValueKey: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedProperty.defaultValueKey ``` #### Inherited from ```ts Property.defaultValueKey ``` *** ### enumerable ```ts enumerable: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedProperty.enumerable ``` #### Inherited from ```ts Property.enumerable ``` *** ### get ```ts get: () => U; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Returns `U` #### Implementation of ```ts InheritedProperty.get ``` #### Inherited from ```ts Property.get ``` *** ### getDefault ```ts readonly getDefault: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedProperty.getDefault ``` #### Inherited from ```ts Property.getDefault ``` *** ### isStyleProperty ```ts isStyleProperty: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedProperty.isStyleProperty ``` #### Inherited from ```ts Property.isStyleProperty ``` *** ### key ```ts readonly key: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedProperty.key ``` #### Inherited from ```ts Property.key ``` *** ### name ```ts readonly name: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedProperty.name ``` #### Inherited from ```ts Property.name ``` *** ### nativeValueChange ```ts readonly nativeValueChange: (owner: T, value: U) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `owner` | `T` | | `value` | `U` | #### Returns `void` #### Implementation of ```ts InheritedProperty.nativeValueChange ``` #### Inherited from ```ts Property.nativeValueChange ``` *** ### overrideHandlers ```ts overrideHandlers: (options: PropertyOptions) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `PropertyOptions`<`T`, `U`> | #### Returns `void` #### Implementation of ```ts InheritedProperty.overrideHandlers ``` #### Inherited from ```ts Property.overrideHandlers ``` *** ### set ```ts set: (value: U) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `U` | #### Returns `void` #### Implementation of ```ts InheritedProperty.set ``` #### Inherited from ```ts Property.set ``` *** ### setInheritedValue ```ts readonly setInheritedValue: (value: U) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `U` | #### Returns `void` #### Implementation of ```ts InheritedProperty.setInheritedValue ``` *** ### setNative ```ts readonly setNative: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedProperty.setNative ``` #### Inherited from ```ts Property.setNative ``` *** ### sourceKey ```ts readonly sourceKey: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts InheritedProperty.sourceKey ``` ## Methods ### isSet() ```ts isSet(instance: T): boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `instance` | `T` | #### Returns `boolean` #### Implementation of ```ts InheritedProperty.isSet ``` #### Inherited from ```ts Property.isSet ``` *** ### register() ```ts register(cls: { prototype: T; }): void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `cls` | { `prototype`: `T`; } | | `cls.prototype` | `T` | #### Returns `void` #### Implementation of ```ts InheritedProperty.register ``` #### Inherited from ```ts Property.register ``` --- --- url: 'https://docs.nativescript.org/api/classes/iOSApplication.md' --- Defined in: [application/application.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L152) ## Extends * [`ApplicationCommon`](ApplicationCommon.md) ## Properties ### autoSystemAppearanceChanged ```ts autoSystemAppearanceChanged: boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Boolean to enable/disable systemAppearanceChanged #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`autoSystemAppearanceChanged`](ApplicationCommon.md#autosystemappearancechanged) *** ### backgroundEvent ```ts readonly backgroundEvent: "background" = "background"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`backgroundEvent`](ApplicationCommon.md#backgroundevent) *** ### cssChangedEvent ```ts readonly cssChangedEvent: "cssChanged" = "cssChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`cssChangedEvent`](ApplicationCommon.md#csschangedevent) *** ### discardedErrorEvent ```ts readonly discardedErrorEvent: "discardedError" = "discardedError"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`discardedErrorEvent`](ApplicationCommon.md#discardederrorevent) *** ### displayedEvent ```ts readonly displayedEvent: "displayed" = "displayed"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`displayedEvent`](ApplicationCommon.md#displayedevent) *** ### exitEvent ```ts readonly exitEvent: "exit" = "exit"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`exitEvent`](ApplicationCommon.md#exitevent) *** ### fontScaleChangedEvent ```ts readonly fontScaleChangedEvent: "fontScaleChanged" = "fontScaleChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`fontScaleChangedEvent`](ApplicationCommon.md#fontscalechangedevent) *** ### foregroundEvent ```ts readonly foregroundEvent: "foreground" = "foreground"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`foregroundEvent`](ApplicationCommon.md#foregroundevent) *** ### hasListeners ```ts hasListeners: (eventName: string) => boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `boolean` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`hasListeners`](ApplicationCommon.md#haslisteners) *** ### initRootViewEvent ```ts readonly initRootViewEvent: "initRootView" = "initRootView"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`initRootViewEvent`](ApplicationCommon.md#initrootviewevent) *** ### launchEvent ```ts readonly launchEvent: "launch" = "launch"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`launchEvent`](ApplicationCommon.md#launchevent) *** ### layoutDirectionChangedEvent ```ts readonly layoutDirectionChangedEvent: "layoutDirectionChanged" = "layoutDirectionChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`layoutDirectionChangedEvent`](ApplicationCommon.md#layoutdirectionchangedevent) *** ### livesyncEvent ```ts readonly livesyncEvent: "livesync" = "livesync"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`livesyncEvent`](ApplicationCommon.md#livesyncevent) *** ### loadAppCssEvent ```ts readonly loadAppCssEvent: "loadAppCss" = "loadAppCss"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`loadAppCssEvent`](ApplicationCommon.md#loadappcssevent) *** ### lowMemoryEvent ```ts readonly lowMemoryEvent: "lowMemory" = "lowMemory"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`lowMemoryEvent`](ApplicationCommon.md#lowmemoryevent) *** ### mainEntry ```ts protected mainEntry: NavigationEntry; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`mainEntry`](ApplicationCommon.md#mainentry) *** ### notify ```ts notify: (eventData: T) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Type Parameters | Type Parameter | Default type | | ------ | ------ | | `T` | [`ApplicationEventData`](../interfaces/ApplicationEventData.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `eventData` | `T` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`notify`](ApplicationCommon.md#notify) *** ### off ```ts off: (eventNames: string, callback?: any, thisArg?: any) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback?` | `any` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`off`](ApplicationCommon.md#off) *** ### on ```ts on: { (eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; (event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; (event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; (event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; (event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; (event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; (event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; (event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Call Signature ```ts ( eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; ``` This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"cssChanged"` | | `callback` | (`args`: [`CssChangedEventData`](../interfaces/CssChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"livesync"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; ``` This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"launch"` | | `callback` | (`args`: [`LaunchEventData`](../interfaces/LaunchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"suspend"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"resume"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"exit"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"lowMemory"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"uncaughtError"` | | `callback` | (`args`: [`UnhandledErrorEventData`](../interfaces/UnhandledErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"discardedError"` | | `callback` | (`args`: [`DiscardedErrorEventData`](../interfaces/DiscardedErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the orientation of the application changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`args`: [`OrientationChangedEventData`](../interfaces/OrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`args`: [`SystemAppearanceChangedEventData`](../interfaces/SystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system layout direction changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`args`: [`LayoutDirectionChangedEventData`](../interfaces/LayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"fontScaleChanged"` | | `callback` | (`args`: [`FontScaleChangedEventData`](../interfaces/FontScaleChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`on`](ApplicationCommon.md#on) *** ### once ```ts once: { (eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; (event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; (event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; (event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; (event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; (event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; (event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; (event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Call Signature ```ts ( eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; ``` This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"cssChanged"` | | `callback` | (`args`: [`CssChangedEventData`](../interfaces/CssChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"livesync"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; ``` This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"launch"` | | `callback` | (`args`: [`LaunchEventData`](../interfaces/LaunchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"suspend"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"resume"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"exit"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"lowMemory"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"uncaughtError"` | | `callback` | (`args`: [`UnhandledErrorEventData`](../interfaces/UnhandledErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"discardedError"` | | `callback` | (`args`: [`DiscardedErrorEventData`](../interfaces/DiscardedErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the orientation of the application changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`args`: [`OrientationChangedEventData`](../interfaces/OrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`args`: [`SystemAppearanceChangedEventData`](../interfaces/SystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system layout direction changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`args`: [`LayoutDirectionChangedEventData`](../interfaces/LayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"fontScaleChanged"` | | `callback` | (`args`: [`FontScaleChangedEventData`](../interfaces/FontScaleChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`once`](ApplicationCommon.md#once) *** ### orientationChangedEvent ```ts readonly orientationChangedEvent: "orientationChanged" = "orientationChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`orientationChangedEvent`](ApplicationCommon.md#orientationchangedevent) *** ### resumeEvent ```ts readonly resumeEvent: "resume" = "resume"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`resumeEvent`](ApplicationCommon.md#resumeevent) *** ### sceneDelegate ```ts sceneDelegate: UIWindowSceneDelegate; ``` Defined in: [application/application.d.ts:267](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L267) The scene delegate for the application. Get the current one or set a custom one. *** ### shouldDelayLaunchEvent ```ts shouldDelayLaunchEvent: boolean; ``` Defined in: [application/application.d.ts:273](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L273) Flag to be set when the launch event should be delayed until the application has become active. This is useful when you want to process notifications or data in the background without creating the UI. *** ### started ```ts started: boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`started`](ApplicationCommon.md#started) *** ### suspendEvent ```ts readonly suspendEvent: "suspend" = "suspend"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`suspendEvent`](ApplicationCommon.md#suspendevent) *** ### systemAppearanceChangedEvent ```ts readonly systemAppearanceChangedEvent: "systemAppearanceChanged" = "systemAppearanceChanged"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`systemAppearanceChangedEvent`](ApplicationCommon.md#systemappearancechangedevent) *** ### uncaughtErrorEvent ```ts readonly uncaughtErrorEvent: "uncaughtError" = "uncaughtError"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`uncaughtErrorEvent`](ApplicationCommon.md#uncaughterrorevent) *** ### ~~hasListeners~~ ```ts static hasListeners: (eventName: string) => boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `boolean` #### Deprecated Use `Application.android.hasListeners()` instead. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`hasListeners`](ApplicationCommon.md#haslisteners-1) *** ### ~~notify~~ ```ts static notify: (eventData: T) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Type Parameters | Type Parameter | Default type | | ------ | ------ | | `T` | [`ApplicationEventData`](../interfaces/ApplicationEventData.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `eventData` | `T` | #### Returns `void` #### Deprecated Use `Application.android.notify()` instead. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`notify`](ApplicationCommon.md#notify-1) *** ### ~~off~~ ```ts static off: (eventNames: string, callback?: any, thisArg?: any) => void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback?` | `any` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated Use `Application.android.off()` instead. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`off`](ApplicationCommon.md#off-1) *** ### ~~on~~ ```ts static on: { (eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; (event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; (event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; (event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; (event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; (event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; (event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; (event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Call Signature ```ts ( eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; ``` This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"cssChanged"` | | `callback` | (`args`: [`CssChangedEventData`](../interfaces/CssChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"livesync"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; ``` This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"launch"` | | `callback` | (`args`: [`LaunchEventData`](../interfaces/LaunchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"suspend"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"resume"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"exit"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"lowMemory"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"uncaughtError"` | | `callback` | (`args`: [`UnhandledErrorEventData`](../interfaces/UnhandledErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"discardedError"` | | `callback` | (`args`: [`DiscardedErrorEventData`](../interfaces/DiscardedErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the orientation of the application changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`args`: [`OrientationChangedEventData`](../interfaces/OrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`args`: [`SystemAppearanceChangedEventData`](../interfaces/SystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system layout direction changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`args`: [`LayoutDirectionChangedEventData`](../interfaces/LayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"fontScaleChanged"` | | `callback` | (`args`: [`FontScaleChangedEventData`](../interfaces/FontScaleChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Deprecated Use `Application.android.on()` instead. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`on`](ApplicationCommon.md#on-1) *** ### ~~once~~ ```ts static once: { (eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; (event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; (event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; (event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; (event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; (event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; (event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; (event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; (event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; }; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Call Signature ```ts ( eventNames: string, callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `eventNames` | `string` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "cssChanged", callback: (args: CssChangedEventData) => void, thisArg?: any): void; ``` This event is raised when application css is changed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"cssChanged"` | | `callback` | (`args`: [`CssChangedEventData`](../interfaces/CssChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "livesync", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` Event raised then livesync operation is performed. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"livesync"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "launch", callback: (args: LaunchEventData) => void, thisArg?: any): void; ``` This event is raised on application launchEvent. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"launch"` | | `callback` | (`args`: [`LaunchEventData`](../interfaces/LaunchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "displayed", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` **`Experimental`** 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. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"displayed"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "suspend", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"suspend"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "resume", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is resumed after it has been suspended. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"resume"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "exit", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when the Application is about to exit. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"exit"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "lowMemory", callback: (args: ApplicationEventData) => void, thisArg?: any): void; ``` This event is raised when there is low memory on the target device. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"lowMemory"` | | `callback` | (`args`: [`ApplicationEventData`](../interfaces/ApplicationEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an uncaught error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"uncaughtError"` | | `callback` | (`args`: [`UnhandledErrorEventData`](../interfaces/UnhandledErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "discardedError", callback: (args: DiscardedErrorEventData) => void, thisArg?: any): void; ``` This event is raised when an discarded error occurs while the application is running. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"discardedError"` | | `callback` | (`args`: [`DiscardedErrorEventData`](../interfaces/DiscardedErrorEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "orientationChanged", callback: (args: OrientationChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the orientation of the application changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"orientationChanged"` | | `callback` | (`args`: [`OrientationChangedEventData`](../interfaces/OrientationChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "systemAppearanceChanged", callback: (args: SystemAppearanceChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system appearance changes between light and dark theme (for Android); between light and dark mode (for iOS) and vice versa. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"systemAppearanceChanged"` | | `callback` | (`args`: [`SystemAppearanceChangedEventData`](../interfaces/SystemAppearanceChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "layoutDirectionChanged", callback: (args: LayoutDirectionChangedEventData) => void, thisArg?: any): void; ``` This event is raised when the operating system layout direction changes between ltr and rtl. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"layoutDirectionChanged"` | | `callback` | (`args`: [`LayoutDirectionChangedEventData`](../interfaces/LayoutDirectionChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Call Signature ```ts ( event: "fontScaleChanged", callback: (args: FontScaleChangedEventData) => void, thisArg?: any): void; ``` ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"fontScaleChanged"` | | `callback` | (`args`: [`FontScaleChangedEventData`](../interfaces/FontScaleChangedEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` #### Deprecated Use `Application.android.once()` instead. #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`once`](ApplicationCommon.md#once-1) ## Accessors ### android #### Get Signature ```ts get android(): AndroidApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns [`AndroidApplication`](AndroidApplication.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`android`](ApplicationCommon.md#android) *** ### AndroidApplication #### Get Signature ```ts get AndroidApplication(): AndroidApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns [`AndroidApplication`](AndroidApplication.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`AndroidApplication`](ApplicationCommon.md#androidapplication) *** ### delegate #### Get Signature ```ts get delegate(): any; ``` Defined in: [application/application.d.ts:171](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L171) The [UIApplicationDelegate](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/index.html) class. ##### Returns `any` #### Set Signature ```ts set delegate(value: any): void; ``` Defined in: [application/application.d.ts:176](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L176) Sets a custom [UIApplicationDelegate](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/index.html) class. ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` *** ### inBackground #### Get Signature ```ts get inBackground(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns `boolean` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`inBackground`](ApplicationCommon.md#inbackground) *** ### ios #### Get Signature ```ts get ios(): iOSApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns `iOSApplication` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`ios`](ApplicationCommon.md#ios) *** ### iOSApplication #### Get Signature ```ts get iOSApplication(): iOSApplication; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns `iOSApplication` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`iOSApplication`](ApplicationCommon.md#iosapplication) *** ### nativeApp #### Get Signature ```ts get nativeApp(): UIApplication; ``` Defined in: [application/application.d.ts:161](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L161) The [UIApplication](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html). ##### Returns `UIApplication` *** ### rootController #### Get Signature ```ts get rootController(): UIViewController; ``` Defined in: [application/application.d.ts:156](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L156) The root view controller for the application. ##### Returns `UIViewController` *** ### suspended #### Get Signature ```ts get suspended(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) ##### Returns `boolean` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`suspended`](ApplicationCommon.md#suspended) *** ### window #### Get Signature ```ts get window(): UIWindow; ``` Defined in: [application/application.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L166) The key window. ##### Returns `UIWindow` ## Methods ### addCss() ```ts addCss(cssText: string, attributeScoped?: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `cssText` | `string` | | `attributeScoped?` | `boolean` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`addCss`](ApplicationCommon.md#addcss) *** ### addDelegateHandler() ```ts addDelegateHandler(methodName: T, handler: any): void; ``` Defined in: [application/application.d.ts:184](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L184) Adds a delegate handler for the specified delegate method name. This method does not replace an existing handler, but rather adds the new handler to the existing chain of handlers. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `string` | `number` | `symbol` | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `methodName` | `T` | The name of the delegate method to add a handler for. | | `handler` | `any` | A function that will be called when the specified delegate method is called. | #### Returns `void` *** ### addNotificationObserver() ```ts addNotificationObserver(notificationName: string, onReceiveCallback: (notification: NSNotification) => void): NotificationObserver; ``` Defined in: [application/application.d.ts:192](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L192) Adds an observer to the default notification center for the specified notification. For more information, please visit 'https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter\_Class/#//apple\_ref/occ/instm/NSNotificationCenter/addObserver:selector:name:object:' #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `notificationName` | `string` | A string containing the name of the notification. | | `onReceiveCallback` | (`notification`: `NSNotification`) => `void` | A callback function that will be called each time the observer receives a notification. | #### Returns `NotificationObserver` *** ### applyCssClass() ```ts applyCssClass( rootView: View, cssClasses: string[], newCssClass: string, skipCssUpdate?: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Applies the the `newCssClass` to the `rootView` and removes all other css classes from `cssClasses` previously applied to the `rootView`. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | - | | `cssClasses` | `string`\[] | - | | `newCssClass` | `string` | - | | `skipCssUpdate?` | `boolean` | - | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`applyCssClass`](ApplicationCommon.md#applycssclass) *** ### closeWindow() ```ts closeWindow(target?: any): void; ``` Defined in: [application/application.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L229) Closes a secondary window/scene. If no target is provided, attempts to close a non-primary active scene. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `target?` | `any` | Optional target to resolve the scene to close. Can be a View, UIWindow, UIWindowScene, or a string scene identifier. | #### Returns `void` *** ### createRootView() ```ts createRootView( view?: View, fireLaunchEvent?: boolean, additionalLanchEventData?: any): View; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view?` | [`View`](View.md) | | `fireLaunchEvent?` | `boolean` | | `additionalLanchEventData?` | `any` | #### Returns [`View`](View.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`createRootView`](ApplicationCommon.md#createrootview) *** ### getAllScenes() ```ts getAllScenes(): UIScene[]; ``` Defined in: [application/application.d.ts:239](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L239) Gets all scenes for the application. #### Returns `UIScene`\[] *** ### getAllWindows() ```ts getAllWindows(): UIWindow[]; ``` Defined in: [application/application.d.ts:234](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L234) Gets all windows for the application. #### Returns `UIWindow`\[] *** ### getCssFileName() ```ts getCssFileName(): string; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Gets css file name for the application. #### Returns `string` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getCssFileName`](ApplicationCommon.md#getcssfilename) *** ### getLayoutDirection() ```ts protected getLayoutDirection(): LayoutDirectionType; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getLayoutDirection`](ApplicationCommon.md#getlayoutdirection) *** ### getMainEntry() ```ts getMainEntry(): any; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `any` The main entry of the application #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getMainEntry`](ApplicationCommon.md#getmainentry) *** ### getNativeApplication() ```ts getNativeApplication(): any; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `any` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getNativeApplication`](ApplicationCommon.md#getnativeapplication) *** ### getOrientation() ```ts protected getOrientation(): "portrait" | "landscape" | "unknown"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"portrait"` | `"landscape"` | `"unknown"` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getOrientation`](ApplicationCommon.md#getorientation) *** ### getPrimaryScene() ```ts getPrimaryScene(): UIWindowScene; ``` Defined in: [application/application.d.ts:254](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L254) Gets the primary scene for the application. #### Returns `UIWindowScene` *** ### getPrimaryWindow() ```ts getPrimaryWindow(): UIWindow; ``` Defined in: [application/application.d.ts:249](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L249) Gets the primary window for the application. #### Returns `UIWindow` *** ### getResources() ```ts getResources(): any; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Get application level static resources. #### Returns `any` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getResources`](ApplicationCommon.md#getresources) *** ### getRootView() ```ts getRootView(): View; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns [`View`](View.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getRootView`](ApplicationCommon.md#getrootview) *** ### getSystemAppearance() ```ts protected getSystemAppearance(): "dark" | "light"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`getSystemAppearance`](ApplicationCommon.md#getsystemappearance) *** ### getWindowScenes() ```ts getWindowScenes(): UIWindowScene[]; ``` Defined in: [application/application.d.ts:244](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L244) Gets all window scenes for the application. #### Returns `UIWindowScene`\[] *** ### hasLaunched() ```ts hasLaunched(): boolean; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `boolean` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`hasLaunched`](ApplicationCommon.md#haslaunched) *** ### initRootView() ```ts initRootView(rootView: View): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `rootView` | [`View`](View.md) | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`initRootView`](ApplicationCommon.md#initrootview) *** ### isUsingSceneLifecycle() ```ts isUsingSceneLifecycle(): boolean; ``` Defined in: [application/application.d.ts:216](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L216) Checks if the application is using the scene lifecycle. #### Returns `boolean` *** ### layoutDirection() ```ts layoutDirection(): LayoutDirectionType; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`layoutDirection`](ApplicationCommon.md#layoutdirection) *** ### layoutDirectionChanged() ```ts layoutDirectionChanged(rootView: View, newLayoutDirection: LayoutDirectionType): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Updates root view classes including those of modals #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | the root view | | `newLayoutDirection` | [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) | the new layout direction change | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`layoutDirectionChanged`](ApplicationCommon.md#layoutdirectionchanged) *** ### loadAppCss() ```ts loadAppCss(): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Loads immediately the app.css. By default the app.css file is loaded shortly after "loaded". For the Android snapshot the CSS can be parsed during the snapshot generation, as the CSS does not depend on runtime APIs, and loadAppCss will be called explicitly. #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`loadAppCss`](ApplicationCommon.md#loadappcss) *** ### notifyLaunch() ```ts protected notifyLaunch(additionalLanchEventData?: any): View; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `additionalLanchEventData?` | `any` | #### Returns [`View`](View.md) #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`notifyLaunch`](ApplicationCommon.md#notifylaunch) *** ### openWindow() ```ts openWindow(data: Record): void; ``` Defined in: [application/application.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L222) Opens a new window with the specified data. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `Record`<`any`, `any`> | The data to pass to the new window. | #### Returns `void` *** ### orientation() ```ts orientation(): "portrait" | "landscape" | "unknown"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"portrait"` | `"landscape"` | `"unknown"` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`orientation`](ApplicationCommon.md#orientation) *** ### orientationChanged() ```ts orientationChanged(rootView: View, newOrientation: "portrait" | "landscape" | "unknown"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `rootView` | [`View`](View.md) | | `newOrientation` | `"portrait"` | `"landscape"` | `"unknown"` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`orientationChanged`](ApplicationCommon.md#orientationchanged) *** ### removeNotificationObserver() ```ts removeNotificationObserver(observer: any, notificationName: string): any; ``` Defined in: [application/application.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L201) Removes the observer for the specified notification from the default notification center. For more information, please visit 'https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter\_Class/#//apple\_ref/occ/instm/NSNotificationCenter/addObserver:selector:name:object:' #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `observer` | `any` | The observer that was returned from the addNotificationObserver method. | | `notificationName` | `string` | A string containing the name of the notification. | #### Returns `any` *** ### resetRootView() ```ts resetRootView(entry?: string | NavigationEntry): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `entry?` | `string` | `NavigationEntry` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`resetRootView`](ApplicationCommon.md#resetrootview) *** ### run() ```ts run(entry?: string | NavigationEntry): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `entry?` | `string` | `NavigationEntry` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`run`](ApplicationCommon.md#run) *** ### setAutoSystemAppearanceChanged() ```ts setAutoSystemAppearanceChanged(value: boolean): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) enable/disable systemAppearanceChanged #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setAutoSystemAppearanceChanged`](ApplicationCommon.md#setautosystemappearancechanged) *** ### setCssFileName() ```ts setCssFileName(cssFileName: string): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Sets css file name for the application. #### Parameters | Parameter | Type | | ------ | ------ | | `cssFileName` | `string` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setCssFileName`](ApplicationCommon.md#setcssfilename) *** ### setInBackground() ```ts setInBackground(value: boolean, additonalData?: any): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | | `additonalData?` | `any` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setInBackground`](ApplicationCommon.md#setinbackground) *** ### setLayoutDirection() ```ts protected setLayoutDirection(value: LayoutDirectionType): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`LayoutDirectionType`](../namespaces/CoreTypes/type-aliases/LayoutDirectionType.md) | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setLayoutDirection`](ApplicationCommon.md#setlayoutdirection) *** ### setMaxRefreshRate() ```ts setMaxRefreshRate(options?: { max?: number; min?: number; preferred?: number; }): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) iOS Only Dynamically change the preferred frame rate For devices (iOS 15+) which support min/max/preferred frame rate you can specify ranges For devices (iOS < 15), you can specify the max frame rate see: https://developer.apple.com/documentation/quartzcore/optimizing\_promotion\_refresh\_rates\_for\_iphone\_13\_pro\_and\_ipad\_pro To use, ensure your Info.plist has: ```xml CADisableMinimumFrameDurationOnPhone ``` #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `options?` | { `max?`: `number`; `min?`: `number`; `preferred?`: `number`; } | { min?: number; max?: number; preferred?: number } | | `options.max?` | `number` | - | | `options.min?` | `number` | - | | `options.preferred?` | `number` | - | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setMaxRefreshRate`](ApplicationCommon.md#setmaxrefreshrate) *** ### setOrientation() ```ts protected setOrientation(value: "portrait" | "landscape" | "unknown"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"portrait"` | `"landscape"` | `"unknown"` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setOrientation`](ApplicationCommon.md#setorientation) *** ### setResources() ```ts setResources(res: any): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Set application level static resources. #### Parameters | Parameter | Type | | ------ | ------ | | `res` | `any` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setResources`](ApplicationCommon.md#setresources) *** ### setSuspended() ```ts setSuspended(value: boolean, additonalData?: any): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `boolean` | | `additonalData?` | `any` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setSuspended`](ApplicationCommon.md#setsuspended) *** ### setSystemAppearance() ```ts protected setSystemAppearance(value: "dark" | "light"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`setSystemAppearance`](ApplicationCommon.md#setsystemappearance) *** ### setWindowRootView() ```ts setWindowRootView(window: UIWindow, view: View): void; ``` Defined in: [application/application.d.ts:261](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L261) Sets the root view for a specific window. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `window` | `UIWindow` | The window to set the root view for. | | `view` | `View` | The view to set as the root view. | #### Returns `void` *** ### supportsMultipleScenes() ```ts supportsMultipleScenes(): boolean; ``` Defined in: [application/application.d.ts:211](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L211) Checks if the application supports multiple scenes. #### Returns `boolean` *** ### supportsScenes() ```ts supportsScenes(): boolean; ``` Defined in: [application/application.d.ts:206](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application.d.ts#L206) Checks if the application supports scenes. #### Returns `boolean` *** ### systemAppearance() ```ts systemAppearance(): "dark" | "light"; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) #### Returns `"dark"` | `"light"` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`systemAppearance`](ApplicationCommon.md#systemappearance) *** ### systemAppearanceChanged() ```ts systemAppearanceChanged(rootView: View, newSystemAppearance: "dark" | "light"): void; ``` Defined in: [application/application-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/application/application-common.ts) Updates root view classes including those of modals #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `rootView` | [`View`](View.md) | the root view | | `newSystemAppearance` | `"dark"` | `"light"` | the new appearance change | #### Returns `void` #### Inherited from [`ApplicationCommon`](ApplicationCommon.md).[`systemAppearanceChanged`](ApplicationCommon.md#systemappearancechanged) --- --- url: 'https://docs.nativescript.org/api/classes/ItemSpec.md' description: Defines row/column specific properties that apply to GridLayout elements. --- Defined in: [ui/layouts/grid-layout/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L8) Defines row/column specific properties that apply to GridLayout elements. ## Constructors ### Constructor ```ts new ItemSpec(): ItemSpec; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L9) #### Returns `ItemSpec` ### Constructor ```ts new ItemSpec(value: number, type: GridUnitType): ItemSpec; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L10) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | | `type` | [`GridUnitType`](../type-aliases/GridUnitType.md) | #### Returns `ItemSpec` ## Properties ### actualLength ```ts actualLength: number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L15) Gets the actual length of an ItemSpec. *** ### gridUnitType ```ts gridUnitType: GridUnitType; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L20) Returns unit type of this ItemSpec instance. *** ### isAbsolute ```ts isAbsolute: boolean; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L26) Returns true if this ItemSpec instance holds an absolute (pixel) value. *** ### isAuto ```ts isAuto: boolean; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L32) Returns true if this GridLength instance is automatic (not specified). *** ### isStar ```ts isStar: boolean; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L38) Returns true if this ItemSpec instance holds weighted proportion of available space. *** ### value ```ts value: number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L43) Returns value part of this ItemSpec instance. --- --- url: 'https://docs.nativescript.org/api/classes/KeyframeAnimation.md' --- Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) ## Constructors ### Constructor ```ts new KeyframeAnimation(): KeyframeAnimation; ``` #### Returns `KeyframeAnimation` ## Properties ### animations ```ts animations: Keyframe[]; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### delay ```ts delay: number; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### iterations ```ts iterations: number; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) ## Accessors ### isPlaying #### Get Signature ```ts get isPlaying(): boolean; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) ##### Returns `boolean` ## Methods ### \_resetAnimations() ```ts _resetAnimations(): void; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) #### Returns `void` *** ### \_resolveAnimationFinishedPromise() ```ts _resolveAnimationFinishedPromise(): void; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) #### Returns `void` *** ### cancel() ```ts cancel(): void; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) #### Returns `void` *** ### play() ```ts play(view: View): Promise; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `Promise`<`void`> *** ### keyframeAnimationFromInfo() ```ts static keyframeAnimationFromInfo(info: KeyframeAnimationInfo): KeyframeAnimation; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `info` | [`KeyframeAnimationInfo`](KeyframeAnimationInfo.md) | #### Returns `KeyframeAnimation` --- --- url: 'https://docs.nativescript.org/api/classes/KeyframeAnimationInfo.md' --- Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) ## Constructors ### Constructor ```ts new KeyframeAnimationInfo(): KeyframeAnimationInfo; ``` #### Returns `KeyframeAnimationInfo` ## Properties ### curve? ```ts optional curve?: any; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### delay? ```ts optional delay?: number; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### duration? ```ts optional duration?: number; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### isForwards? ```ts optional isForwards?: boolean; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### isReverse? ```ts optional isReverse?: boolean; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### iterations? ```ts optional iterations?: number; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### keyframes ```ts keyframes: KeyframeInfo[]; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### name? ```ts optional name?: string; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) --- --- url: 'https://docs.nativescript.org/api/classes/KeyframeDeclaration.md' --- Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) ## Constructors ### Constructor ```ts new KeyframeDeclaration(): KeyframeDeclaration; ``` #### Returns `KeyframeDeclaration` ## Properties ### property ```ts property: string; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### value ```ts value: any; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) --- --- url: 'https://docs.nativescript.org/api/classes/KeyframeInfo.md' --- Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) ## Constructors ### Constructor ```ts new KeyframeInfo(): KeyframeInfo; ``` #### Returns `KeyframeInfo` ## Properties ### curve? ```ts optional curve?: any; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### declarations ```ts declarations: KeyframeDeclaration[]; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) *** ### duration ```ts duration: number; ``` Defined in: [ui/animation/keyframe-animation.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/animation/keyframe-animation.ts) --- --- url: 'https://docs.nativescript.org/api/classes/Label.md' description: Represents a text label. --- Defined in: [ui/label/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/label/index.d.ts#L8) Represents a text label. ## Ns View Label ## Extends * [`TextBase`](TextBase.md) ## Constructors ### Constructor ```ts new Label(): Label; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `Label` #### Inherited from [`TextBase`](TextBase.md).[`constructor`](TextBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`TextBase`](TextBase.md).[`_androidContentDescriptionUpdated`](TextBase.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_automaticallyAdjustsScrollViewInsets`](TextBase.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`TextBase`](TextBase.md).[`_closeModalCallback`](TextBase.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_context`](TextBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_cssState`](TextBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingBottom`](TextBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingLeft`](TextBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingRight`](TextBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_defaultPaddingTop`](TextBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_domId`](TextBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_ignoreFlexMinWidthHeightReset`](TextBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isAddedToNativeVisualTree`](TextBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isPaddingRelative`](TextBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_isStyleScopeHost`](TextBase.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldBottom`](TextBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldLeft`](TextBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldRight`](TextBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_oldTop`](TextBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`_styleScope`](TextBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`TextBase`](TextBase.md).[`_suspendNativeUpdatesCount`](TextBase.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityHidden`](TextBase.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityHint`](TextBase.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityIdentifier`](TextBase.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityIgnoresInvertColors`](TextBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityLabel`](TextBase.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityLanguage`](TextBase.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityLiveRegion`](TextBase.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityMediaSession`](TextBase.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityRole`](TextBase.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityState`](TextBase.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessibilityValue`](TextBase.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`accessible`](TextBase.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`alignSelf`](TextBase.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/label/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/label/index.d.ts#L12) Gets the native [android widget](http://developer.android.com/reference/android/widget/TextView.html) that represents the user interface for this component. Valid only when running on Android OS. #### Overrides [`TextBase`](TextBase.md).[`android`](TextBase.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`androidDynamicElevationOffset`](TextBase.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`androidElevation`](TextBase.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`TextBase`](TextBase.md).[`androidOverflowEdge`](TextBase.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`automationText`](TextBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`background`](TextBase.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`backgroundColor`](TextBase.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`backgroundImage`](TextBase.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`bindingContext`](TextBase.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomColor`](TextBase.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomLeftRadius`](TextBase.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomRightRadius`](TextBase.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderBottomWidth`](TextBase.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderColor`](TextBase.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderLeftColor`](TextBase.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderLeftWidth`](TextBase.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderRadius`](TextBase.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderRightColor`](TextBase.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderRightWidth`](TextBase.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopColor`](TextBase.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopLeftRadius`](TextBase.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopRightRadius`](TextBase.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderTopWidth`](TextBase.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`borderWidth`](TextBase.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`boxShadow`](TextBase.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`className`](TextBase.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`col`](TextBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`color`](TextBase.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`colSpan`](TextBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`column`](TextBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`columnSpan`](TextBase.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`TextBase`](TextBase.md).[`cssClasses`](TextBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`TextBase`](TextBase.md).[`cssPseudoClasses`](TextBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`TextBase`](TextBase.md).[`cssType`](TextBase.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`defaultVisualState`](TextBase.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`direction`](TextBase.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`dock`](TextBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`domNode`](TextBase.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderBottomWidth`](TextBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderLeftWidth`](TextBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderRightWidth`](TextBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveBorderTopWidth`](TextBase.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveHeight`](TextBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveLeft`](TextBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginBottom`](TextBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginLeft`](TextBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginRight`](TextBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMarginTop`](TextBase.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMinHeight`](TextBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveMinWidth`](TextBase.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveTop`](TextBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`effectiveWidth`](TextBase.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flex`](TextBase.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexFlow`](TextBase.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexGrow`](TextBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexShrink`](TextBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`flexWrapBefore`](TextBase.md#flexwrapbefore) *** ### fontFamily ```ts fontFamily: string; ``` Defined in: [ui/text-base/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L40) Gets or sets font-family style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontFamily`](TextBase.md#fontfamily) *** ### fontSize ```ts fontSize: number; ``` Defined in: [ui/text-base/index.d.ts:47](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L47) Gets or sets font-size style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontSize`](TextBase.md#fontsize) *** ### fontStyle ```ts fontStyle: FontStyleType; ``` Defined in: [ui/text-base/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L54) Gets or sets font-style style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontStyle`](TextBase.md#fontstyle) *** ### fontWeight ```ts fontWeight: FontWeightType; ``` Defined in: [ui/text-base/index.d.ts:61](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L61) Gets or sets font-weight style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`fontWeight`](TextBase.md#fontweight) *** ### formattedText ```ts formattedText: FormattedString; ``` Defined in: [ui/text-base/index.d.ts:33](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L33) Gets or sets a formatted string. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`formattedText`](TextBase.md#formattedtext) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`height`](TextBase.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`hidden`](TextBase.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`horizontalAlignment`](TextBase.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`id`](TextBase.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`ignoreTouchAnimation`](TextBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/label/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/label/index.d.ts#L17) Gets the native [UILabel](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/) that represents the user interface for this component. Valid only when running on iOS. #### Overrides [`TextBase`](TextBase.md).[`ios`](TextBase.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosAccessibilityAdjustsFontSize`](TextBase.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosAccessibilityMaxFontScale`](TextBase.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosAccessibilityMinFontScale`](TextBase.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosGlassEffect`](TextBase.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosIgnoreSafeArea`](TextBase.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosOverflowSafeArea`](TextBase.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosOverflowSafeAreaEnabled`](TextBase.md#iosoverflowsafeareaenabled) *** ### iosTextAnimation ```ts iosTextAnimation: boolean | "inherit"; ``` Defined in: [ui/text-base/index.d.ts:174](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L174) Specify wether the native text should be applied with or without animations #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`iosTextAnimation`](TextBase.md#iostextanimation) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`TextBase`](TextBase.md).[`isCollapsed`](TextBase.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`isEnabled`](TextBase.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`TextBase`](TextBase.md).[`isLayoutValid`](TextBase.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`isUserInteractionEnabled`](TextBase.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`left`](TextBase.md#left) *** ### letterSpacing ```ts letterSpacing: number; ``` Defined in: [ui/text-base/index.d.ts:68](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L68) Gets or sets letterSpace style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`letterSpacing`](TextBase.md#letterspacing) *** ### lineHeight ```ts lineHeight: number; ``` Defined in: [ui/text-base/index.d.ts:75](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L75) Gets or sets lineHeight style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`lineHeight`](TextBase.md#lineheight) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`margin`](TextBase.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginBottom`](TextBase.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginLeft`](TextBase.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginRight`](TextBase.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`marginTop`](TextBase.md#margintop) *** ### maxLines ```ts maxLines: number; ``` Defined in: [ui/text-base/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L132) Gets or sets white space style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`maxLines`](TextBase.md#maxlines) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`minHeight`](TextBase.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`minWidth`](TextBase.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`TextBase`](TextBase.md).[`mIsRootView`](TextBase.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`TextBase`](TextBase.md).[`modal`](TextBase.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`TextBase`](TextBase.md).[`nativeBackgroundState`](TextBase.md#nativebackgroundstate) *** ### nativeTextViewProtected ```ts readonly nativeTextViewProtected: any; ``` Defined in: [ui/text-base/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L19) Gets of the text widget. In some cases(android TextInputLayout) the TextView is made of 2 views: the layout and the text view So we need a different getter for the layout and text functions #### Inherited from [`TextBase`](TextBase.md).[`nativeTextViewProtected`](TextBase.md#nativetextviewprotected) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`TextBase`](TextBase.md).[`nativeViewProtected`](TextBase.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`opacity`](TextBase.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`order`](TextBase.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`originX`](TextBase.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`originY`](TextBase.md#originy) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/text-base/index.d.ts:139](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L139) Gets or sets padding style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`padding`](TextBase.md#padding) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/text-base/index.d.ts:146](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L146) Specify the bottom padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingBottom`](TextBase.md#paddingbottom) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/text-base/index.d.ts:153](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L153) Specify the left padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingLeft`](TextBase.md#paddingleft) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/text-base/index.d.ts:160](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L160) Specify the right padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingRight`](TextBase.md#paddingright) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/text-base/index.d.ts:167](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L167) Specify the top padding of this layout. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`paddingTop`](TextBase.md#paddingtop) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`TextBase`](TextBase.md).[`parent`](TextBase.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`perspective`](TextBase.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`TextBase`](TextBase.md).[`recycleNativeView`](TextBase.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`reusable`](TextBase.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rotate`](TextBase.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rotateX`](TextBase.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rotateY`](TextBase.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`row`](TextBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`rowSpan`](TextBase.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`scaleX`](TextBase.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`scaleY`](TextBase.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`sharedTransitionIgnore`](TextBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`sharedTransitionTag`](TextBase.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`statusBarStyle`](TextBase.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`testID`](TextBase.md#testid) *** ### text ```ts text: string; ``` Defined in: [ui/text-base/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L26) Gets or sets the text. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`text`](TextBase.md#text) *** ### textAlignment ```ts textAlignment: TextAlignmentType; ``` Defined in: [ui/text-base/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L82) Gets or sets text-alignment style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textAlignment`](TextBase.md#textalignment) *** ### textDecoration ```ts textDecoration: TextDecorationType; ``` Defined in: [ui/text-base/index.d.ts:89](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L89) Gets or sets text decorations style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textDecoration`](TextBase.md#textdecoration) *** ### textOverflow ```ts textOverflow: TextOverflowType; ``` Defined in: [ui/text-base/index.d.ts:125](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L125) Gets or sets text-overflow style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textOverflow`](TextBase.md#textoverflow) *** ### textShadow ```ts textShadow: ShadowCSSValues; ``` Defined in: [ui/text-base/index.d.ts:103](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L103) Gets or sets text shadow style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textShadow`](TextBase.md#textshadow) *** ### textStroke ```ts textStroke: StrokeCSSValues; ``` Defined in: [ui/text-base/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L111) Gets or sets text stroke style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textStroke`](TextBase.md#textstroke) *** ### textTransform ```ts textTransform: TextTransformType; ``` Defined in: [ui/text-base/index.d.ts:96](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L96) Gets or sets text transform style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`textTransform`](TextBase.md#texttransform) *** ### textWrap ```ts textWrap: boolean; ``` Defined in: [ui/label/index.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/label/index.d.ts#L24) Gets or sets whether the Label wraps text or not. #### Ns Property *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`top`](TextBase.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`touchAnimation`](TextBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`touchDelay`](TextBase.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`TextBase`](TextBase.md).[`transitionId`](TextBase.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`translateX`](TextBase.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`translateY`](TextBase.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`verticalAlignment`](TextBase.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`TextBase`](TextBase.md).[`viewController`](TextBase.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`visibility`](TextBase.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`visionHoverStyle`](TextBase.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`visionIgnoreHoverStyle`](TextBase.md#visionignorehoverstyle) *** ### whiteSpace ```ts whiteSpace: WhiteSpaceType; ``` Defined in: [ui/text-base/index.d.ts:118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L118) Gets or sets white space style property. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`whiteSpace`](TextBase.md#whitespace) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`TextBase`](TextBase.md).[`width`](TextBase.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`TextBase`](TextBase.md).[`accessibilityBlurEvent`](TextBase.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`TextBase`](TextBase.md).[`accessibilityFocusChangedEvent`](TextBase.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`TextBase`](TextBase.md).[`accessibilityFocusEvent`](TextBase.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`TextBase`](TextBase.md).[`accessibilityPerformEscapeEvent`](TextBase.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`TextBase`](TextBase.md).[`androidOverflowInsetEvent`](TextBase.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`TextBase`](TextBase.md).[`createdEvent`](TextBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`TextBase`](TextBase.md).[`disposeNativeViewEvent`](TextBase.md#disposenativeviewevent) *** ### iosTextAnimationFallback ```ts static iosTextAnimationFallback: boolean; ``` Defined in: [ui/text-base/index.d.ts:179](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/text-base/index.d.ts#L179) The value used when the iosTextAnimation is set to 'inherit' #### Inherited from [`TextBase`](TextBase.md).[`iosTextAnimationFallback`](TextBase.md#iostextanimationfallback) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`TextBase`](TextBase.md).[`layoutChangedEvent`](TextBase.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`TextBase`](TextBase.md).[`loadedEvent`](TextBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`TextBase`](TextBase.md).[`propertyChangeEvent`](TextBase.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`TextBase`](TextBase.md).[`showingModallyEvent`](TextBase.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`TextBase`](TextBase.md).[`shownModallyEvent`](TextBase.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`TextBase`](TextBase.md).[`unloadedEvent`](TextBase.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`backgroundPosition`](TextBase.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`backgroundRepeat`](TextBase.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`backgroundSize`](TextBase.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`class`](TextBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingBottom`](TextBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingLeft`](TextBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingRight`](TextBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`effectivePaddingTop`](TextBase.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`isLoaded`](TextBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`nativeView`](TextBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`TextBase`](TextBase.md).[`page`](TextBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`parentNode`](TextBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`style`](TextBase.md#style) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`typeName`](TextBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`visualState`](TextBase.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_addView`](TextBase.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_addViewCore`](TextBase.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_addViewToNativeVisualTree`](TextBase.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`TextBase`](TextBase.md).[`_applyGlassEffect`](TextBase.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`TextBase`](TextBase.md).[`_applyXmlAttribute`](TextBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`TextBase`](TextBase.md).[`_batchUpdate`](TextBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`_childIndexToNativeChildIndex`](TextBase.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_closeAllModalViewsInternal`](TextBase.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`TextBase`](TextBase.md).[`_createPropertyChangeData`](TextBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_dialogClosed`](TextBase.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_eachLayoutView`](TextBase.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_emit`](TextBase.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`_getNativeViewsCount`](TextBase.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`TextBase`](TextBase.md).[`_getRootModalViews`](TextBase.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`TextBase`](TextBase.md).[`_getValue`](TextBase.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_handleLivesync`](TextBase.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_hasAncestorView`](TextBase.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_hideNativeModalView`](TextBase.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_inheritStyles`](TextBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_inheritStyleScope`](TextBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_layoutParent`](TextBase.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_observe`](TextBase.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onAttachedToWindow`](TextBase.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onDetachedFromWindow`](TextBase.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onRootViewReset`](TextBase.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_onSizeChanged`](TextBase.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_parentChanged`](TextBase.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_raiseLayoutChangedEvent`](TextBase.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_raiseShowingModallyEvent`](TextBase.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_raiseShownModallyEvent`](TextBase.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_removeView`](TextBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_removeViewCore`](TextBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_removeViewFromNativeVisualTree`](TextBase.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_resumeNativeUpdates`](TextBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_setDefaultPaddings`](TextBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_setupAsRootView`](TextBase.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_setupUI`](TextBase.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`TextBase`](TextBase.md).[`_setValue`](TextBase.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`_shouldDelayLayout`](TextBase.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_showNativeModalView`](TextBase.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_suspendNativeUpdates`](TextBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_tearDownUI`](TextBase.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`_updateStyleScope`](TextBase.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`accessibilityAnnouncement`](TextBase.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`accessibilityScreenChanged`](TextBase.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`addEventListener`](TextBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`TextBase`](TextBase.md).[`addPseudoClass`](TextBase.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`TextBase`](TextBase.md).[`animate`](TextBase.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`bind`](TextBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`callLoaded`](TextBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`callUnloaded`](TextBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`closeModal`](TextBase.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`TextBase`](TextBase.md).[`createAnimation`](TextBase.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`TextBase`](TextBase.md).[`createNativeView`](TextBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`TextBase`](TextBase.md).[`deletePseudoClass`](TextBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`TextBase`](TextBase.md).[`destroyNode`](TextBase.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`disposeNativeView`](TextBase.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`eachChild`](TextBase.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`eachChildView`](TextBase.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`TextBase`](TextBase.md).[`ensureDomNode`](TextBase.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`focus`](TextBase.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`TextBase`](TextBase.md).[`get`](TextBase.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`TextBase`](TextBase.md).[`getActualSize`](TextBase.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`TextBase`](TextBase.md).[`getClosestWindow`](TextBase.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`getEffectivePaddingShorthand`](TextBase.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`TextBase`](TextBase.md).[`getGestureObservers`](TextBase.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`TextBase`](TextBase.md).[`getLocationInWindow`](TextBase.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`TextBase`](TextBase.md).[`getLocationOnScreen`](TextBase.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`TextBase`](TextBase.md).[`getLocationRelativeTo`](TextBase.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredHeight`](TextBase.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredState`](TextBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`getMeasuredWidth`](TextBase.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`TextBase`](TextBase.md).[`getSafeAreaInsets`](TextBase.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`TextBase`](TextBase.md).[`getViewByDomId`](TextBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`TextBase`](TextBase.md).[`getViewById`](TextBase.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`hasGestureObservers`](TextBase.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`hasListeners`](TextBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`initNativeView`](TextBase.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`layout`](TextBase.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`layoutNativeView`](TextBase.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`loadView`](TextBase.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`measure`](TextBase.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`notify`](TextBase.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`notifyPropertyChange`](TextBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`TextBase`](TextBase.md).[`off`](TextBase.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`TextBase`](TextBase.md).[`onBackPressed`](TextBase.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`once`](TextBase.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onLayout`](TextBase.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onLoaded`](TextBase.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onMeasure`](TextBase.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onResumeNativeUpdates`](TextBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`onUnloaded`](TextBase.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`removeEventListener`](TextBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`requestLayout`](TextBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`resetNativeView`](TextBase.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`TextBase`](TextBase.md).[`sendAccessibilityEvent`](TextBase.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`set`](TextBase.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setAccessibilityIdentifier`](TextBase.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setInlineStyle`](TextBase.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setMeasuredDimension`](TextBase.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setNativeView`](TextBase.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setOnTouchListener`](TextBase.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`setProperty`](TextBase.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`TextBase`](TextBase.md).[`showModal`](TextBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`TextBase`](TextBase.md).[`toString`](TextBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`unbind`](TextBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`unloadView`](TextBase.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`updateStatusBarStyle`](TextBase.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`addEventListener`](TextBase.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`combineMeasuredStates`](TextBase.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`TextBase`](TextBase.md).[`layoutChild`](TextBase.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`TextBase`](TextBase.md).[`measureChild`](TextBase.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`off`](TextBase.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`on`](TextBase.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`once`](TextBase.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`TextBase`](TextBase.md).[`removeEventListener`](TextBase.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`TextBase`](TextBase.md).[`resolveSizeAndState`](TextBase.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/LayoutBase.md' description: Base class for all views that supports children positioning. --- Defined in: [ui/layouts/layout-base.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L8) Base class for all views that supports children positioning. ## Extends * [`CustomLayoutView`](CustomLayoutView.md) ## Extended by * [`ProxyViewContainer`](ProxyViewContainer.md) * [`AbsoluteLayout`](AbsoluteLayout.md) * [`DockLayout`](DockLayout.md) * [`FlexboxLayout`](FlexboxLayout.md) * [`GridLayout`](GridLayout.md) * [`StackLayout`](StackLayout.md) * [`WrapLayout`](WrapLayout.md) ## Constructors ### Constructor ```ts new LayoutBase(): LayoutBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `LayoutBase` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`constructor`](CustomLayoutView.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_androidContentDescriptionUpdated`](CustomLayoutView.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_automaticallyAdjustsScrollViewInsets`](CustomLayoutView.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_closeModalCallback`](CustomLayoutView.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_context`](CustomLayoutView.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_cssState`](CustomLayoutView.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingBottom`](CustomLayoutView.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingLeft`](CustomLayoutView.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingRight`](CustomLayoutView.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingTop`](CustomLayoutView.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_domId`](CustomLayoutView.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_ignoreFlexMinWidthHeightReset`](CustomLayoutView.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isAddedToNativeVisualTree`](CustomLayoutView.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isPaddingRelative`](CustomLayoutView.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isStyleScopeHost`](CustomLayoutView.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldBottom`](CustomLayoutView.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldLeft`](CustomLayoutView.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldRight`](CustomLayoutView.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldTop`](CustomLayoutView.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_styleScope`](CustomLayoutView.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_suspendNativeUpdatesCount`](CustomLayoutView.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityHidden`](CustomLayoutView.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityHint`](CustomLayoutView.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityIdentifier`](CustomLayoutView.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityIgnoresInvertColors`](CustomLayoutView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityLabel`](CustomLayoutView.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityLanguage`](CustomLayoutView.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityLiveRegion`](CustomLayoutView.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityMediaSession`](CustomLayoutView.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityRole`](CustomLayoutView.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityState`](CustomLayoutView.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityValue`](CustomLayoutView.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessible`](CustomLayoutView.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`alignSelf`](CustomLayoutView.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`android`](CustomLayoutView.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidDynamicElevationOffset`](CustomLayoutView.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidElevation`](CustomLayoutView.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidOverflowEdge`](CustomLayoutView.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`automationText`](CustomLayoutView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`background`](CustomLayoutView.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundColor`](CustomLayoutView.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundImage`](CustomLayoutView.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`bindingContext`](CustomLayoutView.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomColor`](CustomLayoutView.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomLeftRadius`](CustomLayoutView.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomRightRadius`](CustomLayoutView.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomWidth`](CustomLayoutView.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderColor`](CustomLayoutView.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderLeftColor`](CustomLayoutView.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderLeftWidth`](CustomLayoutView.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderRadius`](CustomLayoutView.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderRightColor`](CustomLayoutView.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderRightWidth`](CustomLayoutView.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopColor`](CustomLayoutView.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopLeftRadius`](CustomLayoutView.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopRightRadius`](CustomLayoutView.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopWidth`](CustomLayoutView.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderWidth`](CustomLayoutView.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`boxShadow`](CustomLayoutView.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`className`](CustomLayoutView.md#classname) *** ### clipToBounds ```ts clipToBounds: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L106) Gets or sets a value indicating whether to clip the content of this layout. #### Ns Property *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`col`](CustomLayoutView.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`color`](CustomLayoutView.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`colSpan`](CustomLayoutView.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`column`](CustomLayoutView.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`columnSpan`](CustomLayoutView.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssClasses`](CustomLayoutView.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssPseudoClasses`](CustomLayoutView.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssType`](CustomLayoutView.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`defaultVisualState`](CustomLayoutView.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`direction`](CustomLayoutView.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`dock`](CustomLayoutView.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`domNode`](CustomLayoutView.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderBottomWidth`](CustomLayoutView.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderLeftWidth`](CustomLayoutView.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderRightWidth`](CustomLayoutView.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderTopWidth`](CustomLayoutView.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveHeight`](CustomLayoutView.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveLeft`](CustomLayoutView.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginBottom`](CustomLayoutView.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginLeft`](CustomLayoutView.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginRight`](CustomLayoutView.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginTop`](CustomLayoutView.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMinHeight`](CustomLayoutView.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMinWidth`](CustomLayoutView.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveTop`](CustomLayoutView.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveWidth`](CustomLayoutView.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flex`](CustomLayoutView.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexFlow`](CustomLayoutView.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexGrow`](CustomLayoutView.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexShrink`](CustomLayoutView.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexWrapBefore`](CustomLayoutView.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`height`](CustomLayoutView.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`hidden`](CustomLayoutView.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`horizontalAlignment`](CustomLayoutView.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`id`](CustomLayoutView.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`ignoreTouchAnimation`](CustomLayoutView.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`ios`](CustomLayoutView.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosAccessibilityAdjustsFontSize`](CustomLayoutView.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosAccessibilityMaxFontScale`](CustomLayoutView.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosAccessibilityMinFontScale`](CustomLayoutView.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosGlassEffect`](CustomLayoutView.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosIgnoreSafeArea`](CustomLayoutView.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosOverflowSafeArea`](CustomLayoutView.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosOverflowSafeAreaEnabled`](CustomLayoutView.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isCollapsed`](CustomLayoutView.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isEnabled`](CustomLayoutView.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isLayoutValid`](CustomLayoutView.md#islayoutvalid) *** ### isPassThroughParentEnabled ```ts isPassThroughParentEnabled: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L115) 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. #### Ns Property *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isUserInteractionEnabled`](CustomLayoutView.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`left`](CustomLayoutView.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`margin`](CustomLayoutView.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginBottom`](CustomLayoutView.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginLeft`](CustomLayoutView.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginRight`](CustomLayoutView.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginTop`](CustomLayoutView.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`minHeight`](CustomLayoutView.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`minWidth`](CustomLayoutView.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`mIsRootView`](CustomLayoutView.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`modal`](CustomLayoutView.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`nativeBackgroundState`](CustomLayoutView.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`nativeViewProtected`](CustomLayoutView.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`opacity`](CustomLayoutView.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`order`](CustomLayoutView.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`originX`](CustomLayoutView.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`originY`](CustomLayoutView.md#originy) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/layouts/layout-base.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L71) Gets or sets padding style property. #### Ns Property *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L78) Specify the bottom padding of this layout. #### Ns Property *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L85) Specify the left padding of this layout. #### Ns Property *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L92) Specify the right padding of this layout. #### Ns Property *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L99) Specify the top padding of this layout. #### Ns Property *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`parent`](CustomLayoutView.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`perspective`](CustomLayoutView.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`recycleNativeView`](CustomLayoutView.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`reusable`](CustomLayoutView.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rotate`](CustomLayoutView.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rotateX`](CustomLayoutView.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rotateY`](CustomLayoutView.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`row`](CustomLayoutView.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rowSpan`](CustomLayoutView.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`scaleX`](CustomLayoutView.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`scaleY`](CustomLayoutView.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`sharedTransitionIgnore`](CustomLayoutView.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`sharedTransitionTag`](CustomLayoutView.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`statusBarStyle`](CustomLayoutView.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`testID`](CustomLayoutView.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`top`](CustomLayoutView.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`touchAnimation`](CustomLayoutView.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`touchDelay`](CustomLayoutView.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`transitionId`](CustomLayoutView.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`translateX`](CustomLayoutView.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`translateY`](CustomLayoutView.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`verticalAlignment`](CustomLayoutView.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`viewController`](CustomLayoutView.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visibility`](CustomLayoutView.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visionHoverStyle`](CustomLayoutView.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visionIgnoreHoverStyle`](CustomLayoutView.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`width`](CustomLayoutView.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityBlurEvent`](CustomLayoutView.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityFocusChangedEvent`](CustomLayoutView.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityFocusEvent`](CustomLayoutView.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityPerformEscapeEvent`](CustomLayoutView.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidOverflowInsetEvent`](CustomLayoutView.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`createdEvent`](CustomLayoutView.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`disposeNativeViewEvent`](CustomLayoutView.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layoutChangedEvent`](CustomLayoutView.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`loadedEvent`](CustomLayoutView.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`propertyChangeEvent`](CustomLayoutView.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`showingModallyEvent`](CustomLayoutView.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`shownModallyEvent`](CustomLayoutView.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`unloadedEvent`](CustomLayoutView.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundPosition`](CustomLayoutView.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundRepeat`](CustomLayoutView.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundSize`](CustomLayoutView.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`class`](CustomLayoutView.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingBottom`](CustomLayoutView.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingLeft`](CustomLayoutView.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingRight`](CustomLayoutView.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingTop`](CustomLayoutView.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isLoaded`](CustomLayoutView.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`nativeView`](CustomLayoutView.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`page`](CustomLayoutView.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`parentNode`](CustomLayoutView.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`style`](CustomLayoutView.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`textTransform`](CustomLayoutView.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`typeName`](CustomLayoutView.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visualState`](CustomLayoutView.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_addView`](CustomLayoutView.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_addViewCore`](CustomLayoutView.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_addViewToNativeVisualTree`](CustomLayoutView.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_applyGlassEffect`](CustomLayoutView.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_applyXmlAttribute`](CustomLayoutView.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_batchUpdate`](CustomLayoutView.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_childIndexToNativeChildIndex`](CustomLayoutView.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_closeAllModalViewsInternal`](CustomLayoutView.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_createPropertyChangeData`](CustomLayoutView.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_dialogClosed`](CustomLayoutView.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_eachLayoutView`](CustomLayoutView.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_emit`](CustomLayoutView.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getNativeViewsCount`](CustomLayoutView.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getRootModalViews`](CustomLayoutView.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getValue`](CustomLayoutView.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_handleLivesync`](CustomLayoutView.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_hasAncestorView`](CustomLayoutView.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_hideNativeModalView`](CustomLayoutView.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_inheritStyles`](CustomLayoutView.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_inheritStyleScope`](CustomLayoutView.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_layoutParent`](CustomLayoutView.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_observe`](CustomLayoutView.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onAttachedToWindow`](CustomLayoutView.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onDetachedFromWindow`](CustomLayoutView.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onRootViewReset`](CustomLayoutView.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onSizeChanged`](CustomLayoutView.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_parentChanged`](CustomLayoutView.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_raiseLayoutChangedEvent`](CustomLayoutView.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_raiseShowingModallyEvent`](CustomLayoutView.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_raiseShownModallyEvent`](CustomLayoutView.md#raiseshownmodallyevent) *** ### \_registerLayoutChild() ```ts _registerLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L53) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_removeView`](CustomLayoutView.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_removeViewCore`](CustomLayoutView.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_removeViewFromNativeVisualTree`](CustomLayoutView.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_resumeNativeUpdates`](CustomLayoutView.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setDefaultPaddings`](CustomLayoutView.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setupAsRootView`](CustomLayoutView.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setupUI`](CustomLayoutView.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setValue`](CustomLayoutView.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_shouldDelayLayout`](CustomLayoutView.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_showNativeModalView`](CustomLayoutView.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_suspendNativeUpdates`](CustomLayoutView.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_tearDownUI`](CustomLayoutView.md#teardownui) *** ### \_unregisterLayoutChild() ```ts _unregisterLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L58) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_updateStyleScope`](CustomLayoutView.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityAnnouncement`](CustomLayoutView.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityScreenChanged`](CustomLayoutView.md#accessibilityscreenchanged) *** ### addChild() ```ts addChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L30) Adds the view to children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to be added to the end of the children array. | #### Returns `void` *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`addEventListener`](CustomLayoutView.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`addPseudoClass`](CustomLayoutView.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`animate`](CustomLayoutView.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`bind`](CustomLayoutView.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`callLoaded`](CustomLayoutView.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`callUnloaded`](CustomLayoutView.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`closeModal`](CustomLayoutView.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`createAnimation`](CustomLayoutView.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`createNativeView`](CustomLayoutView.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`deletePseudoClass`](CustomLayoutView.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`destroyNode`](CustomLayoutView.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`disposeNativeView`](CustomLayoutView.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`eachChild`](CustomLayoutView.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`eachChildView`](CustomLayoutView.md#eachchildview) *** ### eachLayoutChild() ```ts eachLayoutChild(callback: (child: View, isLast: boolean) => void): void; ``` Defined in: [ui/layouts/layout-base.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L64) Calls the callback for each child that should be laid out. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md), `isLast`: `boolean`) => `void` | The callback | #### Returns `void` *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`ensureDomNode`](CustomLayoutView.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`focus`](CustomLayoutView.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`get`](CustomLayoutView.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getActualSize`](CustomLayoutView.md#getactualsize) *** ### getChildAt() ```ts getChildAt(index: number): View; ``` Defined in: [ui/layouts/layout-base.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L18) Returns the view at the specified position. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | The position at which to get the child from. | #### Returns [`View`](View.md) *** ### getChildIndex() ```ts getChildIndex(child: View): number; ``` Defined in: [ui/layouts/layout-base.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L24) Returns the position of the child view #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | The child view that we are looking for. | #### Returns `number` *** ### getChildrenCount() ```ts getChildrenCount(): number; ``` Defined in: [ui/layouts/layout-base.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L12) Returns the number of children in this Layout. #### Returns `number` *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getClosestWindow`](CustomLayoutView.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getEffectivePaddingShorthand`](CustomLayoutView.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getGestureObservers`](CustomLayoutView.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getLocationInWindow`](CustomLayoutView.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getLocationOnScreen`](CustomLayoutView.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getLocationRelativeTo`](CustomLayoutView.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredHeight`](CustomLayoutView.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredState`](CustomLayoutView.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredWidth`](CustomLayoutView.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getSafeAreaInsets`](CustomLayoutView.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getViewByDomId`](CustomLayoutView.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getViewById`](CustomLayoutView.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`hasGestureObservers`](CustomLayoutView.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`hasListeners`](CustomLayoutView.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`initNativeView`](CustomLayoutView.md#initnativeview) *** ### insertChild() ```ts insertChild(child: View, atIndex: number): boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L37) Inserts the view to children array at the specified index. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | - | | `atIndex` | `number` | The insertion index. | #### Returns `boolean` *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layout`](CustomLayoutView.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layoutNativeView`](CustomLayoutView.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`loadView`](CustomLayoutView.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`measure`](CustomLayoutView.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`notify`](CustomLayoutView.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`notifyPropertyChange`](CustomLayoutView.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`off`](CustomLayoutView.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onBackPressed`](CustomLayoutView.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`once`](CustomLayoutView.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onLayout`](CustomLayoutView.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onLoaded`](CustomLayoutView.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onMeasure`](CustomLayoutView.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onResumeNativeUpdates`](CustomLayoutView.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onUnloaded`](CustomLayoutView.md#onunloaded) *** ### removeChild() ```ts removeChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L43) Removes the specified view from the children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to remove from the children array. | #### Returns `void` *** ### removeChildren() ```ts removeChildren(): void; ``` Defined in: [ui/layouts/layout-base.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L48) Removes all views in this layout. #### Returns `void` *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`removeEventListener`](CustomLayoutView.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`requestLayout`](CustomLayoutView.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`resetNativeView`](CustomLayoutView.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`sendAccessibilityEvent`](CustomLayoutView.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`set`](CustomLayoutView.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setAccessibilityIdentifier`](CustomLayoutView.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setInlineStyle`](CustomLayoutView.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setMeasuredDimension`](CustomLayoutView.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setNativeView`](CustomLayoutView.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setOnTouchListener`](CustomLayoutView.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setProperty`](CustomLayoutView.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`showModal`](CustomLayoutView.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`toString`](CustomLayoutView.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`unbind`](CustomLayoutView.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`unloadView`](CustomLayoutView.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`updateStatusBarStyle`](CustomLayoutView.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`addEventListener`](CustomLayoutView.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`combineMeasuredStates`](CustomLayoutView.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layoutChild`](CustomLayoutView.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`measureChild`](CustomLayoutView.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`off`](CustomLayoutView.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`once`](CustomLayoutView.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`removeEventListener`](CustomLayoutView.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`resolveSizeAndState`](CustomLayoutView.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/LinearGradient.md' --- Defined in: [ui/styling/linear-gradient.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/linear-gradient.ts) ## Constructors ### Constructor ```ts new LinearGradient(): LinearGradient; ``` #### Returns `LinearGradient` ## Properties ### angle ```ts angle: number; ``` Defined in: [ui/styling/linear-gradient.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/linear-gradient.ts) *** ### colorStops ```ts colorStops: ColorStop[]; ``` Defined in: [ui/styling/linear-gradient.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/linear-gradient.ts) ## Methods ### equals() ```ts static equals(first: LinearGradient, second: LinearGradient): boolean; ``` Defined in: [ui/styling/linear-gradient.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/linear-gradient.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `first` | `LinearGradient` | | `second` | `LinearGradient` | #### Returns `boolean` *** ### parse() ```ts static parse(value: LinearGradient): LinearGradient; ``` Defined in: [ui/styling/linear-gradient.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/styling/linear-gradient.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `LinearGradient` | #### Returns `LinearGradient` --- --- url: 'https://docs.nativescript.org/api/classes/LiquidGlass.md' --- Defined in: [ui/layouts/liquid-glass/index.d.ts:3](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/liquid-glass/index.d.ts#L3) ## Extends * `LiquidGlassCommon` ## Constructors ### Constructor ```ts new LiquidGlass(): LiquidGlass; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `LiquidGlass` #### Inherited from ```ts LiquidGlassCommon.constructor ``` ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from ```ts LiquidGlassCommon._androidContentDescriptionUpdated ``` *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._automaticallyAdjustsScrollViewInsets ``` *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts LiquidGlassCommon._closeModalCallback ``` *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._context ``` *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._cssState ``` *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._defaultPaddingBottom ``` *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._defaultPaddingLeft ``` *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._defaultPaddingRight ``` *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._defaultPaddingTop ``` *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._domId ``` *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._ignoreFlexMinWidthHeightReset ``` *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._isAddedToNativeVisualTree ``` *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._isPaddingRelative ``` *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._isStyleScopeHost ``` *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._oldBottom ``` *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._oldLeft ``` *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._oldRight ``` *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._oldTop ``` *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon._styleScope ``` *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from ```ts LiquidGlassCommon._suspendNativeUpdatesCount ``` *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityHidden ``` *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityHint ``` *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityIdentifier ``` *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityIgnoresInvertColors ``` *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityLabel ``` *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityLanguage ``` *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityLiveRegion ``` *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityMediaSession ``` *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityRole ``` *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityState ``` *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessibilityValue ``` *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.accessible ``` *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.alignSelf ``` *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from ```ts LiquidGlassCommon.android ``` *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.androidDynamicElevationOffset ``` *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.androidElevation ``` *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts LiquidGlassCommon.androidOverflowEdge ``` *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from ```ts LiquidGlassCommon.automationText ``` *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.background ``` *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.backgroundColor ``` *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.backgroundImage ``` *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.bindingContext ``` *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderBottomColor ``` *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderBottomLeftRadius ``` *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderBottomRightRadius ``` *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderBottomWidth ``` *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderColor ``` *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderLeftColor ``` *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderLeftWidth ``` *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderRadius ``` *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderRightColor ``` *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderRightWidth ``` *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderTopColor ``` *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderTopLeftRadius ``` *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderTopRightRadius ``` *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderTopWidth ``` *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.borderWidth ``` *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.boxShadow ``` *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.className ``` *** ### clipToBounds ```ts clipToBounds: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L106) Gets or sets a value indicating whether to clip the content of this layout. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.clipToBounds ``` *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.col ``` *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.color ``` *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.colSpan ``` *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.column ``` *** ### columns ```ts columns: string; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:67](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L67) A string value representing column widths delimited with commas. Valid values: an absolute number, auto, or \*: #### Ns Property #### Inherited from ```ts LiquidGlassCommon.columns ``` *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from ```ts LiquidGlassCommon.columnSpan ``` *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from ```ts LiquidGlassCommon.cssClasses ``` *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from ```ts LiquidGlassCommon.cssPseudoClasses ``` *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from ```ts LiquidGlassCommon.cssType ``` *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from ```ts LiquidGlassCommon.defaultVisualState ``` *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.direction ``` *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.dock ``` *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.domNode ``` *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveBorderBottomWidth ``` *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveBorderLeftWidth ``` *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveBorderRightWidth ``` *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveBorderTopWidth ``` *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveHeight ``` *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveLeft ``` *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveMarginBottom ``` *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveMarginLeft ``` *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveMarginRight ``` *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveMarginTop ``` *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveMinHeight ``` *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveMinWidth ``` *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveTop ``` *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.effectiveWidth ``` *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.flex ``` *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.flexFlow ``` *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.flexGrow ``` *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.flexShrink ``` *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.flexWrapBefore ``` *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.height ``` *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.hidden ``` *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.horizontalAlignment ``` *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.id ``` *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from ```ts LiquidGlassCommon.ignoreTouchAnimation ``` *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from ```ts LiquidGlassCommon.ios ``` *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.iosAccessibilityAdjustsFontSize ``` *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.iosAccessibilityMaxFontScale ``` *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.iosAccessibilityMinFontScale ``` *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.iosGlassEffect ``` *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from ```ts LiquidGlassCommon.iosIgnoreSafeArea ``` *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from ```ts LiquidGlassCommon.iosOverflowSafeArea ``` *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from ```ts LiquidGlassCommon.iosOverflowSafeAreaEnabled ``` *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from ```ts LiquidGlassCommon.isCollapsed ``` *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.isEnabled ``` *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from ```ts LiquidGlassCommon.isLayoutValid ``` *** ### isPassThroughParentEnabled ```ts isPassThroughParentEnabled: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L115) 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. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.isPassThroughParentEnabled ``` *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.isUserInteractionEnabled ``` *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.left ``` *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.margin ``` *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.marginBottom ``` *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.marginLeft ``` *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.marginRight ``` *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.marginTop ``` *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.minHeight ``` *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.minWidth ``` *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from ```ts LiquidGlassCommon.mIsRootView ``` *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from ```ts LiquidGlassCommon.modal ``` *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from ```ts LiquidGlassCommon.nativeBackgroundState ``` *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from ```ts LiquidGlassCommon.nativeViewProtected ``` *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.opacity ``` *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.order ``` *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.originX ``` *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.originY ``` *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/layouts/layout-base.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L71) Gets or sets padding style property. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.padding ``` *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L78) Specify the bottom padding of this layout. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.paddingBottom ``` *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L85) Specify the left padding of this layout. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.paddingLeft ``` *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L92) Specify the right padding of this layout. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.paddingRight ``` *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L99) Specify the top padding of this layout. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.paddingTop ``` *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from ```ts LiquidGlassCommon.parent ``` *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.perspective ``` *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassCommon.recycleNativeView ``` *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.reusable ``` *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.rotate ``` *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.rotateX ``` *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.rotateY ``` *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.row ``` *** ### rows ```ts rows: string; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L59) A string value representing row heights delimited with commas. Valid values: an absolute number, auto, or \*: #### Ns Property #### Inherited from ```ts LiquidGlassCommon.rows ``` *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.rowSpan ``` *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.scaleX ``` *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.scaleY ``` *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from ```ts LiquidGlassCommon.sharedTransitionIgnore ``` *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from ```ts LiquidGlassCommon.sharedTransitionTag ``` *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.statusBarStyle ``` *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from ```ts LiquidGlassCommon.testID ``` *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.top ``` *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from ```ts LiquidGlassCommon.touchAnimation ``` *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from ```ts LiquidGlassCommon.touchDelay ``` *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from ```ts LiquidGlassCommon.transitionId ``` *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.translateX ``` *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.translateY ``` *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.verticalAlignment ``` *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from ```ts LiquidGlassCommon.viewController ``` *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.visibility ``` *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from ```ts LiquidGlassCommon.visionHoverStyle ``` *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from ```ts LiquidGlassCommon.visionIgnoreHoverStyle ``` *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassCommon.width ``` *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from ```ts LiquidGlassCommon.accessibilityBlurEvent ``` *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from ```ts LiquidGlassCommon.accessibilityFocusChangedEvent ``` *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from ```ts LiquidGlassCommon.accessibilityFocusEvent ``` *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts LiquidGlassCommon.accessibilityPerformEscapeEvent ``` *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from ```ts LiquidGlassCommon.androidOverflowInsetEvent ``` *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from ```ts LiquidGlassCommon.createdEvent ``` *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from ```ts LiquidGlassCommon.disposeNativeViewEvent ``` *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from ```ts LiquidGlassCommon.layoutChangedEvent ``` *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from ```ts LiquidGlassCommon.loadedEvent ``` *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from ```ts LiquidGlassCommon.propertyChangeEvent ``` *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from ```ts LiquidGlassCommon.showingModallyEvent ``` *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from ```ts LiquidGlassCommon.shownModallyEvent ``` *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from ```ts LiquidGlassCommon.unloadedEvent ``` ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.backgroundPosition ``` *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.backgroundRepeat ``` *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.backgroundSize ``` *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.class ``` *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.effectivePaddingBottom ``` *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.effectivePaddingLeft ``` *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.effectivePaddingRight ``` *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.effectivePaddingTop ``` *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from ```ts LiquidGlassCommon.isLoaded ``` *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.nativeView ``` *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from ```ts LiquidGlassCommon.page ``` *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.parentNode ``` *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.style ``` *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from ```ts LiquidGlassCommon.textTransform ``` *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from ```ts LiquidGlassCommon.typeName ``` *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from ```ts LiquidGlassCommon.visualState ``` ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._addView ``` *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._addViewCore ``` *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from ```ts LiquidGlassCommon._addViewToNativeVisualTree ``` *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from ```ts LiquidGlassCommon._applyGlassEffect ``` *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from ```ts LiquidGlassCommon._applyXmlAttribute ``` *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from ```ts LiquidGlassCommon._batchUpdate ``` *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from ```ts LiquidGlassCommon._childIndexToNativeChildIndex ``` *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from ```ts LiquidGlassCommon._closeAllModalViewsInternal ``` *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from ```ts LiquidGlassCommon._createPropertyChangeData ``` *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._dialogClosed ``` *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._eachLayoutView ``` *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._emit ``` *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from ```ts LiquidGlassCommon._getNativeViewsCount ``` *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from ```ts LiquidGlassCommon._getRootModalViews ``` *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from ```ts LiquidGlassCommon._getValue ``` *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from ```ts LiquidGlassCommon._handleLivesync ``` *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from ```ts LiquidGlassCommon._hasAncestorView ``` *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._hideNativeModalView ``` *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._inheritStyles ``` *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._inheritStyleScope ``` *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._layoutParent ``` *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._observe ``` *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._onAttachedToWindow ``` *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._onDetachedFromWindow ``` *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._onRootViewReset ``` *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._onSizeChanged ``` *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._parentChanged ``` *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._raiseLayoutChangedEvent ``` *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._raiseShowingModallyEvent ``` *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._raiseShownModallyEvent ``` *** ### \_registerLayoutChild() ```ts _registerLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L53) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._registerLayoutChild ``` *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._removeView ``` *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._removeViewCore ``` *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._removeViewFromNativeVisualTree ``` *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._resumeNativeUpdates ``` *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._setDefaultPaddings ``` *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._setupAsRootView ``` *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._setupUI ``` *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from ```ts LiquidGlassCommon._setValue ``` *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from ```ts LiquidGlassCommon._shouldDelayLayout ``` *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._showNativeModalView ``` *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._suspendNativeUpdates ``` *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._tearDownUI ``` *** ### \_unregisterLayoutChild() ```ts _unregisterLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L58) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._unregisterLayoutChild ``` *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon._updateStyleScope ``` *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.accessibilityAnnouncement ``` *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.accessibilityScreenChanged ``` *** ### addChild() ```ts addChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L30) Adds the view to children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to be added to the end of the children array. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.addChild ``` *** ### addChildAtCell() ```ts addChildAtCell( view: View, row: number, column: number, rowSpan?: number, columnSpan?: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:122](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L122) Adds a child at specific cell in GridLayout. Optional rowSpan and columnSpan attributes #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `row` | `number` | | `column` | `number` | | `rowSpan?` | `number` | | `columnSpan?` | `number` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.addChildAtCell ``` *** ### addColumn() ```ts addColumn(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:112](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L112) Adds a column specification to a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.addColumn ``` *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.addEventListener ``` *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from ```ts LiquidGlassCommon.addPseudoClass ``` *** ### addRow() ```ts addRow(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L117) Adds a row specification to a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.addRow ``` *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from ```ts LiquidGlassCommon.animate ``` *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.bind ``` *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.callLoaded ``` *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.callUnloaded ``` *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.closeModal ``` *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from ```ts LiquidGlassCommon.createAnimation ``` *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from ```ts LiquidGlassCommon.createNativeView ``` *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from ```ts LiquidGlassCommon.deletePseudoClass ``` *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from ```ts LiquidGlassCommon.destroyNode ``` *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.disposeNativeView ``` *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.eachChild ``` *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.eachChildView ``` *** ### eachLayoutChild() ```ts eachLayoutChild(callback: (child: View, isLast: boolean) => void): void; ``` Defined in: [ui/layouts/layout-base.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L64) Calls the callback for each child that should be laid out. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md), `isLast`: `boolean`) => `void` | The callback | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.eachLayoutChild ``` *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from ```ts LiquidGlassCommon.ensureDomNode ``` *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from ```ts LiquidGlassCommon.focus ``` *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from ```ts LiquidGlassCommon.get ``` *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from ```ts LiquidGlassCommon.getActualSize ``` *** ### getChildAt() ```ts getChildAt(index: number): View; ``` Defined in: [ui/layouts/layout-base.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L18) Returns the view at the specified position. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | The position at which to get the child from. | #### Returns [`View`](View.md) #### Inherited from ```ts LiquidGlassCommon.getChildAt ``` *** ### getChildIndex() ```ts getChildIndex(child: View): number; ``` Defined in: [ui/layouts/layout-base.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L24) Returns the position of the child view #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | The child view that we are looking for. | #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getChildIndex ``` *** ### getChildrenCount() ```ts getChildrenCount(): number; ``` Defined in: [ui/layouts/layout-base.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L12) Returns the number of children in this Layout. #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getChildrenCount ``` *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from ```ts LiquidGlassCommon.getClosestWindow ``` *** ### getColumns() ```ts getColumns(): ItemSpec[]; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:147](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L147) Gets array of column specifications defined on this instance of GridLayout. #### Returns [`ItemSpec`](ItemSpec.md)\[] #### Inherited from ```ts LiquidGlassCommon.getColumns ``` *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from ```ts LiquidGlassCommon.getEffectivePaddingShorthand ``` *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from ```ts LiquidGlassCommon.getGestureObservers ``` *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from ```ts LiquidGlassCommon.getLocationInWindow ``` *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from ```ts LiquidGlassCommon.getLocationOnScreen ``` *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from ```ts LiquidGlassCommon.getLocationRelativeTo ``` *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getMeasuredHeight ``` *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getMeasuredState ``` *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getMeasuredWidth ``` *** ### getRows() ```ts getRows(): ItemSpec[]; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L152) Gets array of row specifications defined on this instance of GridLayout. #### Returns [`ItemSpec`](ItemSpec.md)\[] #### Inherited from ```ts LiquidGlassCommon.getRows ``` *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from ```ts LiquidGlassCommon.getSafeAreaInsets ``` *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from ```ts LiquidGlassCommon.getViewByDomId ``` *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from ```ts LiquidGlassCommon.getViewById ``` *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from ```ts LiquidGlassCommon.hasGestureObservers ``` *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from ```ts LiquidGlassCommon.hasListeners ``` *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.initNativeView ``` *** ### insertChild() ```ts insertChild(child: View, atIndex: number): boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L37) Inserts the view to children array at the specified index. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | - | | `atIndex` | `number` | The insertion index. | #### Returns `boolean` #### Inherited from ```ts LiquidGlassCommon.insertChild ``` *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.layout ``` *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.layoutNativeView ``` *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.loadView ``` *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.measure ``` *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.notify ``` *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.notifyPropertyChange ``` *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from ```ts LiquidGlassCommon.off ``` *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from ```ts LiquidGlassCommon.on ``` #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from ```ts LiquidGlassCommon.on ``` #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from ```ts LiquidGlassCommon.on ``` #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from ```ts LiquidGlassCommon.on ``` #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from ```ts LiquidGlassCommon.on ``` #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from ```ts LiquidGlassCommon.on ``` #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from ```ts LiquidGlassCommon.on ``` *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from ```ts LiquidGlassCommon.onBackPressed ``` *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.once ``` *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.onLayout ``` *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.onLoaded ``` *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.onMeasure ``` *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.onResumeNativeUpdates ``` *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.onUnloaded ``` *** ### removeChild() ```ts removeChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L43) Removes the specified view from the children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to remove from the children array. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.removeChild ``` *** ### removeChildren() ```ts removeChildren(): void; ``` Defined in: [ui/layouts/layout-base.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L48) Removes all views in this layout. #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.removeChildren ``` *** ### removeColumn() ```ts removeColumn(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L127) Removes a column specification from a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.removeColumn ``` *** ### removeColumns() ```ts removeColumns(): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L132) Removes all column specifications from a GridLayout. #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.removeColumns ``` *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.removeEventListener ``` *** ### removeRow() ```ts removeRow(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:137](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L137) Removes a row specification from a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.removeRow ``` *** ### removeRows() ```ts removeRows(): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:142](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L142) Removes all row specifications from a GridLayout. #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.removeRows ``` *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.requestLayout ``` *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.resetNativeView ``` *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from ```ts LiquidGlassCommon.sendAccessibilityEvent ``` *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.set ``` *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.setAccessibilityIdentifier ``` *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.setInlineStyle ``` *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.setMeasuredDimension ``` *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.setNativeView ``` *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.setOnTouchListener ``` *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.setProperty ``` *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from ```ts LiquidGlassCommon.showModal ``` *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from ```ts LiquidGlassCommon.toString ``` *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.unbind ``` *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.unloadView ``` *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.updateStatusBarStyle ``` *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from ```ts LiquidGlassCommon.addEventListener ``` *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.combineMeasuredStates ``` *** ### getColumn() ```ts static getColumn(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L72) Gets the value of the Column attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getColumn ``` *** ### getColumnSpan() ```ts static getColumnSpan(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L82) Gets the value of the ColumnSpan attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getColumnSpan ``` *** ### getRow() ```ts static getRow(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L92) Gets the value of the Row attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getRow ``` *** ### getRowSpan() ```ts static getRowSpan(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L102) Gets the value of the RowSpan attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.getRowSpan ``` *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.layoutChild ``` *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from ```ts LiquidGlassCommon.measureChild ``` *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from ```ts LiquidGlassCommon.off ``` *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from ```ts LiquidGlassCommon.on ``` *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from ```ts LiquidGlassCommon.once ``` *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from ```ts LiquidGlassCommon.removeEventListener ``` *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from ```ts LiquidGlassCommon.resolveSizeAndState ``` *** ### setColumn() ```ts static setColumn(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:77](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L77) Sets the value of the Column attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.setColumn ``` *** ### setColumnSpan() ```ts static setColumnSpan(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:87](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L87) Sets the value of the ColumnSpan attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.setColumnSpan ``` *** ### setRow() ```ts static setRow(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:97](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L97) Sets the value of the Row attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.setRow ``` *** ### setRowSpan() ```ts static setRowSpan(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L107) Sets the value of the RowSpan attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` #### Inherited from ```ts LiquidGlassCommon.setRowSpan ``` --- --- url: 'https://docs.nativescript.org/api/classes/LiquidGlassContainer.md' --- Defined in: [ui/layouts/liquid-glass-container/index.d.ts:3](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/liquid-glass-container/index.d.ts#L3) ## Extends * `LiquidGlassContainerCommon` ## Constructors ### Constructor ```ts new LiquidGlassContainer(): LiquidGlassContainer; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `LiquidGlassContainer` #### Inherited from ```ts LiquidGlassContainerCommon.constructor ``` ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from ```ts LiquidGlassContainerCommon._androidContentDescriptionUpdated ``` *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._automaticallyAdjustsScrollViewInsets ``` *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts LiquidGlassContainerCommon._closeModalCallback ``` *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._context ``` *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._cssState ``` *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._defaultPaddingBottom ``` *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._defaultPaddingLeft ``` *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._defaultPaddingRight ``` *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._defaultPaddingTop ``` *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._domId ``` *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._ignoreFlexMinWidthHeightReset ``` *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._isAddedToNativeVisualTree ``` *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._isPaddingRelative ``` *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._isStyleScopeHost ``` *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._oldBottom ``` *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._oldLeft ``` *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._oldRight ``` *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._oldTop ``` *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon._styleScope ``` *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from ```ts LiquidGlassContainerCommon._suspendNativeUpdatesCount ``` *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityHidden ``` *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityHint ``` *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityIdentifier ``` *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityIgnoresInvertColors ``` *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityLabel ``` *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityLanguage ``` *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityLiveRegion ``` *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityMediaSession ``` *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityRole ``` *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityState ``` *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityValue ``` *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.accessible ``` *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.alignSelf ``` *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from ```ts LiquidGlassContainerCommon.android ``` *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.androidDynamicElevationOffset ``` *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.androidElevation ``` *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts LiquidGlassContainerCommon.androidOverflowEdge ``` *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.automationText ``` *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.background ``` *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.backgroundColor ``` *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.backgroundImage ``` *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.bindingContext ``` *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderBottomColor ``` *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderBottomLeftRadius ``` *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderBottomRightRadius ``` *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderBottomWidth ``` *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderColor ``` *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderLeftColor ``` *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderLeftWidth ``` *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderRadius ``` *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderRightColor ``` *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderRightWidth ``` *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderTopColor ``` *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderTopLeftRadius ``` *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderTopRightRadius ``` *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderTopWidth ``` *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.borderWidth ``` *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.boxShadow ``` *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.className ``` *** ### clipToBounds ```ts clipToBounds: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L106) Gets or sets a value indicating whether to clip the content of this layout. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.clipToBounds ``` *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.col ``` *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.color ``` *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.colSpan ``` *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.column ``` *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.columnSpan ``` *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from ```ts LiquidGlassContainerCommon.cssClasses ``` *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from ```ts LiquidGlassContainerCommon.cssPseudoClasses ``` *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from ```ts LiquidGlassContainerCommon.cssType ``` *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.defaultVisualState ``` *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.direction ``` *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.dock ``` *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.domNode ``` *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveBorderBottomWidth ``` *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveBorderLeftWidth ``` *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveBorderRightWidth ``` *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveBorderTopWidth ``` *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveHeight ``` *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveLeft ``` *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveMarginBottom ``` *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveMarginLeft ``` *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveMarginRight ``` *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveMarginTop ``` *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveMinHeight ``` *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveMinWidth ``` *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveTop ``` *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.effectiveWidth ``` *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.flex ``` *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.flexFlow ``` *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.flexGrow ``` *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.flexShrink ``` *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.flexWrapBefore ``` *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.height ``` *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.hidden ``` *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.horizontalAlignment ``` *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.id ``` *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.ignoreTouchAnimation ``` *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from ```ts LiquidGlassContainerCommon.ios ``` *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.iosAccessibilityAdjustsFontSize ``` *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.iosAccessibilityMaxFontScale ``` *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.iosAccessibilityMinFontScale ``` *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.iosGlassEffect ``` *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.iosIgnoreSafeArea ``` *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.iosOverflowSafeArea ``` *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.iosOverflowSafeAreaEnabled ``` *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from ```ts LiquidGlassContainerCommon.isCollapsed ``` *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.isEnabled ``` *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from ```ts LiquidGlassContainerCommon.isLayoutValid ``` *** ### isPassThroughParentEnabled ```ts isPassThroughParentEnabled: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L115) 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. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.isPassThroughParentEnabled ``` *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.isUserInteractionEnabled ``` *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.left ``` *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.margin ``` *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.marginBottom ``` *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.marginLeft ``` *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.marginRight ``` *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.marginTop ``` *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.minHeight ``` *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.minWidth ``` *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from ```ts LiquidGlassContainerCommon.mIsRootView ``` *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from ```ts LiquidGlassContainerCommon.modal ``` *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from ```ts LiquidGlassContainerCommon.nativeBackgroundState ``` *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from ```ts LiquidGlassContainerCommon.nativeViewProtected ``` *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.opacity ``` *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.order ``` *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.originX ``` *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.originY ``` *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/layouts/layout-base.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L71) Gets or sets padding style property. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.padding ``` *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L78) Specify the bottom padding of this layout. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.paddingBottom ``` *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L85) Specify the left padding of this layout. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.paddingLeft ``` *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L92) Specify the right padding of this layout. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.paddingRight ``` *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L99) Specify the top padding of this layout. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.paddingTop ``` *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from ```ts LiquidGlassContainerCommon.parent ``` *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.perspective ``` *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from ```ts LiquidGlassContainerCommon.recycleNativeView ``` *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.reusable ``` *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.rotate ``` *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.rotateX ``` *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.rotateY ``` *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.row ``` *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.rowSpan ``` *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.scaleX ``` *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.scaleY ``` *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.sharedTransitionIgnore ``` *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.sharedTransitionTag ``` *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.statusBarStyle ``` *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.testID ``` *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.top ``` *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.touchAnimation ``` *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.touchDelay ``` *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from ```ts LiquidGlassContainerCommon.transitionId ``` *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.translateX ``` *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.translateY ``` *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.verticalAlignment ``` *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from ```ts LiquidGlassContainerCommon.viewController ``` *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.visibility ``` *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.visionHoverStyle ``` *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.visionIgnoreHoverStyle ``` *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from ```ts LiquidGlassContainerCommon.width ``` *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityBlurEvent ``` *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityFocusChangedEvent ``` *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityFocusEvent ``` *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityPerformEscapeEvent ``` *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from ```ts LiquidGlassContainerCommon.androidOverflowInsetEvent ``` *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from ```ts LiquidGlassContainerCommon.createdEvent ``` *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from ```ts LiquidGlassContainerCommon.disposeNativeViewEvent ``` *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from ```ts LiquidGlassContainerCommon.layoutChangedEvent ``` *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from ```ts LiquidGlassContainerCommon.loadedEvent ``` *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from ```ts LiquidGlassContainerCommon.propertyChangeEvent ``` *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from ```ts LiquidGlassContainerCommon.showingModallyEvent ``` *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from ```ts LiquidGlassContainerCommon.shownModallyEvent ``` *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from ```ts LiquidGlassContainerCommon.unloadedEvent ``` ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.backgroundPosition ``` *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.backgroundRepeat ``` *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.backgroundSize ``` *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.class ``` *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.effectivePaddingBottom ``` *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.effectivePaddingLeft ``` *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.effectivePaddingRight ``` *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.effectivePaddingTop ``` *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from ```ts LiquidGlassContainerCommon.isLoaded ``` *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.nativeView ``` *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from ```ts LiquidGlassContainerCommon.page ``` *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.parentNode ``` *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.style ``` *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.textTransform ``` *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from ```ts LiquidGlassContainerCommon.typeName ``` *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from ```ts LiquidGlassContainerCommon.visualState ``` ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._addView ``` *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._addViewCore ``` *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from ```ts LiquidGlassContainerCommon._addViewToNativeVisualTree ``` *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from ```ts LiquidGlassContainerCommon._applyGlassEffect ``` *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from ```ts LiquidGlassContainerCommon._applyXmlAttribute ``` *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from ```ts LiquidGlassContainerCommon._batchUpdate ``` *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon._childIndexToNativeChildIndex ``` *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from ```ts LiquidGlassContainerCommon._closeAllModalViewsInternal ``` *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from ```ts LiquidGlassContainerCommon._createPropertyChangeData ``` *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._dialogClosed ``` *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._eachLayoutView ``` *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._emit ``` *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon._getNativeViewsCount ``` *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from ```ts LiquidGlassContainerCommon._getRootModalViews ``` *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from ```ts LiquidGlassContainerCommon._getValue ``` *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from ```ts LiquidGlassContainerCommon._handleLivesync ``` *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from ```ts LiquidGlassContainerCommon._hasAncestorView ``` *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._hideNativeModalView ``` *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._inheritStyles ``` *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._inheritStyleScope ``` *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._layoutParent ``` *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._observe ``` *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._onAttachedToWindow ``` *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._onDetachedFromWindow ``` *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._onRootViewReset ``` *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._onSizeChanged ``` *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._parentChanged ``` *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._raiseLayoutChangedEvent ``` *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._raiseShowingModallyEvent ``` *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._raiseShownModallyEvent ``` *** ### \_registerLayoutChild() ```ts _registerLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L53) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._registerLayoutChild ``` *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._removeView ``` *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._removeViewCore ``` *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._removeViewFromNativeVisualTree ``` *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._resumeNativeUpdates ``` *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._setDefaultPaddings ``` *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._setupAsRootView ``` *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._setupUI ``` *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from ```ts LiquidGlassContainerCommon._setValue ``` *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from ```ts LiquidGlassContainerCommon._shouldDelayLayout ``` *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._showNativeModalView ``` *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._suspendNativeUpdates ``` *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._tearDownUI ``` *** ### \_unregisterLayoutChild() ```ts _unregisterLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L58) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._unregisterLayoutChild ``` *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon._updateStyleScope ``` *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityAnnouncement ``` *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.accessibilityScreenChanged ``` *** ### addChild() ```ts addChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L30) Adds the view to children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to be added to the end of the children array. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.addChild ``` *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.addEventListener ``` *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from ```ts LiquidGlassContainerCommon.addPseudoClass ``` *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from ```ts LiquidGlassContainerCommon.animate ``` *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.bind ``` *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.callLoaded ``` *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.callUnloaded ``` *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.closeModal ``` *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from ```ts LiquidGlassContainerCommon.createAnimation ``` *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from ```ts LiquidGlassContainerCommon.createNativeView ``` *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from ```ts LiquidGlassContainerCommon.deletePseudoClass ``` *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from ```ts LiquidGlassContainerCommon.destroyNode ``` *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.disposeNativeView ``` *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.eachChild ``` *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.eachChildView ``` *** ### eachLayoutChild() ```ts eachLayoutChild(callback: (child: View, isLast: boolean) => void): void; ``` Defined in: [ui/layouts/layout-base.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L64) Calls the callback for each child that should be laid out. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md), `isLast`: `boolean`) => `void` | The callback | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.eachLayoutChild ``` *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from ```ts LiquidGlassContainerCommon.ensureDomNode ``` *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from ```ts LiquidGlassContainerCommon.focus ``` *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from ```ts LiquidGlassContainerCommon.get ``` *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from ```ts LiquidGlassContainerCommon.getActualSize ``` *** ### getChildAt() ```ts getChildAt(index: number): View; ``` Defined in: [ui/layouts/layout-base.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L18) Returns the view at the specified position. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | The position at which to get the child from. | #### Returns [`View`](View.md) #### Inherited from ```ts LiquidGlassContainerCommon.getChildAt ``` *** ### getChildIndex() ```ts getChildIndex(child: View): number; ``` Defined in: [ui/layouts/layout-base.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L24) Returns the position of the child view #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | The child view that we are looking for. | #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon.getChildIndex ``` *** ### getChildrenCount() ```ts getChildrenCount(): number; ``` Defined in: [ui/layouts/layout-base.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L12) Returns the number of children in this Layout. #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon.getChildrenCount ``` *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from ```ts LiquidGlassContainerCommon.getClosestWindow ``` *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from ```ts LiquidGlassContainerCommon.getEffectivePaddingShorthand ``` *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from ```ts LiquidGlassContainerCommon.getGestureObservers ``` *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from ```ts LiquidGlassContainerCommon.getLocationInWindow ``` *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from ```ts LiquidGlassContainerCommon.getLocationOnScreen ``` *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from ```ts LiquidGlassContainerCommon.getLocationRelativeTo ``` *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon.getMeasuredHeight ``` *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon.getMeasuredState ``` *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon.getMeasuredWidth ``` *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from ```ts LiquidGlassContainerCommon.getSafeAreaInsets ``` *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from ```ts LiquidGlassContainerCommon.getViewByDomId ``` *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from ```ts LiquidGlassContainerCommon.getViewById ``` *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from ```ts LiquidGlassContainerCommon.hasGestureObservers ``` *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from ```ts LiquidGlassContainerCommon.hasListeners ``` *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.initNativeView ``` *** ### insertChild() ```ts insertChild(child: View, atIndex: number): boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L37) Inserts the view to children array at the specified index. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | - | | `atIndex` | `number` | The insertion index. | #### Returns `boolean` #### Inherited from ```ts LiquidGlassContainerCommon.insertChild ``` *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.layout ``` *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.layoutNativeView ``` *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.loadView ``` *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.measure ``` *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.notify ``` *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.notifyPropertyChange ``` *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from ```ts LiquidGlassContainerCommon.off ``` *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from ```ts LiquidGlassContainerCommon.on ``` #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from ```ts LiquidGlassContainerCommon.on ``` #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from ```ts LiquidGlassContainerCommon.on ``` #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from ```ts LiquidGlassContainerCommon.on ``` #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from ```ts LiquidGlassContainerCommon.on ``` #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from ```ts LiquidGlassContainerCommon.on ``` #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from ```ts LiquidGlassContainerCommon.on ``` *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from ```ts LiquidGlassContainerCommon.onBackPressed ``` *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.once ``` *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.onLayout ``` *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.onLoaded ``` *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.onMeasure ``` *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.onResumeNativeUpdates ``` *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.onUnloaded ``` *** ### removeChild() ```ts removeChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L43) Removes the specified view from the children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to remove from the children array. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.removeChild ``` *** ### removeChildren() ```ts removeChildren(): void; ``` Defined in: [ui/layouts/layout-base.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L48) Removes all views in this layout. #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.removeChildren ``` *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.removeEventListener ``` *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.requestLayout ``` *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.resetNativeView ``` *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from ```ts LiquidGlassContainerCommon.sendAccessibilityEvent ``` *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.set ``` *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.setAccessibilityIdentifier ``` *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.setInlineStyle ``` *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.setMeasuredDimension ``` *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.setNativeView ``` *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.setOnTouchListener ``` *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.setProperty ``` *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from ```ts LiquidGlassContainerCommon.showModal ``` *** ### stabilizeLayout() ```ts stabilizeLayout(): void; ``` Defined in: [ui/layouts/liquid-glass-container/liquid-glass-container-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/liquid-glass-container/liquid-glass-container-common.ts) #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.stabilizeLayout ``` *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from ```ts LiquidGlassContainerCommon.toString ``` *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.unbind ``` *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.unloadView ``` *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.updateStatusBarStyle ``` *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from ```ts LiquidGlassContainerCommon.addEventListener ``` *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon.combineMeasuredStates ``` *** ### getLeft() ```ts static getLeft(view: View): LengthType; ``` Defined in: [ui/layouts/absolute-layout/index.d.ts:16](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/absolute-layout/index.d.ts#L16) Gets the value of the Left property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns [`LengthType`](../namespaces/CoreTypes/type-aliases/LengthType.md) #### Inherited from ```ts LiquidGlassContainerCommon.getLeft ``` *** ### getTop() ```ts static getTop(view: View): LengthType; ``` Defined in: [ui/layouts/absolute-layout/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/absolute-layout/index.d.ts#L26) Gets the value of the Top property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns [`LengthType`](../namespaces/CoreTypes/type-aliases/LengthType.md) #### Inherited from ```ts LiquidGlassContainerCommon.getTop ``` *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.layoutChild ``` *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from ```ts LiquidGlassContainerCommon.measureChild ``` *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from ```ts LiquidGlassContainerCommon.off ``` *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from ```ts LiquidGlassContainerCommon.on ``` *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from ```ts LiquidGlassContainerCommon.once ``` *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from ```ts LiquidGlassContainerCommon.removeEventListener ``` *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from ```ts LiquidGlassContainerCommon.resolveSizeAndState ``` *** ### setLeft() ```ts static setLeft(view: View, value: LengthType): void; ``` Defined in: [ui/layouts/absolute-layout/index.d.ts:21](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/absolute-layout/index.d.ts#L21) Sets the value of the Left property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | [`LengthType`](../namespaces/CoreTypes/type-aliases/LengthType.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.setLeft ``` *** ### setTop() ```ts static setTop(view: View, value: LengthType): void; ``` Defined in: [ui/layouts/absolute-layout/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/absolute-layout/index.d.ts#L31) Sets the value of the Top property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | [`LengthType`](../namespaces/CoreTypes/type-aliases/LengthType.md) | #### Returns `void` #### Inherited from ```ts LiquidGlassContainerCommon.setTop ``` --- --- url: 'https://docs.nativescript.org/api/classes/ListPicker.md' description: Represents an list picker. --- Defined in: [ui/list-picker/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-picker/index.d.ts#L10) Represents an list picker. ## Ns View ListPicker ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new ListPicker(): ListPicker; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `ListPicker` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`View`](View.md).[`_androidContentDescriptionUpdated`](View.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_automaticallyAdjustsScrollViewInsets`](View.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`_closeModalCallback`](View.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_context`](View.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_cssState`](View.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingBottom`](View.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingLeft`](View.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingRight`](View.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingTop`](View.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_domId`](View.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_ignoreFlexMinWidthHeightReset`](View.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isAddedToNativeVisualTree`](View.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isPaddingRelative`](View.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldBottom`](View.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldLeft`](View.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldRight`](View.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldTop`](View.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_styleScope`](View.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`View`](View.md).[`_suspendNativeUpdatesCount`](View.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHidden`](View.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHint`](View.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIdentifier`](View.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLabel`](View.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLanguage`](View.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLiveRegion`](View.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityMediaSession`](View.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityRole`](View.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityState`](View.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityValue`](View.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`View`](View.md).[`accessible`](View.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`View`](View.md).[`alignSelf`](View.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/list-picker/index.d.ts:19](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-picker/index.d.ts#L19) Gets the native [android.widget.NumberPicker](http://developer.android.com/reference/android/widget/NumberPicker.html) that represents the user interface for this component. Valid only when running on Android OS. #### Overrides [`View`](View.md).[`android`](View.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidDynamicElevationOffset`](View.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidElevation`](View.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`androidOverflowEdge`](View.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`View`](View.md).[`background`](View.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundColor`](View.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundImage`](View.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`View`](View.md).[`bindingContext`](View.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomColor`](View.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomLeftRadius`](View.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomRightRadius`](View.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomWidth`](View.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderColor`](View.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftColor`](View.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftWidth`](View.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRadius`](View.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightColor`](View.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightWidth`](View.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopColor`](View.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopLeftRadius`](View.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopRightRadius`](View.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopWidth`](View.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderWidth`](View.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`View`](View.md).[`className`](View.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`col`](View.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`color`](View.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`colSpan`](View.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`column`](View.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`View`](View.md).[`columnSpan`](View.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`View`](View.md).[`cssType`](View.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`View`](View.md).[`defaultVisualState`](View.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](View.md).[`direction`](View.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`View`](View.md).[`dock`](View.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`domNode`](View.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderBottomWidth`](View.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderLeftWidth`](View.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderRightWidth`](View.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveHeight`](View.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveLeft`](View.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginBottom`](View.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginLeft`](View.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginRight`](View.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinHeight`](View.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveTop`](View.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveWidth`](View.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flex`](View.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`View`](View.md).[`flexFlow`](View.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flexGrow`](View.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`View`](View.md).[`flexShrink`](View.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`View`](View.md).[`flexWrapBefore`](View.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`View`](View.md).[`height`](View.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`View`](View.md).[`hidden`](View.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`View`](View.md).[`horizontalAlignment`](View.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`View`](View.md).[`id`](View.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/list-picker/index.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-picker/index.d.ts#L24) Gets the native iOS [UIPickerView](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS. #### Overrides [`View`](View.md).[`ios`](View.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityAdjustsFontSize`](View.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMaxFontScale`](View.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`View`](View.md).[`iosGlassEffect`](View.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosIgnoreSafeArea`](View.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeArea`](View.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeAreaEnabled`](View.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`View`](View.md).[`isCollapsed`](View.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isEnabled`](View.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`View`](View.md).[`isLayoutValid`](View.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isUserInteractionEnabled`](View.md#isuserinteractionenabled) *** ### items ```ts items: any[] | ItemsSource; ``` Defined in: [ui/list-picker/index.d.ts:39](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-picker/index.d.ts#L39) Gets or set the items collection of the ListPicker. The items property can be set to an array or an object defining length and getItem(index) method. #### Ns Property *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`left`](View.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`View`](View.md).[`margin`](View.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginBottom`](View.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginLeft`](View.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginRight`](View.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`View`](View.md).[`mIsRootView`](View.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`View`](View.md).[`modal`](View.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`View`](View.md).[`nativeBackgroundState`](View.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`View`](View.md).[`nativeViewProtected`](View.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`View`](View.md).[`opacity`](View.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`View`](View.md).[`order`](View.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originX`](View.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originY`](View.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`View`](View.md).[`parent`](View.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`perspective`](View.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`recycleNativeView`](View.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`View`](View.md).[`reusable`](View.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotate`](View.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateX`](View.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateY`](View.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`row`](View.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`rowSpan`](View.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleX`](View.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleY`](View.md#scaley) *** ### selectedIndex ```ts selectedIndex: number; ``` Defined in: [ui/list-picker/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-picker/index.d.ts#L31) Gets or sets the selected index. #### Ns Property *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionIgnore`](View.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionTag`](View.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`View`](View.md).[`statusBarStyle`](View.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`top`](View.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`View`](View.md).[`touchDelay`](View.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`View`](View.md).[`transitionId`](View.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateX`](View.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateY`](View.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`View`](View.md).[`verticalAlignment`](View.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`View`](View.md).[`viewController`](View.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`View`](View.md).[`visibility`](View.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionHoverStyle`](View.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionIgnoreHoverStyle`](View.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`width`](View.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`View`](View.md).[`accessibilityBlurEvent`](View.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`View`](View.md).[`accessibilityFocusChangedEvent`](View.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`View`](View.md).[`accessibilityFocusEvent`](View.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`accessibilityPerformEscapeEvent`](View.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`View`](View.md).[`createdEvent`](View.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`View`](View.md).[`disposeNativeViewEvent`](View.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`View`](View.md).[`layoutChangedEvent`](View.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`View`](View.md).[`loadedEvent`](View.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`View`](View.md).[`propertyChangeEvent`](View.md#propertychangeevent) *** ### selectedIndexChangeEvent ```ts static selectedIndexChangeEvent: string; ``` Defined in: [ui/list-picker/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-picker/index.d.ts#L14) #### Ns Event selectedIndexChange *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`View`](View.md).[`showingModallyEvent`](View.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`View`](View.md).[`unloadedEvent`](View.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundPosition`](View.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundRepeat`](View.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundSize`](View.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`class`](View.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingBottom`](View.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingLeft`](View.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingRight`](View.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingTop`](View.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`View`](View.md).[`isLoaded`](View.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`View`](View.md).[`nativeView`](View.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`View`](View.md).[`page`](View.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`parentNode`](View.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`style`](View.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`textTransform`](View.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`View`](View.md).[`typeName`](View.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](View.md).[`visualState`](View.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addView`](View.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addViewCore`](View.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_addViewToNativeVisualTree`](View.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`View`](View.md).[`_applyGlassEffect`](View.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`View`](View.md).[`_applyXmlAttribute`](View.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`View`](View.md).[`_batchUpdate`](View.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`_childIndexToNativeChildIndex`](View.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`View`](View.md).[`_closeAllModalViewsInternal`](View.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`View`](View.md).[`_createPropertyChangeData`](View.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_dialogClosed`](View.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_eachLayoutView`](View.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`_emit`](View.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`View`](View.md).[`_getRootModalViews`](View.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_getValue`](View.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_handleLivesync`](View.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_hasAncestorView`](View.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_hideNativeModalView`](View.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyles`](View.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyleScope`](View.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_layoutParent`](View.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_observe`](View.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onAttachedToWindow`](View.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onDetachedFromWindow`](View.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_onRootViewReset`](View.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`View`](View.md).[`_onSizeChanged`](View.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_parentChanged`](View.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseLayoutChangedEvent`](View.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShowingModallyEvent`](View.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShownModallyEvent`](View.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeView`](View.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewCore`](View.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewFromNativeVisualTree`](View.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_resumeNativeUpdates`](View.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setDefaultPaddings`](View.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupAsRootView`](View.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupUI`](View.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_setValue`](View.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`View`](View.md).[`_shouldDelayLayout`](View.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_showNativeModalView`](View.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_suspendNativeUpdates`](View.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_tearDownUI`](View.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`View`](View.md).[`_updateStyleScope`](View.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityAnnouncement`](View.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityScreenChanged`](View.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`View`](View.md).[`addPseudoClass`](View.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`View`](View.md).[`animate`](View.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`View`](View.md).[`bind`](View.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callLoaded`](View.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callUnloaded`](View.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`View`](View.md).[`closeModal`](View.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`View`](View.md).[`createAnimation`](View.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`View`](View.md).[`createNativeView`](View.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`View`](View.md).[`deletePseudoClass`](View.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`View`](View.md).[`destroyNode`](View.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`disposeNativeView`](View.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChild`](View.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChildView`](View.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`View`](View.md).[`ensureDomNode`](View.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`View`](View.md).[`focus`](View.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`View`](View.md).[`get`](View.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`View`](View.md).[`getActualSize`](View.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`View`](View.md).[`getClosestWindow`](View.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`View`](View.md).[`getEffectivePaddingShorthand`](View.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`View`](View.md).[`getGestureObservers`](View.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationInWindow`](View.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationOnScreen`](View.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationRelativeTo`](View.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredHeight`](View.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`View`](View.md).[`getSafeAreaInsets`](View.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewByDomId`](View.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewById`](View.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasGestureObservers`](View.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasListeners`](View.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`initNativeView`](View.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`layout`](View.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutNativeView`](View.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`View`](View.md).[`loadView`](View.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`View`](View.md).[`measure`](View.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`View`](View.md).[`notify`](View.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`notifyPropertyChange`](View.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`View`](View.md).[`off`](View.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`View`](View.md).[`onBackPressed`](View.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`View`](View.md).[`once`](View.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`onLayout`](View.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onLoaded`](View.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`View`](View.md).[`onMeasure`](View.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onResumeNativeUpdates`](View.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onUnloaded`](View.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`View`](View.md).[`requestLayout`](View.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`resetNativeView`](View.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`View`](View.md).[`sendAccessibilityEvent`](View.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`set`](View.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setAccessibilityIdentifier`](View.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setInlineStyle`](View.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`View`](View.md).[`setMeasuredDimension`](View.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setNativeView`](View.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`View`](View.md).[`setOnTouchListener`](View.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setProperty`](View.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`View`](View.md).[`showModal`](View.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`View`](View.md).[`toString`](View.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`unbind`](View.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`View`](View.md).[`unloadView`](View.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`View`](View.md).[`updateStatusBarStyle`](View.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`View`](View.md).[`combineMeasuredStates`](View.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutChild`](View.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`View`](View.md).[`measureChild`](View.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`off`](View.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`on`](View.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`once`](View.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`resolveSizeAndState`](View.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/ListView.md' description: Represents a view that shows items in a vertically scrolling list. --- Defined in: [ui/list-view/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L14) Represents a view that shows items in a vertically scrolling list. ## Ns View ListView ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new ListView(): ListView; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `ListView` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`View`](View.md).[`_androidContentDescriptionUpdated`](View.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_automaticallyAdjustsScrollViewInsets`](View.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`_closeModalCallback`](View.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_context`](View.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_cssState`](View.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingBottom`](View.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingLeft`](View.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingRight`](View.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingTop`](View.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_domId`](View.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_ignoreFlexMinWidthHeightReset`](View.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isAddedToNativeVisualTree`](View.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isPaddingRelative`](View.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldBottom`](View.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldLeft`](View.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldRight`](View.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldTop`](View.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_styleScope`](View.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`View`](View.md).[`_suspendNativeUpdatesCount`](View.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHidden`](View.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHint`](View.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIdentifier`](View.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLabel`](View.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLanguage`](View.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLiveRegion`](View.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityMediaSession`](View.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityRole`](View.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityState`](View.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityValue`](View.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`View`](View.md).[`accessible`](View.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`View`](View.md).[`alignSelf`](View.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/list-view/index.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L43) Gets the native [android widget](http://developer.android.com/reference/android/widget/ListView.html) that represents the user interface for this component. Valid only when running on Android OS. #### Overrides [`View`](View.md).[`android`](View.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidDynamicElevationOffset`](View.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidElevation`](View.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`androidOverflowEdge`](View.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`View`](View.md).[`background`](View.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundColor`](View.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundImage`](View.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`View`](View.md).[`bindingContext`](View.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomColor`](View.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomLeftRadius`](View.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomRightRadius`](View.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomWidth`](View.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderColor`](View.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftColor`](View.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftWidth`](View.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRadius`](View.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightColor`](View.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightWidth`](View.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopColor`](View.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopLeftRadius`](View.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopRightRadius`](View.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopWidth`](View.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderWidth`](View.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`View`](View.md).[`className`](View.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`col`](View.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`color`](View.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`colSpan`](View.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`column`](View.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`View`](View.md).[`columnSpan`](View.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`View`](View.md).[`cssType`](View.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`View`](View.md).[`defaultVisualState`](View.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](View.md).[`direction`](View.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`View`](View.md).[`dock`](View.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`domNode`](View.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderBottomWidth`](View.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderLeftWidth`](View.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderRightWidth`](View.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveHeight`](View.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveLeft`](View.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginBottom`](View.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginLeft`](View.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginRight`](View.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinHeight`](View.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveTop`](View.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveWidth`](View.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flex`](View.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`View`](View.md).[`flexFlow`](View.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flexGrow`](View.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`View`](View.md).[`flexShrink`](View.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`View`](View.md).[`flexWrapBefore`](View.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`View`](View.md).[`height`](View.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`View`](View.md).[`hidden`](View.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`View`](View.md).[`horizontalAlignment`](View.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`View`](View.md).[`id`](View.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/list-view/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L48) Gets the native [iOS view](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableView_Class/) that represents the user interface for this component. Valid only when running on iOS. #### Overrides [`View`](View.md).[`ios`](View.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityAdjustsFontSize`](View.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMaxFontScale`](View.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosEstimatedRowHeight ```ts iosEstimatedRowHeight: LengthType; ``` Defined in: [ui/list-view/index.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L106) Gets or set the estimated height of rows in the ListView. The default value is 44px. #### Ns Property *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`View`](View.md).[`iosGlassEffect`](View.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosIgnoreSafeArea`](View.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeArea`](View.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeAreaEnabled`](View.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`View`](View.md).[`isCollapsed`](View.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isEnabled`](View.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`View`](View.md).[`isLayoutValid`](View.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isUserInteractionEnabled`](View.md#isuserinteractionenabled) *** ### itemIdGenerator ```ts itemIdGenerator: (item: any, index: number, items: any) => number; ``` Defined in: [ui/list-view/index.d.ts:84](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L84) Item id generator #### Parameters | Parameter | Type | | ------ | ------ | | `item` | `any` | | `index` | `number` | | `items` | `any` | #### Returns `number` #### Ns Property *** ### items ```ts items: any[] | ItemsSource; ``` Defined in: [ui/list-view/index.d.ts:56](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L56) Gets or set the items collection of the ListView. The items property can be set to an array or an object defining length and getItem(index) method. #### Ns Property *** ### itemTemplate ```ts itemTemplate: string | Template; ``` Defined in: [ui/list-view/index.d.ts:63](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L63) Gets or set the item template of the ListView. #### Ns Property *** ### itemTemplates ```ts itemTemplates: string | KeyedTemplate[]; ``` Defined in: [ui/list-view/index.d.ts:70](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L70) Gets or set the list of item templates for the item template selector #### Ns Property *** ### itemTemplateSelector ```ts itemTemplateSelector: | string | ((item: any, index: number, items: any) => string); ``` Defined in: [ui/list-view/index.d.ts:77](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L77) A function that returns the appropriate ket template based on the data item. #### Ns Property *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`left`](View.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`View`](View.md).[`margin`](View.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginBottom`](View.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginLeft`](View.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginRight`](View.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`View`](View.md).[`mIsRootView`](View.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`View`](View.md).[`modal`](View.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`View`](View.md).[`nativeBackgroundState`](View.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`View`](View.md).[`nativeViewProtected`](View.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`View`](View.md).[`opacity`](View.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`View`](View.md).[`order`](View.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originX`](View.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originY`](View.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`View`](View.md).[`parent`](View.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`perspective`](View.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`recycleNativeView`](View.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`View`](View.md).[`reusable`](View.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotate`](View.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateX`](View.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateY`](View.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`row`](View.md#row) *** ### rowHeight ```ts rowHeight: LengthType; ``` Defined in: [ui/list-view/index.d.ts:98](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L98) Gets or set row height of the ListView. #### Ns Property *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`rowSpan`](View.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleX`](View.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleY`](View.md#scaley) *** ### searchAutoHide ```ts searchAutoHide: boolean; ``` Defined in: [ui/list-view/index.d.ts:164](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L164) Gets or sets whether the search bar should auto-hide when scrolling (iOS only). When true, the search bar will automatically hide when the user scrolls down and reappear when scrolling up, using iOS native behavior. Only applies when showSearch is true and running on iOS with navigation controller. #### Ns Property *** ### sectioned ```ts sectioned: boolean; ``` Defined in: [ui/list-view/index.d.ts:146](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L146) Gets or sets a value indicating whether the ListView should treat items as sectioned data. When enabled, items array should contain objects with 'items' property for section content. Each section will have its own sticky header. #### Ns Property *** ### separatorColor ```ts separatorColor: Color; ``` Defined in: [ui/list-view/index.d.ts:91](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L91) Gets or set the items separator line color of the ListView. #### Ns Property *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionIgnore`](View.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionTag`](View.md#sharedtransitiontag) *** ### showSearch ```ts showSearch: boolean; ``` Defined in: [ui/list-view/index.d.ts:154](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L154) Gets or sets whether search functionality is enabled. When enabled on iOS, uses native UISearchController for optimal performance. #### Ns Property *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`View`](View.md).[`statusBarStyle`](View.md#statusbarstyle) *** ### stickyHeader ```ts stickyHeader: boolean; ``` Defined in: [ui/list-view/index.d.ts:114](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L114) Gets or sets a value indicating whether the ListView should display sticky headers. When enabled, headers will remain visible at the top while scrolling through sections. #### Ns Property *** ### stickyHeaderHeight ```ts stickyHeaderHeight: LengthType; ``` Defined in: [ui/list-view/index.d.ts:128](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L128) Gets or sets the height of sticky headers. #### Ns Property *** ### stickyHeaderTemplate ```ts stickyHeaderTemplate: string | Template; ``` Defined in: [ui/list-view/index.d.ts:121](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L121) Gets or sets the template for sticky headers. #### Ns Property *** ### stickyHeaderTopPadding ```ts stickyHeaderTopPadding: boolean; ``` Defined in: [ui/list-view/index.d.ts:137](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L137) Gets or sets a value indicating whether the ListView should show default top padding above section headers. When set to false (default), removes iOS default spacing for a tighter layout. When set to true, preserves iOS default ~4-5px spacing above section headers. #### Ns Property *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`top`](View.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`View`](View.md).[`touchDelay`](View.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`View`](View.md).[`transitionId`](View.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateX`](View.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateY`](View.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`View`](View.md).[`verticalAlignment`](View.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`View`](View.md).[`viewController`](View.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`View`](View.md).[`visibility`](View.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionHoverStyle`](View.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionIgnoreHoverStyle`](View.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`width`](View.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`View`](View.md).[`accessibilityBlurEvent`](View.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`View`](View.md).[`accessibilityFocusChangedEvent`](View.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`View`](View.md).[`accessibilityFocusEvent`](View.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`accessibilityPerformEscapeEvent`](View.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`View`](View.md).[`createdEvent`](View.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`View`](View.md).[`disposeNativeViewEvent`](View.md#disposenativeviewevent) *** ### itemLoadingEvent ```ts static itemLoadingEvent: string; ``` Defined in: [ui/list-view/index.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L20) String value used when hooking to itemLoading event. #### Ns Event itemLoading *** ### itemTapEvent ```ts static itemTapEvent: string; ``` Defined in: [ui/list-view/index.d.ts:26](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L26) String value used when hooking to itemTap event. #### Ns Event itemTap *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`View`](View.md).[`layoutChangedEvent`](View.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`View`](View.md).[`loadedEvent`](View.md#loadedevent) *** ### loadMoreItemsEvent ```ts static loadMoreItemsEvent: string; ``` Defined in: [ui/list-view/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L32) String value used when hooking to loadMoreItems event. #### Ns Event itemLoading *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`View`](View.md).[`propertyChangeEvent`](View.md#propertychangeevent) *** ### searchChangeEvent ```ts static searchChangeEvent: string; ``` Defined in: [ui/list-view/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L38) String value used when hooking to searchChange event. #### Ns Event searchChange *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`View`](View.md).[`showingModallyEvent`](View.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`View`](View.md).[`unloadedEvent`](View.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundPosition`](View.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundRepeat`](View.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundSize`](View.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`class`](View.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingBottom`](View.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingLeft`](View.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingRight`](View.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingTop`](View.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`View`](View.md).[`isLoaded`](View.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`View`](View.md).[`nativeView`](View.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`View`](View.md).[`page`](View.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`parentNode`](View.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`style`](View.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`textTransform`](View.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`View`](View.md).[`typeName`](View.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](View.md).[`visualState`](View.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addView`](View.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addViewCore`](View.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_addViewToNativeVisualTree`](View.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`View`](View.md).[`_applyGlassEffect`](View.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`View`](View.md).[`_applyXmlAttribute`](View.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`View`](View.md).[`_batchUpdate`](View.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`_childIndexToNativeChildIndex`](View.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`View`](View.md).[`_closeAllModalViewsInternal`](View.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`View`](View.md).[`_createPropertyChangeData`](View.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_dialogClosed`](View.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_eachLayoutView`](View.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`_emit`](View.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`View`](View.md).[`_getRootModalViews`](View.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_getValue`](View.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_handleLivesync`](View.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_hasAncestorView`](View.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_hideNativeModalView`](View.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyles`](View.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyleScope`](View.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_layoutParent`](View.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_observe`](View.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onAttachedToWindow`](View.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onDetachedFromWindow`](View.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_onRootViewReset`](View.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`View`](View.md).[`_onSizeChanged`](View.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_parentChanged`](View.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseLayoutChangedEvent`](View.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShowingModallyEvent`](View.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShownModallyEvent`](View.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeView`](View.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewCore`](View.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewFromNativeVisualTree`](View.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_resumeNativeUpdates`](View.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setDefaultPaddings`](View.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupAsRootView`](View.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupUI`](View.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_setValue`](View.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`View`](View.md).[`_shouldDelayLayout`](View.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_showNativeModalView`](View.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_suspendNativeUpdates`](View.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_tearDownUI`](View.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`View`](View.md).[`_updateStyleScope`](View.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityAnnouncement`](View.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityScreenChanged`](View.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`View`](View.md).[`addPseudoClass`](View.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`View`](View.md).[`animate`](View.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`View`](View.md).[`bind`](View.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callLoaded`](View.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callUnloaded`](View.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`View`](View.md).[`closeModal`](View.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`View`](View.md).[`createAnimation`](View.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`View`](View.md).[`createNativeView`](View.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`View`](View.md).[`deletePseudoClass`](View.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`View`](View.md).[`destroyNode`](View.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`disposeNativeView`](View.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChild`](View.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChildView`](View.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`View`](View.md).[`ensureDomNode`](View.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`View`](View.md).[`focus`](View.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`View`](View.md).[`get`](View.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`View`](View.md).[`getActualSize`](View.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`View`](View.md).[`getClosestWindow`](View.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`View`](View.md).[`getEffectivePaddingShorthand`](View.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`View`](View.md).[`getGestureObservers`](View.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationInWindow`](View.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationOnScreen`](View.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationRelativeTo`](View.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredHeight`](View.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`View`](View.md).[`getSafeAreaInsets`](View.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewByDomId`](View.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewById`](View.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasGestureObservers`](View.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasListeners`](View.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`initNativeView`](View.md#initnativeview) *** ### isItemAtIndexVisible() ```ts isItemAtIndexVisible(index: number): boolean; ``` Defined in: [ui/list-view/index.d.ts:189](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L189) Checks if Specified item with index is visible. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | Item index. | #### Returns `boolean` *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`layout`](View.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutNativeView`](View.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`View`](View.md).[`loadView`](View.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`View`](View.md).[`measure`](View.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`View`](View.md).[`notify`](View.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`notifyPropertyChange`](View.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`View`](View.md).[`off`](View.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/list-view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L201) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `void` ##### Overrides [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "itemLoading", callback: (args: ItemEventData) => void, thisArg?: any): void; ``` Defined in: [ui/list-view/index.d.ts:209](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L209) Raised when a View for the data at the specified index should be created. The result should be returned trough the view property of the event data. Note, that the view property of the event data can be pre-initialized with an old instance of a view, so that it can be reused. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"itemLoading"` | | `callback` | (`args`: [`ItemEventData`](../interfaces/ItemEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "itemTap", callback: (args: ItemEventData) => void, thisArg?: any): void; ``` Defined in: [ui/list-view/index.d.ts:214](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L214) Raised when an item inside the ListView is tapped. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"itemTap"` | | `callback` | (`args`: [`ItemEventData`](../interfaces/ItemEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "loadMoreItems", callback: (args: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/list-view/index.d.ts:219](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L219) Raised when the ListView is scrolled so that its last item is visible. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loadMoreItems"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "searchChange", callback: (args: SearchEventData) => void, thisArg?: any): void; ``` Defined in: [ui/list-view/index.d.ts:224](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L224) Raised when the search text in the search bar changes. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"searchChange"` | | `callback` | (`args`: [`SearchEventData`](../interfaces/SearchEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`View`](View.md).[`on`](View.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`View`](View.md).[`onBackPressed`](View.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`View`](View.md).[`once`](View.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`onLayout`](View.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onLoaded`](View.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`View`](View.md).[`onMeasure`](View.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onResumeNativeUpdates`](View.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onUnloaded`](View.md#onunloaded) *** ### refresh() ```ts refresh(): any; ``` Defined in: [ui/list-view/index.d.ts:167](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L167) #### Returns `any` *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`View`](View.md).[`requestLayout`](View.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`resetNativeView`](View.md#resetnativeview) *** ### scrollToIndex() ```ts scrollToIndex(index: number): any; ``` Defined in: [ui/list-view/index.d.ts:175](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L175) Scrolls the specified item with index into view. [iOS](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableView_Class/#//apple_ref/occ/instm/UITableView/scrollToRowAtIndexPath:atScrollPosition:animated:) [Android](http://developer.android.com/reference/android/widget/ListView.html#setSelection\(int\)) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | Item index. | #### Returns `any` *** ### scrollToIndexAnimated() ```ts scrollToIndexAnimated(index: number): any; ``` Defined in: [ui/list-view/index.d.ts:183](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/list-view/index.d.ts#L183) Scrolls the specified item with index into view with animation. [iOS](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableView_Class/#//apple_ref/occ/instm/UITableView/scrollToRowAtIndexPath:atScrollPosition:animated:) [Android](https://developer.android.com/reference/android/widget/ListView.html#smoothScrollToPosition\(int\)) #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | Item index. | #### Returns `any` *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`View`](View.md).[`sendAccessibilityEvent`](View.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`set`](View.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setAccessibilityIdentifier`](View.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setInlineStyle`](View.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`View`](View.md).[`setMeasuredDimension`](View.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setNativeView`](View.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`View`](View.md).[`setOnTouchListener`](View.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setProperty`](View.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`View`](View.md).[`showModal`](View.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`View`](View.md).[`toString`](View.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`unbind`](View.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`View`](View.md).[`unloadView`](View.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`View`](View.md).[`updateStatusBarStyle`](View.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`View`](View.md).[`combineMeasuredStates`](View.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutChild`](View.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`View`](View.md).[`measureChild`](View.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`off`](View.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`on`](View.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`once`](View.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`resolveSizeAndState`](View.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/ModalTransition.md' --- Defined in: [ui/transition/modal-transition.d.ts:2](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/modal-transition.d.ts#L2) ## Extends * [`Transition`](Transition.md) ## Constructors ### Constructor ```ts new ModalTransition(duration?: number, nativeCurve?: any): ModalTransition; ``` Defined in: [ui/transition/index.d.ts:39](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L39) #### Parameters | Parameter | Type | | ------ | ------ | | `duration?` | `number` | | `nativeCurve?` | `any` | #### Returns `ModalTransition` #### Inherited from [`Transition`](Transition.md).[`constructor`](Transition.md#constructor) ## Properties ### id ```ts id: number; ``` Defined in: [ui/transition/index.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L23) #### Inherited from [`Transition`](Transition.md).[`id`](Transition.md#id) *** ### interactiveController? ```ts optional interactiveController?: any; ``` Defined in: [ui/transition/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L29) #### Inherited from [`Transition`](Transition.md).[`interactiveController`](Transition.md#interactivecontroller) *** ### name? ```ts optional name?: string; ``` Defined in: [ui/transition/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L27) (Optional) Provide a unique name to identify this transition #### Inherited from [`Transition`](Transition.md).[`name`](Transition.md#name) *** ### presented? ```ts optional presented?: any; ``` Defined in: [ui/transition/index.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L30) #### Inherited from [`Transition`](Transition.md).[`presented`](Transition.md#presented) *** ### presenting? ```ts optional presenting?: any; ``` Defined in: [ui/transition/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L31) #### Inherited from [`Transition`](Transition.md).[`presenting`](Transition.md#presenting) *** ### sharedElements? ```ts optional sharedElements?: { independent?: SharedElementSettings & { isPresented?: boolean; }[]; presented?: SharedElementSettings[]; presenting?: SharedElementSettings[]; }; ``` Defined in: [ui/transition/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L32) #### independent? ```ts optional independent?: SharedElementSettings & { isPresented?: boolean; }[]; ``` #### presented? ```ts optional presented?: SharedElementSettings[]; ``` #### presenting? ```ts optional presenting?: SharedElementSettings[]; ``` #### Inherited from [`Transition`](Transition.md).[`sharedElements`](Transition.md#sharedelements) *** ### transitionController? ```ts optional transitionController?: any; ``` Defined in: [ui/transition/index.d.ts:28](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L28) #### Inherited from [`Transition`](Transition.md).[`transitionController`](Transition.md#transitioncontroller) *** ### AndroidTransitionType? ```ts static optional AndroidTransitionType?: { enter?: string; exit?: string; popEnter?: string; popExit?: string; }; ``` Defined in: [ui/transition/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L38) #### enter? ```ts optional enter?: string; ``` #### exit? ```ts optional exit?: string; ``` #### popEnter? ```ts optional popEnter?: string; ``` #### popExit? ```ts optional popExit?: string; ``` #### Inherited from [`Transition`](Transition.md).[`AndroidTransitionType`](Transition.md#androidtransitiontype) ## Methods ### androidFragmentTransactionCallback()? ```ts optional androidFragmentTransactionCallback( fragmentTransaction: any, currentEntry: BackstackEntry, newEntry: BackstackEntry): void; ``` Defined in: [ui/transition/index.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L58) #### Parameters | Parameter | Type | | ------ | ------ | | `fragmentTransaction` | `any` | | `currentEntry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | | `newEntry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`androidFragmentTransactionCallback`](Transition.md#androidfragmenttransactioncallback) *** ### animateIOSTransition() ```ts animateIOSTransition( transitionContext: any, fromViewCtrl: any, toViewCtrl: any, operation: any): void; ``` Defined in: [ui/transition/index.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L43) #### Parameters | Parameter | Type | | ------ | ------ | | `transitionContext` | `any` | | `fromViewCtrl` | `any` | | `toViewCtrl` | `any` | | `operation` | `any` | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`animateIOSTransition`](Transition.md#animateiostransition) *** ### createAndroidAnimator() ```ts createAndroidAnimator(transitionType: string): any; ``` Defined in: [ui/transition/index.d.ts:44](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L44) #### Parameters | Parameter | Type | | ------ | ------ | | `transitionType` | `string` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`createAndroidAnimator`](Transition.md#createandroidanimator) *** ### getCurve() ```ts getCurve(): any; ``` Defined in: [ui/transition/index.d.ts:42](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L42) #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`getCurve`](Transition.md#getcurve) *** ### getDuration() ```ts getDuration(): number; ``` Defined in: [ui/transition/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L40) #### Returns `number` #### Inherited from [`Transition`](Transition.md).[`getDuration`](Transition.md#getduration) *** ### iosDismissedController()? ```ts optional iosDismissedController(dismissed: any): any; ``` Defined in: [ui/transition/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L48) #### Parameters | Parameter | Type | | ------ | ------ | | `dismissed` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosDismissedController`](Transition.md#iosdismissedcontroller) *** ### iosInteractionDismiss()? ```ts optional iosInteractionDismiss(animator: any): any; ``` Defined in: [ui/transition/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L52) #### Parameters | Parameter | Type | | ------ | ------ | | `animator` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosInteractionDismiss`](Transition.md#iosinteractiondismiss) *** ### iosInteractionPresented()? ```ts optional iosInteractionPresented(animator: any): any; ``` Defined in: [ui/transition/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L54) #### Parameters | Parameter | Type | | ------ | ------ | | `animator` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosInteractionPresented`](Transition.md#iosinteractionpresented) *** ### iosNavigatedController()? ```ts optional iosNavigatedController( navigationController: any, operation: number, fromVC: any, toVC: any): any; ``` Defined in: [ui/transition/index.d.ts:56](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L56) #### Parameters | Parameter | Type | | ------ | ------ | | `navigationController` | `any` | | `operation` | `number` | | `fromVC` | `any` | | `toVC` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosNavigatedController`](Transition.md#iosnavigatedcontroller) *** ### iosPresentedController()? ```ts optional iosPresentedController( presented: any, presenting: any, source: any): any; ``` Defined in: [ui/transition/index.d.ts:50](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L50) #### Parameters | Parameter | Type | | ------ | ------ | | `presented` | `any` | | `presenting` | `any` | | `source` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosPresentedController`](Transition.md#iospresentedcontroller) *** ### setDuration() ```ts setDuration(value: number): void; ``` Defined in: [ui/transition/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L41) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`setDuration`](Transition.md#setduration) *** ### setupInteractiveGesture()? ```ts optional setupInteractiveGesture(startCallback: () => void, view: View): void; ``` Defined in: [ui/transition/index.d.ts:46](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L46) #### Parameters | Parameter | Type | | ------ | ------ | | `startCallback` | () => `void` | | `view` | [`View`](View.md) | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`setupInteractiveGesture`](Transition.md#setupinteractivegesture) --- --- url: 'https://docs.nativescript.org/api/classes/ModuleNameResolver.md' --- Defined in: [module-name-resolver/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/module-name-resolver/index.ts) ## Implements * `ModuleNameResolverType` ## Constructors ### Constructor ```ts new ModuleNameResolver(context: PlatformContext, moduleListProvider?: ModuleListProvider): ModuleNameResolver; ``` Defined in: [module-name-resolver/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/module-name-resolver/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | [`PlatformContext`](../interfaces/PlatformContext.md) | | `moduleListProvider?` | [`ModuleListProvider`](../type-aliases/ModuleListProvider.md) | #### Returns `ModuleNameResolver` ## Methods ### clearCache() ```ts clearCache(): void; ``` Defined in: [module-name-resolver/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/module-name-resolver/index.ts) #### Returns `void` #### Implementation of ```ts ModuleNameResolverType.clearCache ``` *** ### resolveModuleName() ```ts resolveModuleName(path: string, ext: string): string; ``` Defined in: [module-name-resolver/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/module-name-resolver/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `path` | `string` | | `ext` | `string` | #### Returns `string` #### Implementation of ```ts ModuleNameResolverType.resolveModuleName ``` --- --- url: 'https://docs.nativescript.org/api/classes/NavigationButton.md' description: Represents the navigation (a.k.a. "back") button. --- Defined in: [ui/action-bar/index.d.ts:292](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L292) Represents the navigation (a.k.a. "back") button. ## Extends * [`ActionItem`](ActionItem.md) ## Constructors ### Constructor ```ts new NavigationButton(): NavigationButton; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `NavigationButton` #### Inherited from [`ActionItem`](ActionItem.md).[`constructor`](ActionItem.md#constructor) ## Properties ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_automaticallyAdjustsScrollViewInsets`](ActionItem.md#automaticallyadjustsscrollviewinsets) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_context`](ActionItem.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_cssState`](ActionItem.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_defaultPaddingBottom`](ActionItem.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_defaultPaddingLeft`](ActionItem.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_defaultPaddingRight`](ActionItem.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_defaultPaddingTop`](ActionItem.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_domId`](ActionItem.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_ignoreFlexMinWidthHeightReset`](ActionItem.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_isAddedToNativeVisualTree`](ActionItem.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_isPaddingRelative`](ActionItem.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_isStyleScopeHost`](ActionItem.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_oldBottom`](ActionItem.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_oldLeft`](ActionItem.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_oldRight`](ActionItem.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_oldTop`](ActionItem.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`_styleScope`](ActionItem.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`ActionItem`](ActionItem.md).[`_suspendNativeUpdatesCount`](ActionItem.md#suspendnativeupdatescount) *** ### actionBar ```ts actionBar: ActionBar; ``` Defined in: [ui/action-bar/index.d.ts:162](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L162) Gets the action bar that contains the action item. #### Inherited from [`ActionItem`](ActionItem.md).[`actionBar`](ActionItem.md#actionbar) *** ### actionView ```ts actionView: View; ``` Defined in: [ui/action-bar/index.d.ts:150](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L150) Gets or sets the custom action view of the action item. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`actionView`](ActionItem.md#actionview) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`alignSelf`](ActionItem.md#alignself) *** ### android ```ts android: AndroidActionItemSettings; ``` Defined in: [ui/action-bar/index.d.ts:198](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L198) Gets the Android specific options of the action item. #### Inherited from [`ActionItem`](ActionItem.md).[`android`](ActionItem.md#android) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`bindingContext`](ActionItem.md#bindingcontext) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`className`](ActionItem.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`col`](ActionItem.md#col) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`colSpan`](ActionItem.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`column`](ActionItem.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`columnSpan`](ActionItem.md#columnspan) *** ### cssClasses ```ts readonly cssClasses: Set; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`cssClasses`](ActionItem.md#cssclasses) *** ### cssPseudoClasses ```ts readonly cssPseudoClasses: Set; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`cssPseudoClasses`](ActionItem.md#csspseudoclasses) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`defaultVisualState`](ActionItem.md#defaultvisualstate) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`dock`](ActionItem.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`domNode`](ActionItem.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveBorderBottomWidth`](ActionItem.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveBorderLeftWidth`](ActionItem.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveBorderRightWidth`](ActionItem.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveBorderTopWidth`](ActionItem.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveHeight`](ActionItem.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveLeft`](ActionItem.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveMarginBottom`](ActionItem.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveMarginLeft`](ActionItem.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveMarginRight`](ActionItem.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveMarginTop`](ActionItem.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveMinHeight`](ActionItem.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveMinWidth`](ActionItem.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveTop`](ActionItem.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`effectiveWidth`](ActionItem.md#effectivewidth) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`flexGrow`](ActionItem.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`flexShrink`](ActionItem.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`flexWrapBefore`](ActionItem.md#flexwrapbefore) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`hidden`](ActionItem.md#hidden) *** ### icon ```ts icon: string; ``` Defined in: [ui/action-bar/index.d.ts:143](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L143) Gets or sets the icon of the action item. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`icon`](ActionItem.md#icon) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`id`](ActionItem.md#id) *** ### ios ```ts ios: IOSActionItemSettings; ``` Defined in: [ui/action-bar/index.d.ts:192](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L192) Gets the iOS specific options of the action item. #### Inherited from [`ActionItem`](ActionItem.md).[`ios`](ActionItem.md#ios) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`ActionItem`](ActionItem.md).[`isCollapsed`](ActionItem.md#iscollapsed) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`left`](ActionItem.md#left) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`ActionItem`](ActionItem.md).[`mIsRootView`](ActionItem.md#misrootview) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`ActionItem`](ActionItem.md).[`nativeViewProtected`](ActionItem.md#nativeviewprotected) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`order`](ActionItem.md#order) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`ActionItem`](ActionItem.md).[`parent`](ActionItem.md#parent) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ActionItem`](ActionItem.md).[`recycleNativeView`](ActionItem.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`reusable`](ActionItem.md#reusable) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`row`](ActionItem.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`rowSpan`](ActionItem.md#rowspan) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`sharedTransitionIgnore`](ActionItem.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`sharedTransitionTag`](ActionItem.md#sharedtransitiontag) *** ### text ```ts text: string; ``` Defined in: [ui/action-bar/index.d.ts:136](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L136) Gets or sets the text of the action item. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`text`](ActionItem.md#text) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`top`](ActionItem.md#top) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`ActionItem`](ActionItem.md).[`viewController`](ActionItem.md#viewcontroller) *** ### visibility ```ts visibility: string; ``` Defined in: [ui/action-bar/index.d.ts:157](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L157) Gets or sets the visibility of the action item. #### Ns Property #### Inherited from [`ActionItem`](ActionItem.md).[`visibility`](ActionItem.md#visibility) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`ActionItem`](ActionItem.md).[`createdEvent`](ActionItem.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`ActionItem`](ActionItem.md).[`disposeNativeViewEvent`](ActionItem.md#disposenativeviewevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`ActionItem`](ActionItem.md).[`loadedEvent`](ActionItem.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`ActionItem`](ActionItem.md).[`propertyChangeEvent`](ActionItem.md#propertychangeevent) *** ### tapEvent ```ts static tapEvent: string; ``` Defined in: [ui/action-bar/index.d.ts:129](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L129) String value used when hooking to layoutChanged event. #### Ns Event tap #### Inherited from [`ActionItem`](ActionItem.md).[`tapEvent`](ActionItem.md#tapevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`ActionItem`](ActionItem.md).[`unloadedEvent`](ActionItem.md#unloadedevent) ## Accessors ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`class`](ActionItem.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`effectivePaddingBottom`](ActionItem.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`effectivePaddingLeft`](ActionItem.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`effectivePaddingRight`](ActionItem.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`effectivePaddingTop`](ActionItem.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`ActionItem`](ActionItem.md).[`isLoaded`](ActionItem.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`nativeView`](ActionItem.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`ActionItem`](ActionItem.md).[`page`](ActionItem.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`parentNode`](ActionItem.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`style`](ActionItem.md#style) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`ActionItem`](ActionItem.md).[`typeName`](ActionItem.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`ActionItem`](ActionItem.md).[`visualState`](ActionItem.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_addView`](ActionItem.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_addViewCore`](ActionItem.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`ActionItem`](ActionItem.md).[`_addViewToNativeVisualTree`](ActionItem.md#addviewtonativevisualtree) *** ### \_addVisualState() ```ts _addVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_addVisualState`](ActionItem.md#addvisualstate) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`ActionItem`](ActionItem.md).[`_applyXmlAttribute`](ActionItem.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`ActionItem`](ActionItem.md).[`_batchUpdate`](ActionItem.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`ActionItem`](ActionItem.md).[`_childIndexToNativeChildIndex`](ActionItem.md#childindextonativechildindex) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`ActionItem`](ActionItem.md).[`_createPropertyChangeData`](ActionItem.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_dialogClosed`](ActionItem.md#dialogclosed) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_emit`](ActionItem.md#emit) *** ### ~~\_goToVisualState()~~ ```ts _goToVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` #### Deprecated Use View.\_addVisualState() and View.\_removeVisualState() instead. #### Inherited from [`ActionItem`](ActionItem.md).[`_goToVisualState`](ActionItem.md#gotovisualstate) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_inheritStyles`](ActionItem.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_inheritStyleScope`](ActionItem.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_layoutParent`](ActionItem.md#layoutparent) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_onRootViewReset`](ActionItem.md#onrootviewreset) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_parentChanged`](ActionItem.md#parentchanged) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_removeView`](ActionItem.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_removeViewCore`](ActionItem.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_removeViewFromNativeVisualTree`](ActionItem.md#removeviewfromnativevisualtree) *** ### \_removeVisualState() ```ts _removeVisualState(state: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `state` | `string` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_removeVisualState`](ActionItem.md#removevisualstate) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_resumeNativeUpdates`](ActionItem.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_setDefaultPaddings`](ActionItem.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_setupAsRootView`](ActionItem.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_setupUI`](ActionItem.md#setupui) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`ActionItem`](ActionItem.md).[`_shouldDelayLayout`](ActionItem.md#shoulddelaylayout) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_suspendNativeUpdates`](ActionItem.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`_tearDownUI`](ActionItem.md#teardownui) *** ### addEventListener() ```ts addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`addEventListener`](ActionItem.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`ActionItem`](ActionItem.md).[`addPseudoClass`](ActionItem.md#addpseudoclass) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`bind`](ActionItem.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`callLoaded`](ActionItem.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`callUnloaded`](ActionItem.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`closeModal`](ActionItem.md#closemodal) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`ActionItem`](ActionItem.md).[`createNativeView`](ActionItem.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`ActionItem`](ActionItem.md).[`deletePseudoClass`](ActionItem.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`ActionItem`](ActionItem.md).[`destroyNode`](ActionItem.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`disposeNativeView`](ActionItem.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`eachChild`](ActionItem.md#eachchild) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`ActionItem`](ActionItem.md).[`ensureDomNode`](ActionItem.md#ensuredomnode) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`ActionItem`](ActionItem.md).[`get`](ActionItem.md#get) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`ActionItem`](ActionItem.md).[`getEffectivePaddingShorthand`](ActionItem.md#geteffectivepaddingshorthand) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`ActionItem`](ActionItem.md).[`getViewByDomId`](ActionItem.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`ActionItem`](ActionItem.md).[`getViewById`](ActionItem.md#getviewbyid) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`ActionItem`](ActionItem.md).[`hasListeners`](ActionItem.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`initNativeView`](ActionItem.md#initnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`loadView`](ActionItem.md#loadview) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`notify`](ActionItem.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`notifyPropertyChange`](ActionItem.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`off`](ActionItem.md#off) *** ### on() #### Call Signature ```ts on(eventName: string, callback: (data: EventData) => void): void; ``` Defined in: [ui/action-bar/index.d.ts:174](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L174) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | ##### Returns `void` ##### Inherited from [`ActionItem`](ActionItem.md).[`on`](ActionItem.md#on) #### Call Signature ```ts on(event: "tap", callback: (args: EventData) => void): void; ``` Defined in: [ui/action-bar/index.d.ts:179](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/action-bar/index.d.ts#L179) Raised when a tap event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"tap"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | ##### Returns `void` ##### Inherited from [`ActionItem`](ActionItem.md).[`on`](ActionItem.md#on) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`once`](ActionItem.md#once) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`onLoaded`](ActionItem.md#onloaded) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`onResumeNativeUpdates`](ActionItem.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`onUnloaded`](ActionItem.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`removeEventListener`](ActionItem.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`requestLayout`](ActionItem.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`resetNativeView`](ActionItem.md#resetnativeview) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`set`](ActionItem.md#set) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`setInlineStyle`](ActionItem.md#setinlinestyle) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`setNativeView`](ActionItem.md#setnativeview) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`setProperty`](ActionItem.md#setproperty) *** ### showModal() #### Call Signature ```ts showModal(view: ViewBase, modalOptions?: ShowModalOptions): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Shows the view passed as parameter as a modal view. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | View instance to be shown modally. | | `modalOptions?` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | A ShowModalOptions instance | ##### Returns [`ViewBase`](ViewBase.md) ##### Inherited from [`ActionItem`](ActionItem.md).[`showModal`](ActionItem.md#showmodal) #### Call Signature ```ts showModal(moduleName: string, modalOptions?: ShowModalOptions): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Shows the View contained in moduleName as a modal view. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `moduleName` | `string` | The name of the module to load starting from the application root. | | `modalOptions?` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | A ShowModalOptions instance | ##### Returns [`ViewBase`](ViewBase.md) ##### Inherited from [`ActionItem`](ActionItem.md).[`showModal`](ActionItem.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`ActionItem`](ActionItem.md).[`toString`](ActionItem.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`unbind`](ActionItem.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`ActionItem`](ActionItem.md).[`unloadView`](ActionItem.md#unloadview) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`ActionItem`](ActionItem.md).[`addEventListener`](ActionItem.md#addeventlistener-1) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ActionItem`](ActionItem.md).[`off`](ActionItem.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`ActionItem`](ActionItem.md).[`on`](ActionItem.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ActionItem`](ActionItem.md).[`once`](ActionItem.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ActionItem`](ActionItem.md).[`removeEventListener`](ActionItem.md#removeeventlistener-1) --- --- url: 'https://docs.nativescript.org/api/classes/Observable.md' description: >- 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 `ne... --- Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) 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. ## Extended by * [`ObservableArray`](ObservableArray.md) * [`VirtualArray`](VirtualArray.md) * [`ImageAsset`](ImageAsset.md) * [`ViewBase`](ViewBase.md) * [`ImageCache`](ImageCache.md) * [`Style`](Style.md) ## Constructors ### Constructor ```ts new Observable(): Observable; ``` #### Returns `Observable` ## Properties ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange ## Methods ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` *** ### addEventListener() ```ts addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` *** ### off() ```ts off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `void` *** ### on() ```ts on( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` *** ### removeEventListener() ```ts removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated --- --- url: 'https://docs.nativescript.org/api/classes/ObservableArray.md' description: >- Advanced array like class used when you want to be notified when a change occurs. --- Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Advanced array like class used when you want to be notified when a change occurs. ## Extends * [`Observable`](Observable.md) ## Type Parameters | Type Parameter | | ------ | | `T` | ## Constructors ### Constructor ```ts new ObservableArray(arrayLength?: number): ObservableArray; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Create ObservableArray\ with specified length. #### Parameters | Parameter | Type | | ------ | ------ | | `arrayLength?` | `number` | #### Returns `ObservableArray`<`T`> #### Overrides [`Observable`](Observable.md).[`constructor`](Observable.md#constructor) ### Constructor ```ts new ObservableArray(items: T[]): ObservableArray; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Create ObservableArray\ from source Array\. #### Parameters | Parameter | Type | | ------ | ------ | | `items` | `T`\[] | #### Returns `ObservableArray`<`T`> #### Overrides ```ts Observable.constructor ``` ### Constructor ```ts new ObservableArray(...items: T[]): ObservableArray; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Create ObservableArray\ from T items. #### Parameters | Parameter | Type | | ------ | ------ | | ...`items` | `T`\[] | #### Returns `ObservableArray`<`T`> #### Overrides ```ts Observable.constructor ``` ## Properties ### changeEvent ```ts static changeEvent: string; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) String value used when hooking to change event. *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`Observable`](Observable.md).[`propertyChangeEvent`](Observable.md#propertychangeevent) ## Accessors ### length #### Get Signature ```ts get length(): number; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Gets or sets the length of the array. This is a number one higher than the highest element defined in an array. ##### Returns `number` #### Set Signature ```ts set length(value: number): void; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | ##### Returns `void` ## Methods ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`Observable`](Observable.md).[`_createPropertyChangeData`](Observable.md#createpropertychangedata) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`_emit`](Observable.md#emit) *** ### \_notifyLengthChange() ```ts _notifyLengthChange(): void; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) #### Returns `void` *** ### \[iterator]\() ```ts iterator: Generator; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) #### Returns `Generator`<`T`, `void`, `unknown`> *** ### addEventListener() ```ts addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`addEventListener`](Observable.md#addeventlistener) *** ### concat() ```ts concat(...args: any[]): ObservableArray; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Combines two or more arrays. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `ObservableArray`<`T`> *** ### every() ```ts every(callbackfn: (value: T, index: number, array: ObservableArray) => boolean, thisArg?: any): boolean; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Determines whether all the members of an array satisfy the specified test. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callbackfn` | (`value`: `T`, `index`: `number`, `array`: `ObservableArray`<`T`>) => `boolean` | A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array. | | `thisArg?` | `any` | An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. | #### Returns `boolean` *** ### filter() ```ts filter(callbackfn: (value: T, index: number, array: ObservableArray) => boolean, thisArg?: any): ObservableArray; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Returns the elements of an array that meet the condition specified in a callback function. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callbackfn` | (`value`: `T`, `index`: `number`, `array`: `ObservableArray`<`T`>) => `boolean` | A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array. | | `thisArg?` | `any` | An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. | #### Returns `ObservableArray`<`T`> *** ### find() ```ts find(callbackfn: (value: T, index: number, array: ObservableArray) => any, thisArg?: any): T; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Returns the first element in the array where predicate is true, and null otherwise. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callbackfn` | (`value`: `T`, `index`: `number`, `array`: `ObservableArray`<`T`>) => `any` | - | | `thisArg?` | `any` | If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead. | #### Returns `T` *** ### findIndex() ```ts findIndex(callbackfn: (value: T, index: number, array: ObservableArray) => any, thisArg?: any): number; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Returns the index of the first element in the array where predicate is true, and -1 otherwise. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callbackfn` | (`value`: `T`, `index`: `number`, `array`: `ObservableArray`<`T`>) => `any` | - | | `thisArg?` | `any` | If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead. | #### Returns `number` *** ### forEach() ```ts forEach(callbackfn: (value: T, index: number, array: ObservableArray) => void, thisArg?: any): void; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Performs the specified action for each element in an array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callbackfn` | (`value`: `T`, `index`: `number`, `array`: `ObservableArray`<`T`>) => `void` | A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. | | `thisArg?` | `any` | An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. | #### Returns `void` *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`Observable`](Observable.md).[`get`](Observable.md#get) *** ### getItem() ```ts getItem(pos: number): T; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Returns item at specified position. Supports relative indexing from the end of the array when passed a negative index. #### Parameters | Parameter | Type | | ------ | ------ | | `pos` | `number` | #### Returns `T` *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`Observable`](Observable.md).[`hasListeners`](Observable.md#haslisteners) *** ### includes() ```ts includes(searchElement: T, fromIndex?: number): boolean; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Determines whether the specified element exists inside the array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `searchElement` | `T` | The value to locate in the array. | | `fromIndex?` | `number` | The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. | #### Returns `boolean` *** ### indexOf() ```ts indexOf(searchElement: T, fromIndex?: number): number; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Returns the index of the first occurrence of a value in an array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `searchElement` | `T` | The value to locate in the array. | | `fromIndex?` | `number` | The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. | #### Returns `number` *** ### join() ```ts join(separator?: string): string; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Adds all the elements of an array separated by the specified separator string. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `separator?` | `string` | A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. | #### Returns `string` *** ### lastIndexOf() ```ts lastIndexOf(searchElement: T, fromIndex?: number): number; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Returns the index of the last occurrence of a specified value in an array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `searchElement` | `T` | The value to locate in the array. | | `fromIndex?` | `number` | The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array. | #### Returns `number` *** ### map() ```ts map(callbackfn: (value: T, index: number, array: ObservableArray) => U, thisArg?: any): ObservableArray; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Calls a defined callback function on each element of an array, and returns an array that contains the results. #### Type Parameters | Type Parameter | | ------ | | `U` | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callbackfn` | (`value`: `T`, `index`: `number`, `array`: `ObservableArray`<`T`>) => `U` | A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. | | `thisArg?` | `any` | An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. | #### Returns `ObservableArray`<`U`> *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`notify`](Observable.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`notifyPropertyChange`](Observable.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`off`](Observable.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `void` ##### Inherited from [`Observable`](Observable.md).[`on`](Observable.md#on) #### Call Signature ```ts on( event: "change", callback: (args: ChangedData) => void, thisArg?: any): void; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"change"` | | `callback` | (`args`: [`ChangedData`](../interfaces/ChangedData.md)<`T`>) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from ```ts Observable.on ``` *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`once`](Observable.md#once) *** ### pop() ```ts pop(): T; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Removes the last element from an array and returns it. #### Returns `T` *** ### push() ```ts push(...args: T[]): number; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Appends new elements to an array, and returns the new length of the array. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `T`\[] | #### Returns `number` *** ### reduce() ```ts reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ObservableArray) => T, initialValue?: T): T; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callbackfn` | (`previousValue`: `T`, `currentValue`: `T`, `currentIndex`: `number`, `array`: `ObservableArray`<`T`>) => `T` | A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. | | `initialValue?` | `T` | If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. | #### Returns `T` *** ### reduceRight() ```ts reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ObservableArray) => T, initialValue?: T): T; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callbackfn` | (`previousValue`: `T`, `currentValue`: `T`, `currentIndex`: `number`, `array`: `ObservableArray`<`T`>) => `T` | A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. | | `initialValue?` | `T` | If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. | #### Returns `T` *** ### removeEventListener() ```ts removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | Name of the event to attach to. | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`removeEventListener`](Observable.md#removeeventlistener) *** ### reverse() ```ts reverse(): ObservableArray; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Reverses the elements in an Array. This method uses 'in place' algorithm. #### Returns `ObservableArray`<`T`> *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`set`](Observable.md#set) *** ### setItem() ```ts setItem(pos: number, value: T): void; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Sets item at specified position. Supports relative indexing from the end of the array when passed a negative index. #### Parameters | Parameter | Type | | ------ | ------ | | `pos` | `number` | | `value` | `T` | #### Returns `void` *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`Observable`](Observable.md).[`setProperty`](Observable.md#setproperty) *** ### shift() ```ts shift(): T; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Removes the first element from an array and returns it. #### Returns `T` *** ### slice() ```ts slice(start?: number, end?: number): ObservableArray; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Returns a section of an array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `start?` | `number` | The beginning of the specified portion of the array. | | `end?` | `number` | The end of the specified portion of the array. | #### Returns `ObservableArray`<`T`> *** ### some() ```ts some(callbackfn: (value: T, index: number, array: ObservableArray) => boolean, thisArg?: any): boolean; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Determines whether the specified callback function returns true for any element of an array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callbackfn` | (`value`: `T`, `index`: `number`, `array`: `ObservableArray`<`T`>) => `boolean` | A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array. | | `thisArg?` | `any` | An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. | #### Returns `boolean` *** ### sort() ```ts sort(compareFn?: (a: T, b: T) => number): ObservableArray; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Sorts an array. This method uses 'in place' algorithm. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `compareFn?` | (`a`: `T`, `b`: `T`) => `number` | The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order. | #### Returns `ObservableArray`<`T`> *** ### splice() ```ts splice( start: number, deleteCount?: number, ... items: T[]): ObservableArray; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. This method uses 'in place' algorithm. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `start` | `number` | The zero-based location in the array from which to start removing elements. | | `deleteCount?` | `number` | The number of elements to remove. | | ...`items?` | `T`\[] | Elements to insert into the array in place of the deleted elements. | #### Returns `ObservableArray`<`T`> *** ### toJSON() ```ts toJSON(): any[]; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) #### Returns `any`\[] *** ### toLocaleString() ```ts toLocaleString(): string; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Returns a date converted to a string using the current locale. #### Returns `string` *** ### toString() ```ts toString(): string; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Returns a string representation of an array. #### Returns `string` *** ### unshift() ```ts unshift(...args: T[]): number; ``` Defined in: [data/observable-array/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable-array/index.ts) Inserts new elements at the start of an array. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `T`\[] | #### Returns `number` *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`addEventListener`](Observable.md#addeventlistener-1) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`off`](Observable.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`on`](Observable.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`once`](Observable.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`Observable`](Observable.md).[`removeEventListener`](Observable.md#removeeventlistener-1) --- --- url: 'https://docs.nativescript.org/api/classes/Page.md' description: Represents a logical unit for navigation (inside Frame). --- Defined in: [ui/page/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L32) Represents a logical unit for navigation (inside Frame). ## Ns View Page ## Extends * [`PageBase`](PageBase.md) ## Constructors ### Constructor ```ts new Page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `Page` #### Inherited from [`PageBase`](PageBase.md).[`constructor`](PageBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`PageBase`](PageBase.md).[`_androidContentDescriptionUpdated`](PageBase.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_automaticallyAdjustsScrollViewInsets`](PageBase.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`PageBase`](PageBase.md).[`_closeModalCallback`](PageBase.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_context`](PageBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_cssState`](PageBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_defaultPaddingBottom`](PageBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_defaultPaddingLeft`](PageBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_defaultPaddingRight`](PageBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_defaultPaddingTop`](PageBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_domId`](PageBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_ignoreFlexMinWidthHeightReset`](PageBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_isAddedToNativeVisualTree`](PageBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_isPaddingRelative`](PageBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_isStyleScopeHost`](PageBase.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_oldBottom`](PageBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_oldLeft`](PageBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_oldRight`](PageBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_oldTop`](PageBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`_styleScope`](PageBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`PageBase`](PageBase.md).[`_suspendNativeUpdatesCount`](PageBase.md#suspendnativeupdatescount) *** ### accessibilityAnnouncePageEnabled ```ts accessibilityAnnouncePageEnabled: boolean; ``` Defined in: [ui/page/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L132) Should page changed be announced to the screen reader. #### Ns Property #### Overrides [`PageBase`](PageBase.md).[`accessibilityAnnouncePageEnabled`](PageBase.md#accessibilityannouncepageenabled) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityHidden`](PageBase.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityHint`](PageBase.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityIdentifier`](PageBase.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityIgnoresInvertColors`](PageBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityLabel`](PageBase.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityLanguage`](PageBase.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityLiveRegion`](PageBase.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityMediaSession`](PageBase.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityRole`](PageBase.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityState`](PageBase.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessibilityValue`](PageBase.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`accessible`](PageBase.md#accessible) *** ### actionBar ```ts actionBar: ActionBar; ``` Defined in: [ui/page/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L117) Gets the ActionBar for this page. #### Overrides [`PageBase`](PageBase.md).[`actionBar`](PageBase.md#actionbar) *** ### actionBarHidden ```ts actionBarHidden: boolean; ``` Defined in: [ui/page/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L82) Used to hide the Navigation Bar in iOS and the Action Bar in Android. #### Ns Property #### Overrides [`PageBase`](PageBase.md).[`actionBarHidden`](PageBase.md#actionbarhidden) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`alignSelf`](PageBase.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`PageBase`](PageBase.md).[`android`](PageBase.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`androidDynamicElevationOffset`](PageBase.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`androidElevation`](PageBase.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`PageBase`](PageBase.md).[`androidOverflowEdge`](PageBase.md#androidoverflowedge) *** ### androidStatusBarBackground ```ts androidStatusBarBackground: Color; ``` Defined in: [ui/page/index.d.ts:74](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L74) Gets or sets the color of the status bar in Android. #### Ns Property #### Overrides [`PageBase`](PageBase.md).[`androidStatusBarBackground`](PageBase.md#androidstatusbarbackground) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`automationText`](PageBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`background`](PageBase.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`backgroundColor`](PageBase.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`backgroundImage`](PageBase.md#backgroundimage) *** ### backgroundSpanUnderStatusBar ```ts backgroundSpanUnderStatusBar: boolean; ``` Defined in: [ui/page/index.d.ts:66](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L66) Gets or sets whether page background spans under status bar. #### Ns Property #### Overrides [`PageBase`](PageBase.md).[`backgroundSpanUnderStatusBar`](PageBase.md#backgroundspanunderstatusbar) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`bindingContext`](PageBase.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderBottomColor`](PageBase.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderBottomLeftRadius`](PageBase.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderBottomRightRadius`](PageBase.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderBottomWidth`](PageBase.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderColor`](PageBase.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderLeftColor`](PageBase.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderLeftWidth`](PageBase.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderRadius`](PageBase.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderRightColor`](PageBase.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderRightWidth`](PageBase.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderTopColor`](PageBase.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderTopLeftRadius`](PageBase.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderTopRightRadius`](PageBase.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderTopWidth`](PageBase.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`borderWidth`](PageBase.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`boxShadow`](PageBase.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`className`](PageBase.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`col`](PageBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`color`](PageBase.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`colSpan`](PageBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`column`](PageBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`columnSpan`](PageBase.md#columnspan) *** ### content ```ts content: View; ``` Defined in: [ui/content-view/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/content-view/index.d.ts#L13) Gets or sets the single child of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`content`](PageBase.md#content) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`PageBase`](PageBase.md).[`cssClasses`](PageBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`PageBase`](PageBase.md).[`cssPseudoClasses`](PageBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`PageBase`](PageBase.md).[`cssType`](PageBase.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`defaultVisualState`](PageBase.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`direction`](PageBase.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`dock`](PageBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`domNode`](PageBase.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveBorderBottomWidth`](PageBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveBorderLeftWidth`](PageBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveBorderRightWidth`](PageBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveBorderTopWidth`](PageBase.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveHeight`](PageBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveLeft`](PageBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveMarginBottom`](PageBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveMarginLeft`](PageBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveMarginRight`](PageBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveMarginTop`](PageBase.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveMinHeight`](PageBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveMinWidth`](PageBase.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveTop`](PageBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`effectiveWidth`](PageBase.md#effectivewidth) *** ### enableSwipeBackNavigation ```ts enableSwipeBackNavigation: boolean; ``` Defined in: [ui/page/index.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L92) Used to control if swipe back navigation in iOS is enabled. This property is iOS specific. Default value: true #### Ns Property #### Overrides [`PageBase`](PageBase.md).[`enableSwipeBackNavigation`](PageBase.md#enableswipebacknavigation) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`flex`](PageBase.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`flexFlow`](PageBase.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`flexGrow`](PageBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`flexShrink`](PageBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`flexWrapBefore`](PageBase.md#flexwrapbefore) *** ### frame ```ts frame: Frame; ``` Defined in: [ui/page/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L111) Gets the Frame object controlling this instance. #### Overrides [`PageBase`](PageBase.md).[`frame`](PageBase.md#frame) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`height`](PageBase.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`hidden`](PageBase.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`horizontalAlignment`](PageBase.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`id`](PageBase.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`ignoreTouchAnimation`](PageBase.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`PageBase`](PageBase.md).[`ios`](PageBase.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`iosAccessibilityAdjustsFontSize`](PageBase.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`iosAccessibilityMaxFontScale`](PageBase.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`iosAccessibilityMinFontScale`](PageBase.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`iosGlassEffect`](PageBase.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`iosIgnoreSafeArea`](PageBase.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`iosOverflowSafeArea`](PageBase.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`iosOverflowSafeAreaEnabled`](PageBase.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`PageBase`](PageBase.md).[`isCollapsed`](PageBase.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`isEnabled`](PageBase.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`PageBase`](PageBase.md).[`isLayoutValid`](PageBase.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`isUserInteractionEnabled`](PageBase.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`left`](PageBase.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`margin`](PageBase.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`marginBottom`](PageBase.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`marginLeft`](PageBase.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`marginRight`](PageBase.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`marginTop`](PageBase.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`minHeight`](PageBase.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`minWidth`](PageBase.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`PageBase`](PageBase.md).[`mIsRootView`](PageBase.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`PageBase`](PageBase.md).[`modal`](PageBase.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`PageBase`](PageBase.md).[`nativeBackgroundState`](PageBase.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`PageBase`](PageBase.md).[`nativeViewProtected`](PageBase.md#nativeviewprotected) *** ### navigationContext ```ts navigationContext: any; ``` Defined in: [ui/page/index.d.ts:105](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L105) A property that is used to pass a data from another page (while navigate to). #### Ns Property #### Overrides [`PageBase`](PageBase.md).[`navigationContext`](PageBase.md#navigationcontext) *** ### onAccessibilityPerformEscape? ```ts optional onAccessibilityPerformEscape?: () => boolean; ``` Defined in: [ui/page/index.d.ts:125](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L125) iOS Only Perform an action when user performans the "escape" gesture #### Returns `boolean` #### Ns Property *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`opacity`](PageBase.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`order`](PageBase.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`originX`](PageBase.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`originY`](PageBase.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`PageBase`](PageBase.md).[`parent`](PageBase.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`perspective`](PageBase.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`PageBase`](PageBase.md).[`recycleNativeView`](PageBase.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`reusable`](PageBase.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`rotate`](PageBase.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`rotateX`](PageBase.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`rotateY`](PageBase.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`row`](PageBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`rowSpan`](PageBase.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`scaleX`](PageBase.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`scaleY`](PageBase.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`sharedTransitionIgnore`](PageBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`sharedTransitionTag`](PageBase.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`statusBarStyle`](PageBase.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`testID`](PageBase.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`top`](PageBase.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`touchAnimation`](PageBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`touchDelay`](PageBase.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`PageBase`](PageBase.md).[`transitionId`](PageBase.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`translateX`](PageBase.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`translateY`](PageBase.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`verticalAlignment`](PageBase.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`PageBase`](PageBase.md).[`viewController`](PageBase.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`visibility`](PageBase.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`visionHoverStyle`](PageBase.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`visionIgnoreHoverStyle`](PageBase.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`PageBase`](PageBase.md).[`width`](PageBase.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`PageBase`](PageBase.md).[`accessibilityBlurEvent`](PageBase.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`PageBase`](PageBase.md).[`accessibilityFocusChangedEvent`](PageBase.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`PageBase`](PageBase.md).[`accessibilityFocusEvent`](PageBase.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`PageBase`](PageBase.md).[`accessibilityPerformEscapeEvent`](PageBase.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`PageBase`](PageBase.md).[`androidOverflowInsetEvent`](PageBase.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`PageBase`](PageBase.md).[`createdEvent`](PageBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`PageBase`](PageBase.md).[`disposeNativeViewEvent`](PageBase.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`PageBase`](PageBase.md).[`layoutChangedEvent`](PageBase.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`PageBase`](PageBase.md).[`loadedEvent`](PageBase.md#loadedevent) *** ### navigatedFromEvent ```ts readonly static navigatedFromEvent: "navigatedFrom" = 'navigatedFrom'; ``` Defined in: [ui/page/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L59) String value used when hooking to navigatedFrom event. #### Ns Event navigatedFrom #### Overrides [`PageBase`](PageBase.md).[`navigatedFromEvent`](PageBase.md#navigatedfromevent) *** ### navigatedToEvent ```ts readonly static navigatedToEvent: "navigatedTo" = 'navigatedTo'; ``` Defined in: [ui/page/index.d.ts:45](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L45) String value used when hooking to navigatedTo event. #### Ns Event navigatedTo #### Overrides [`PageBase`](PageBase.md).[`navigatedToEvent`](PageBase.md#navigatedtoevent) *** ### navigatingFromEvent ```ts readonly static navigatingFromEvent: "navigatingFrom" = 'navigatingFrom'; ``` Defined in: [ui/page/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L52) String value used when hooking to navigatingFrom event. #### Ns Event navigatingFrom #### Overrides [`PageBase`](PageBase.md).[`navigatingFromEvent`](PageBase.md#navigatingfromevent) *** ### navigatingToEvent ```ts readonly static navigatingToEvent: "navigatingTo" = 'navigatingTo'; ``` Defined in: [ui/page/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L38) String value used when hooking to navigatingTo event. #### Ns Event navigatingTo #### Overrides [`PageBase`](PageBase.md).[`navigatingToEvent`](PageBase.md#navigatingtoevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`PageBase`](PageBase.md).[`propertyChangeEvent`](PageBase.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`PageBase`](PageBase.md).[`showingModallyEvent`](PageBase.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`PageBase`](PageBase.md).[`shownModallyEvent`](PageBase.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`PageBase`](PageBase.md).[`unloadedEvent`](PageBase.md#unloadedevent) ## Accessors ### \_childrenCount #### Get Signature ```ts get _childrenCount(): number; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) ##### Returns `number` #### Inherited from [`PageBase`](PageBase.md).[`_childrenCount`](PageBase.md#childrencount) *** ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`backgroundPosition`](PageBase.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`backgroundRepeat`](PageBase.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`backgroundSize`](PageBase.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`class`](PageBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`effectivePaddingBottom`](PageBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`effectivePaddingLeft`](PageBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`effectivePaddingRight`](PageBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`effectivePaddingTop`](PageBase.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`PageBase`](PageBase.md).[`isLoaded`](PageBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`nativeView`](PageBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Gets owner page. This is a read-only property. ##### Returns `Page` #### Inherited from [`PageBase`](PageBase.md).[`page`](PageBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`parentNode`](PageBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`style`](PageBase.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`textTransform`](PageBase.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`PageBase`](PageBase.md).[`typeName`](PageBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`PageBase`](PageBase.md).[`visualState`](PageBase.md#visualstate) ## Methods ### \_addChildFromBuilder() ```ts _addChildFromBuilder(name: string, value: any): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Called for every child element declared in xml. This method will add a child element (value) to current element. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the element. | | `value` | `any` | Value of the element. | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_addChildFromBuilder`](PageBase.md#addchildfrombuilder) *** ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_addView`](PageBase.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_addViewCore`](PageBase.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`PageBase`](PageBase.md).[`_addViewToNativeVisualTree`](PageBase.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`PageBase`](PageBase.md).[`_applyGlassEffect`](PageBase.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`PageBase`](PageBase.md).[`_applyXmlAttribute`](PageBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`PageBase`](PageBase.md).[`_batchUpdate`](PageBase.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`PageBase`](PageBase.md).[`_childIndexToNativeChildIndex`](PageBase.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`PageBase`](PageBase.md).[`_closeAllModalViewsInternal`](PageBase.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`PageBase`](PageBase.md).[`_createPropertyChangeData`](PageBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_dialogClosed`](PageBase.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_eachLayoutView`](PageBase.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_emit`](PageBase.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`PageBase`](PageBase.md).[`_getNativeViewsCount`](PageBase.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`PageBase`](PageBase.md).[`_getRootModalViews`](PageBase.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`PageBase`](PageBase.md).[`_getValue`](PageBase.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`PageBase`](PageBase.md).[`_handleLivesync`](PageBase.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`PageBase`](PageBase.md).[`_hasAncestorView`](PageBase.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_hideNativeModalView`](PageBase.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_inheritStyles`](PageBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_inheritStyleScope`](PageBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_layoutParent`](PageBase.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_observe`](PageBase.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_onAttachedToWindow`](PageBase.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_onDetachedFromWindow`](PageBase.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_onRootViewReset`](PageBase.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_onSizeChanged`](PageBase.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: View): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`View`](View.md) | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_parentChanged`](PageBase.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_raiseLayoutChangedEvent`](PageBase.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_raiseShowingModallyEvent`](PageBase.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_raiseShownModallyEvent`](PageBase.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_removeView`](PageBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_removeViewCore`](PageBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_removeViewFromNativeVisualTree`](PageBase.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_resumeNativeUpdates`](PageBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_setDefaultPaddings`](PageBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_setupAsRootView`](PageBase.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_setupUI`](PageBase.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`PageBase`](PageBase.md).[`_setValue`](PageBase.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`PageBase`](PageBase.md).[`_shouldDelayLayout`](PageBase.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_showNativeModalView`](PageBase.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_suspendNativeUpdates`](PageBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_tearDownUI`](PageBase.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`_updateStyleScope`](PageBase.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`accessibilityAnnouncement`](PageBase.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(refocus?: boolean): void; ``` Defined in: [ui/page/index.d.ts:206](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L206) Announce screen changed #### Parameters | Parameter | Type | | ------ | ------ | | `refocus?` | `boolean` | #### Returns `void` #### Overrides [`PageBase`](PageBase.md).[`accessibilityScreenChanged`](PageBase.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`addEventListener`](PageBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`PageBase`](PageBase.md).[`addPseudoClass`](PageBase.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`PageBase`](PageBase.md).[`animate`](PageBase.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`bind`](PageBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`callLoaded`](PageBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`callUnloaded`](PageBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`closeModal`](PageBase.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`PageBase`](PageBase.md).[`createAnimation`](PageBase.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`PageBase`](PageBase.md).[`createNativeView`](PageBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`PageBase`](PageBase.md).[`deletePseudoClass`](PageBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`PageBase`](PageBase.md).[`destroyNode`](PageBase.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`disposeNativeView`](PageBase.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`eachChild`](PageBase.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (child: View) => boolean): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`eachChildView`](PageBase.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`PageBase`](PageBase.md).[`ensureDomNode`](PageBase.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`PageBase`](PageBase.md).[`focus`](PageBase.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`PageBase`](PageBase.md).[`get`](PageBase.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`PageBase`](PageBase.md).[`getActualSize`](PageBase.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`PageBase`](PageBase.md).[`getClosestWindow`](PageBase.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`PageBase`](PageBase.md).[`getEffectivePaddingShorthand`](PageBase.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`PageBase`](PageBase.md).[`getGestureObservers`](PageBase.md#getgestureobservers) *** ### getKeyframeAnimationWithName() ```ts getKeyframeAnimationWithName(animationName: string): KeyframeAnimationInfo; ``` Defined in: [ui/page/index.d.ts:97](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L97) Returns a CSS keyframe animation with the specified name, if it exists. #### Parameters | Parameter | Type | | ------ | ------ | | `animationName` | `string` | #### Returns [`KeyframeAnimationInfo`](KeyframeAnimationInfo.md) #### Overrides [`PageBase`](PageBase.md).[`getKeyframeAnimationWithName`](PageBase.md#getkeyframeanimationwithname) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`PageBase`](PageBase.md).[`getLocationInWindow`](PageBase.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`PageBase`](PageBase.md).[`getLocationOnScreen`](PageBase.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`PageBase`](PageBase.md).[`getLocationRelativeTo`](PageBase.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`PageBase`](PageBase.md).[`getMeasuredHeight`](PageBase.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`PageBase`](PageBase.md).[`getMeasuredState`](PageBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`PageBase`](PageBase.md).[`getMeasuredWidth`](PageBase.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`PageBase`](PageBase.md).[`getSafeAreaInsets`](PageBase.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`PageBase`](PageBase.md).[`getViewByDomId`](PageBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`PageBase`](PageBase.md).[`getViewById`](PageBase.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`PageBase`](PageBase.md).[`hasGestureObservers`](PageBase.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`PageBase`](PageBase.md).[`hasListeners`](PageBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`initNativeView`](PageBase.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`layout`](PageBase.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`layoutNativeView`](PageBase.md#layoutnativeview) *** ### layoutView() ```ts layoutView(): View; ``` Defined in: [ui/content-view/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/content-view/index.d.ts#L14) #### Returns [`View`](View.md) #### Inherited from [`PageBase`](PageBase.md).[`layoutView`](PageBase.md#layoutview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`loadView`](PageBase.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`measure`](PageBase.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`notify`](PageBase.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`notifyPropertyChange`](PageBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`PageBase`](PageBase.md).[`off`](PageBase.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/page/index.d.ts:144](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L144) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `void` ##### Overrides [`PageBase`](PageBase.md).[`on`](PageBase.md#on) #### Call Signature ```ts on( event: "navigatingTo", callback: (args: NavigatedData) => void, thisArg?: any): void; ``` Defined in: [ui/page/index.d.ts:149](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L149) Raised when navigation to the page has started. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"navigatingTo"` | | `callback` | (`args`: [`NavigatedData`](../interfaces/NavigatedData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`PageBase`](PageBase.md).[`on`](PageBase.md#on) #### Call Signature ```ts on( event: "navigatedTo", callback: (args: NavigatedData) => void, thisArg?: any): void; ``` Defined in: [ui/page/index.d.ts:154](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L154) Raised when navigation to the page has finished. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"navigatedTo"` | | `callback` | (`args`: [`NavigatedData`](../interfaces/NavigatedData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`PageBase`](PageBase.md).[`on`](PageBase.md#on) #### Call Signature ```ts on( event: "navigatingFrom", callback: (args: NavigatedData) => void, thisArg?: any): void; ``` Defined in: [ui/page/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L159) Raised when navigation from the page has started. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"navigatingFrom"` | | `callback` | (`args`: [`NavigatedData`](../interfaces/NavigatedData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`PageBase`](PageBase.md).[`on`](PageBase.md#on) #### Call Signature ```ts on( event: "navigatedFrom", callback: (args: NavigatedData) => void, thisArg?: any): void; ``` Defined in: [ui/page/index.d.ts:164](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/index.d.ts#L164) Raised when navigation from the page has finished. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"navigatedFrom"` | | `callback` | (`args`: [`NavigatedData`](../interfaces/NavigatedData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`PageBase`](PageBase.md).[`on`](PageBase.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`PageBase`](PageBase.md).[`onBackPressed`](PageBase.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`once`](PageBase.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`onLayout`](PageBase.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`onLoaded`](PageBase.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`onMeasure`](PageBase.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`onResumeNativeUpdates`](PageBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`onUnloaded`](PageBase.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`removeEventListener`](PageBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`requestLayout`](PageBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`resetNativeView`](PageBase.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`PageBase`](PageBase.md).[`sendAccessibilityEvent`](PageBase.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`set`](PageBase.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`setAccessibilityIdentifier`](PageBase.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`setInlineStyle`](PageBase.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`setMeasuredDimension`](PageBase.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`setNativeView`](PageBase.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`setOnTouchListener`](PageBase.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`setProperty`](PageBase.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`PageBase`](PageBase.md).[`showModal`](PageBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`PageBase`](PageBase.md).[`toString`](PageBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`unbind`](PageBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`unloadView`](PageBase.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`updateStatusBarStyle`](PageBase.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`PageBase`](PageBase.md).[`addEventListener`](PageBase.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`PageBase`](PageBase.md).[`combineMeasuredStates`](PageBase.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`PageBase`](PageBase.md).[`layoutChild`](PageBase.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`PageBase`](PageBase.md).[`measureChild`](PageBase.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`PageBase`](PageBase.md).[`off`](PageBase.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`PageBase`](PageBase.md).[`on`](PageBase.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`PageBase`](PageBase.md).[`once`](PageBase.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`PageBase`](PageBase.md).[`removeEventListener`](PageBase.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`PageBase`](PageBase.md).[`resolveSizeAndState`](PageBase.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/PageBase.md' --- Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) ## Ns View ContentView ## Extends * [`ContentView`](ContentView.md) ## Extended by * [`Page`](Page.md) ## Constructors ### Constructor ```ts new PageBase(): PageBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `PageBase` #### Inherited from [`ContentView`](ContentView.md).[`constructor`](ContentView.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`ContentView`](ContentView.md).[`_androidContentDescriptionUpdated`](ContentView.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_automaticallyAdjustsScrollViewInsets`](ContentView.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`ContentView`](ContentView.md).[`_closeModalCallback`](ContentView.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_context`](ContentView.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_cssState`](ContentView.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_defaultPaddingBottom`](ContentView.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_defaultPaddingLeft`](ContentView.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_defaultPaddingRight`](ContentView.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_defaultPaddingTop`](ContentView.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_domId`](ContentView.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_ignoreFlexMinWidthHeightReset`](ContentView.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_isAddedToNativeVisualTree`](ContentView.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_isPaddingRelative`](ContentView.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_isStyleScopeHost`](ContentView.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_oldBottom`](ContentView.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_oldLeft`](ContentView.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_oldRight`](ContentView.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_oldTop`](ContentView.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_styleScope`](ContentView.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`ContentView`](ContentView.md).[`_suspendNativeUpdatesCount`](ContentView.md#suspendnativeupdatescount) *** ### accessibilityAnnouncePageEnabled ```ts accessibilityAnnouncePageEnabled: boolean; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityHidden`](ContentView.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityHint`](ContentView.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityIdentifier`](ContentView.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityIgnoresInvertColors`](ContentView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityLabel`](ContentView.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityLanguage`](ContentView.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityLiveRegion`](ContentView.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityMediaSession`](ContentView.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityRole`](ContentView.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityState`](ContentView.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityValue`](ContentView.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessible`](ContentView.md#accessible) *** ### actionBarHidden ```ts actionBarHidden: boolean; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`alignSelf`](ContentView.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`ContentView`](ContentView.md).[`android`](ContentView.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`androidDynamicElevationOffset`](ContentView.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`androidElevation`](ContentView.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`ContentView`](ContentView.md).[`androidOverflowEdge`](ContentView.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`automationText`](ContentView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`background`](ContentView.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`backgroundColor`](ContentView.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`backgroundImage`](ContentView.md#backgroundimage) *** ### backgroundSpanUnderStatusBar ```ts backgroundSpanUnderStatusBar: boolean; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`bindingContext`](ContentView.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderBottomColor`](ContentView.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderBottomLeftRadius`](ContentView.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderBottomRightRadius`](ContentView.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderBottomWidth`](ContentView.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderColor`](ContentView.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderLeftColor`](ContentView.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderLeftWidth`](ContentView.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderRadius`](ContentView.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderRightColor`](ContentView.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderRightWidth`](ContentView.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderTopColor`](ContentView.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderTopLeftRadius`](ContentView.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderTopRightRadius`](ContentView.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderTopWidth`](ContentView.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderWidth`](ContentView.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`boxShadow`](ContentView.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`className`](ContentView.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`col`](ContentView.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`color`](ContentView.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`colSpan`](ContentView.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`column`](ContentView.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`columnSpan`](ContentView.md#columnspan) *** ### content ```ts content: View; ``` Defined in: [ui/content-view/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/content-view/index.d.ts#L13) Gets or sets the single child of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`content`](ContentView.md#content) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`ContentView`](ContentView.md).[`cssClasses`](ContentView.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`ContentView`](ContentView.md).[`cssPseudoClasses`](ContentView.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`ContentView`](ContentView.md).[`cssType`](ContentView.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`defaultVisualState`](ContentView.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`direction`](ContentView.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`dock`](ContentView.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`domNode`](ContentView.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveBorderBottomWidth`](ContentView.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveBorderLeftWidth`](ContentView.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveBorderRightWidth`](ContentView.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveBorderTopWidth`](ContentView.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveHeight`](ContentView.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveLeft`](ContentView.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMarginBottom`](ContentView.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMarginLeft`](ContentView.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMarginRight`](ContentView.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMarginTop`](ContentView.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMinHeight`](ContentView.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveMinWidth`](ContentView.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveTop`](ContentView.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`effectiveWidth`](ContentView.md#effectivewidth) *** ### enableSwipeBackNavigation ```ts enableSwipeBackNavigation: boolean; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`flex`](ContentView.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`flexFlow`](ContentView.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`flexGrow`](ContentView.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`flexShrink`](ContentView.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`flexWrapBefore`](ContentView.md#flexwrapbefore) *** ### hasActionBar ```ts hasActionBar: boolean; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`height`](ContentView.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`hidden`](ContentView.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`horizontalAlignment`](ContentView.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`id`](ContentView.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`ignoreTouchAnimation`](ContentView.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`ContentView`](ContentView.md).[`ios`](ContentView.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`iosAccessibilityAdjustsFontSize`](ContentView.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`iosAccessibilityMaxFontScale`](ContentView.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`iosAccessibilityMinFontScale`](ContentView.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`iosGlassEffect`](ContentView.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`iosIgnoreSafeArea`](ContentView.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`iosOverflowSafeArea`](ContentView.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`iosOverflowSafeAreaEnabled`](ContentView.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`ContentView`](ContentView.md).[`isCollapsed`](ContentView.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`isEnabled`](ContentView.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`ContentView`](ContentView.md).[`isLayoutValid`](ContentView.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`isUserInteractionEnabled`](ContentView.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`left`](ContentView.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`margin`](ContentView.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`marginBottom`](ContentView.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`marginLeft`](ContentView.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`marginRight`](ContentView.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`marginTop`](ContentView.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`minHeight`](ContentView.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`minWidth`](ContentView.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`ContentView`](ContentView.md).[`mIsRootView`](ContentView.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`ContentView`](ContentView.md).[`modal`](ContentView.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`ContentView`](ContentView.md).[`nativeBackgroundState`](ContentView.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`ContentView`](ContentView.md).[`nativeViewProtected`](ContentView.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`opacity`](ContentView.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`order`](ContentView.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`originX`](ContentView.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`originY`](ContentView.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`ContentView`](ContentView.md).[`parent`](ContentView.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`perspective`](ContentView.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`recycleNativeView`](ContentView.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`reusable`](ContentView.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`rotate`](ContentView.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`rotateX`](ContentView.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`rotateY`](ContentView.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`row`](ContentView.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`rowSpan`](ContentView.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`scaleX`](ContentView.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`scaleY`](ContentView.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`sharedTransitionIgnore`](ContentView.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`sharedTransitionTag`](ContentView.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`statusBarStyle`](ContentView.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`testID`](ContentView.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`top`](ContentView.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`touchAnimation`](ContentView.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`touchDelay`](ContentView.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`ContentView`](ContentView.md).[`transitionId`](ContentView.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`translateX`](ContentView.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`translateY`](ContentView.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`verticalAlignment`](ContentView.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`ContentView`](ContentView.md).[`viewController`](ContentView.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`visibility`](ContentView.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`visionHoverStyle`](ContentView.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`visionIgnoreHoverStyle`](ContentView.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`width`](ContentView.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`ContentView`](ContentView.md).[`accessibilityBlurEvent`](ContentView.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`ContentView`](ContentView.md).[`accessibilityFocusChangedEvent`](ContentView.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`ContentView`](ContentView.md).[`accessibilityFocusEvent`](ContentView.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`ContentView`](ContentView.md).[`accessibilityPerformEscapeEvent`](ContentView.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`ContentView`](ContentView.md).[`androidOverflowInsetEvent`](ContentView.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`ContentView`](ContentView.md).[`createdEvent`](ContentView.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`ContentView`](ContentView.md).[`disposeNativeViewEvent`](ContentView.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`ContentView`](ContentView.md).[`layoutChangedEvent`](ContentView.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`ContentView`](ContentView.md).[`loadedEvent`](ContentView.md#loadedevent) *** ### navigatedFromEvent ```ts static navigatedFromEvent: string; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) *** ### navigatedToEvent ```ts static navigatedToEvent: string; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) *** ### navigatingFromEvent ```ts static navigatingFromEvent: string; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) *** ### navigatingToEvent ```ts static navigatingToEvent: string; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`ContentView`](ContentView.md).[`propertyChangeEvent`](ContentView.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`ContentView`](ContentView.md).[`showingModallyEvent`](ContentView.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`ContentView`](ContentView.md).[`shownModallyEvent`](ContentView.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`ContentView`](ContentView.md).[`unloadedEvent`](ContentView.md#unloadedevent) ## Accessors ### \_childrenCount #### Get Signature ```ts get _childrenCount(): number; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) ##### Returns `number` *** ### actionBar #### Get Signature ```ts get actionBar(): ActionBar; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) ##### Returns [`ActionBar`](ActionBar.md) #### Set Signature ```ts set actionBar(value: ActionBar): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`ActionBar`](ActionBar.md) | ##### Returns `void` *** ### androidStatusBarBackground #### Get Signature ```ts get androidStatusBarBackground(): Color; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) ##### Returns [`Color`](Color.md) #### Set Signature ```ts set androidStatusBarBackground(value: Color): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`Color`](Color.md) | ##### Returns `void` *** ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`backgroundPosition`](ContentView.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`backgroundRepeat`](ContentView.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`backgroundSize`](ContentView.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`class`](ContentView.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`effectivePaddingBottom`](ContentView.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`effectivePaddingLeft`](ContentView.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`effectivePaddingRight`](ContentView.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`effectivePaddingTop`](ContentView.md#effectivepaddingtop) *** ### frame #### Get Signature ```ts get frame(): Frame; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) ##### Returns [`Frame`](Frame.md) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`ContentView`](ContentView.md).[`isLoaded`](ContentView.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`nativeView`](ContentView.md#nativeview) *** ### navigationContext #### Get Signature ```ts get navigationContext(): any; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) ##### Returns `any` *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Overrides [`ContentView`](ContentView.md).[`page`](ContentView.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`parentNode`](ContentView.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`style`](ContentView.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`textTransform`](ContentView.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`ContentView`](ContentView.md).[`typeName`](ContentView.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`ContentView`](ContentView.md).[`visualState`](ContentView.md#visualstate) ## Methods ### \_addChildFromBuilder() ```ts _addChildFromBuilder(name: string, value: any): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Called for every child element declared in xml. This method will add a child element (value) to current element. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | Name of the element. | | `value` | `any` | Value of the element. | #### Returns `void` #### Overrides [`ContentView`](ContentView.md).[`_addChildFromBuilder`](ContentView.md#addchildfrombuilder) *** ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_addView`](ContentView.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_addViewCore`](ContentView.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`ContentView`](ContentView.md).[`_addViewToNativeVisualTree`](ContentView.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`ContentView`](ContentView.md).[`_applyGlassEffect`](ContentView.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`ContentView`](ContentView.md).[`_applyXmlAttribute`](ContentView.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`ContentView`](ContentView.md).[`_batchUpdate`](ContentView.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`_childIndexToNativeChildIndex`](ContentView.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`ContentView`](ContentView.md).[`_closeAllModalViewsInternal`](ContentView.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`ContentView`](ContentView.md).[`_createPropertyChangeData`](ContentView.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_dialogClosed`](ContentView.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_eachLayoutView`](ContentView.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_emit`](ContentView.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`_getNativeViewsCount`](ContentView.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`ContentView`](ContentView.md).[`_getRootModalViews`](ContentView.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`ContentView`](ContentView.md).[`_getValue`](ContentView.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`ContentView`](ContentView.md).[`_handleLivesync`](ContentView.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`ContentView`](ContentView.md).[`_hasAncestorView`](ContentView.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_hideNativeModalView`](ContentView.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_inheritStyles`](ContentView.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_inheritStyleScope`](ContentView.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_layoutParent`](ContentView.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_observe`](ContentView.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_onAttachedToWindow`](ContentView.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_onDetachedFromWindow`](ContentView.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_onRootViewReset`](ContentView.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_onSizeChanged`](ContentView.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: View): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`View`](View.md) | #### Returns `void` #### Overrides [`ContentView`](ContentView.md).[`_parentChanged`](ContentView.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_raiseLayoutChangedEvent`](ContentView.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_raiseShowingModallyEvent`](ContentView.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_raiseShownModallyEvent`](ContentView.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_removeView`](ContentView.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_removeViewCore`](ContentView.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_removeViewFromNativeVisualTree`](ContentView.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_resumeNativeUpdates`](ContentView.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_setDefaultPaddings`](ContentView.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_setupAsRootView`](ContentView.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_setupUI`](ContentView.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`ContentView`](ContentView.md).[`_setValue`](ContentView.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`ContentView`](ContentView.md).[`_shouldDelayLayout`](ContentView.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_showNativeModalView`](ContentView.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_suspendNativeUpdates`](ContentView.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_tearDownUI`](ContentView.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`_updateStyleScope`](ContentView.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`accessibilityAnnouncement`](ContentView.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(refocus?: boolean): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Announce screen changed #### Parameters | Parameter | Type | | ------ | ------ | | `refocus?` | `boolean` | #### Returns `void` #### Overrides [`ContentView`](ContentView.md).[`accessibilityScreenChanged`](ContentView.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`addEventListener`](ContentView.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`ContentView`](ContentView.md).[`addPseudoClass`](ContentView.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`ContentView`](ContentView.md).[`animate`](ContentView.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`bind`](ContentView.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`callLoaded`](ContentView.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`callUnloaded`](ContentView.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`closeModal`](ContentView.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`ContentView`](ContentView.md).[`createAnimation`](ContentView.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`ContentView`](ContentView.md).[`createNativeView`](ContentView.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`ContentView`](ContentView.md).[`deletePseudoClass`](ContentView.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`ContentView`](ContentView.md).[`destroyNode`](ContentView.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`disposeNativeView`](ContentView.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`eachChild`](ContentView.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (child: View) => boolean): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Overrides [`ContentView`](ContentView.md).[`eachChildView`](ContentView.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`ContentView`](ContentView.md).[`ensureDomNode`](ContentView.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`ContentView`](ContentView.md).[`focus`](ContentView.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`ContentView`](ContentView.md).[`get`](ContentView.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`ContentView`](ContentView.md).[`getActualSize`](ContentView.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`ContentView`](ContentView.md).[`getClosestWindow`](ContentView.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`ContentView`](ContentView.md).[`getEffectivePaddingShorthand`](ContentView.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`ContentView`](ContentView.md).[`getGestureObservers`](ContentView.md#getgestureobservers) *** ### getKeyframeAnimationWithName() ```ts getKeyframeAnimationWithName(animationName: string): KeyframeAnimationInfo; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `animationName` | `string` | #### Returns [`KeyframeAnimationInfo`](KeyframeAnimationInfo.md) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`ContentView`](ContentView.md).[`getLocationInWindow`](ContentView.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`ContentView`](ContentView.md).[`getLocationOnScreen`](ContentView.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`ContentView`](ContentView.md).[`getLocationRelativeTo`](ContentView.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`getMeasuredHeight`](ContentView.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`getMeasuredState`](ContentView.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`getMeasuredWidth`](ContentView.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`ContentView`](ContentView.md).[`getSafeAreaInsets`](ContentView.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`ContentView`](ContentView.md).[`getViewByDomId`](ContentView.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`ContentView`](ContentView.md).[`getViewById`](ContentView.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`ContentView`](ContentView.md).[`hasGestureObservers`](ContentView.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`ContentView`](ContentView.md).[`hasListeners`](ContentView.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`initNativeView`](ContentView.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`layout`](ContentView.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`layoutNativeView`](ContentView.md#layoutnativeview) *** ### layoutView() ```ts layoutView(): View; ``` Defined in: [ui/content-view/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/content-view/index.d.ts#L14) #### Returns [`View`](View.md) #### Inherited from [`ContentView`](ContentView.md).[`layoutView`](ContentView.md#layoutview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`loadView`](ContentView.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`measure`](ContentView.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`notify`](ContentView.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`notifyPropertyChange`](ContentView.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`ContentView`](ContentView.md).[`off`](ContentView.md#off) *** ### on() #### Call Signature ```ts on( eventNames: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `void` ##### Inherited from [`ContentView`](ContentView.md).[`on`](ContentView.md#on) #### Call Signature ```ts on( event: "navigatingTo", callback: (args: NavigatedData) => void, thisArg?: any): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"navigatingTo"` | | `callback` | (`args`: `NavigatedData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`ContentView`](ContentView.md).[`on`](ContentView.md#on) #### Call Signature ```ts on( event: "navigatedTo", callback: (args: NavigatedData) => void, thisArg?: any): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"navigatedTo"` | | `callback` | (`args`: `NavigatedData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`ContentView`](ContentView.md).[`on`](ContentView.md#on) #### Call Signature ```ts on( event: "navigatingFrom", callback: (args: NavigatedData) => void, thisArg?: any): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"navigatingFrom"` | | `callback` | (`args`: `NavigatedData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`ContentView`](ContentView.md).[`on`](ContentView.md#on) #### Call Signature ```ts on( event: "navigatedFrom", callback: (args: NavigatedData) => void, thisArg?: any): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"navigatedFrom"` | | `callback` | (`args`: `NavigatedData`) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`ContentView`](ContentView.md).[`on`](ContentView.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`ContentView`](ContentView.md).[`on`](ContentView.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`ContentView`](ContentView.md).[`on`](ContentView.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`ContentView`](ContentView.md).[`onBackPressed`](ContentView.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`once`](ContentView.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`onLayout`](ContentView.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`onLoaded`](ContentView.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`onMeasure`](ContentView.md#onmeasure) *** ### onNavigatedFrom() ```ts onNavigatedFrom(isBackNavigation: boolean): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `isBackNavigation` | `boolean` | #### Returns `void` *** ### onNavigatedTo() ```ts onNavigatedTo(isBackNavigation: boolean): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `isBackNavigation` | `boolean` | #### Returns `void` *** ### onNavigatingFrom() ```ts onNavigatingFrom(isBackNavigation: boolean): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `isBackNavigation` | `boolean` | #### Returns `void` *** ### onNavigatingTo() ```ts onNavigatingTo( context: any, isBackNavigation: boolean, bindingContext?: any): void; ``` Defined in: [ui/page/page-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/page/page-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `isBackNavigation` | `boolean` | | `bindingContext?` | `any` | #### Returns `void` *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`onResumeNativeUpdates`](ContentView.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`onUnloaded`](ContentView.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`removeEventListener`](ContentView.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`requestLayout`](ContentView.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`resetNativeView`](ContentView.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`ContentView`](ContentView.md).[`sendAccessibilityEvent`](ContentView.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`set`](ContentView.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`setAccessibilityIdentifier`](ContentView.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`setInlineStyle`](ContentView.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`setMeasuredDimension`](ContentView.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`setNativeView`](ContentView.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`setOnTouchListener`](ContentView.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`setProperty`](ContentView.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`ContentView`](ContentView.md).[`showModal`](ContentView.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`ContentView`](ContentView.md).[`toString`](ContentView.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`unbind`](ContentView.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`unloadView`](ContentView.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`updateStatusBarStyle`](ContentView.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`ContentView`](ContentView.md).[`addEventListener`](ContentView.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`combineMeasuredStates`](ContentView.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`ContentView`](ContentView.md).[`layoutChild`](ContentView.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`ContentView`](ContentView.md).[`measureChild`](ContentView.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ContentView`](ContentView.md).[`off`](ContentView.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`ContentView`](ContentView.md).[`on`](ContentView.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ContentView`](ContentView.md).[`once`](ContentView.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`ContentView`](ContentView.md).[`removeEventListener`](ContentView.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`ContentView`](ContentView.md).[`resolveSizeAndState`](ContentView.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/PageTransition.md' --- Defined in: [ui/transition/page-transition.d.ts:2](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/page-transition.d.ts#L2) ## Extends * [`Transition`](Transition.md) ## Constructors ### Constructor ```ts new PageTransition( duration?: number, nativeCurve?: any, pageLoadedTimeout?: number): PageTransition; ``` Defined in: [ui/transition/page-transition.d.ts:3](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/page-transition.d.ts#L3) #### Parameters | Parameter | Type | | ------ | ------ | | `duration?` | `number` | | `nativeCurve?` | `any` | | `pageLoadedTimeout?` | `number` | #### Returns `PageTransition` #### Overrides [`Transition`](Transition.md).[`constructor`](Transition.md#constructor) ## Properties ### id ```ts id: number; ``` Defined in: [ui/transition/index.d.ts:23](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L23) #### Inherited from [`Transition`](Transition.md).[`id`](Transition.md#id) *** ### interactiveController? ```ts optional interactiveController?: any; ``` Defined in: [ui/transition/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L29) #### Inherited from [`Transition`](Transition.md).[`interactiveController`](Transition.md#interactivecontroller) *** ### name? ```ts optional name?: string; ``` Defined in: [ui/transition/index.d.ts:27](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L27) (Optional) Provide a unique name to identify this transition #### Inherited from [`Transition`](Transition.md).[`name`](Transition.md#name) *** ### presented? ```ts optional presented?: any; ``` Defined in: [ui/transition/index.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L30) #### Inherited from [`Transition`](Transition.md).[`presented`](Transition.md#presented) *** ### presenting? ```ts optional presenting?: any; ``` Defined in: [ui/transition/index.d.ts:31](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L31) #### Inherited from [`Transition`](Transition.md).[`presenting`](Transition.md#presenting) *** ### sharedElements? ```ts optional sharedElements?: { independent?: SharedElementSettings & { isPresented?: boolean; }[]; presented?: SharedElementSettings[]; presenting?: SharedElementSettings[]; }; ``` Defined in: [ui/transition/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L32) #### independent? ```ts optional independent?: SharedElementSettings & { isPresented?: boolean; }[]; ``` #### presented? ```ts optional presented?: SharedElementSettings[]; ``` #### presenting? ```ts optional presenting?: SharedElementSettings[]; ``` #### Inherited from [`Transition`](Transition.md).[`sharedElements`](Transition.md#sharedelements) *** ### transitionController? ```ts optional transitionController?: any; ``` Defined in: [ui/transition/index.d.ts:28](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L28) #### Inherited from [`Transition`](Transition.md).[`transitionController`](Transition.md#transitioncontroller) *** ### AndroidTransitionType? ```ts static optional AndroidTransitionType?: { enter?: string; exit?: string; popEnter?: string; popExit?: string; }; ``` Defined in: [ui/transition/index.d.ts:38](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L38) #### enter? ```ts optional enter?: string; ``` #### exit? ```ts optional exit?: string; ``` #### popEnter? ```ts optional popEnter?: string; ``` #### popExit? ```ts optional popExit?: string; ``` #### Inherited from [`Transition`](Transition.md).[`AndroidTransitionType`](Transition.md#androidtransitiontype) ## Methods ### androidFragmentTransactionCallback()? ```ts optional androidFragmentTransactionCallback( fragmentTransaction: any, currentEntry: BackstackEntry, newEntry: BackstackEntry): void; ``` Defined in: [ui/transition/index.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L58) #### Parameters | Parameter | Type | | ------ | ------ | | `fragmentTransaction` | `any` | | `currentEntry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | | `newEntry` | [`BackstackEntry`](../interfaces/BackstackEntry.md) | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`androidFragmentTransactionCallback`](Transition.md#androidfragmenttransactioncallback) *** ### animateIOSTransition() ```ts animateIOSTransition( transitionContext: any, fromViewCtrl: any, toViewCtrl: any, operation: any): void; ``` Defined in: [ui/transition/index.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L43) #### Parameters | Parameter | Type | | ------ | ------ | | `transitionContext` | `any` | | `fromViewCtrl` | `any` | | `toViewCtrl` | `any` | | `operation` | `any` | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`animateIOSTransition`](Transition.md#animateiostransition) *** ### createAndroidAnimator() ```ts createAndroidAnimator(transitionType: string): any; ``` Defined in: [ui/transition/index.d.ts:44](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L44) #### Parameters | Parameter | Type | | ------ | ------ | | `transitionType` | `string` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`createAndroidAnimator`](Transition.md#createandroidanimator) *** ### getCurve() ```ts getCurve(): any; ``` Defined in: [ui/transition/index.d.ts:42](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L42) #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`getCurve`](Transition.md#getcurve) *** ### getDuration() ```ts getDuration(): number; ``` Defined in: [ui/transition/index.d.ts:40](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L40) #### Returns `number` #### Inherited from [`Transition`](Transition.md).[`getDuration`](Transition.md#getduration) *** ### iosDismissedController()? ```ts optional iosDismissedController(dismissed: any): any; ``` Defined in: [ui/transition/index.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L48) #### Parameters | Parameter | Type | | ------ | ------ | | `dismissed` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosDismissedController`](Transition.md#iosdismissedcontroller) *** ### iosInteractionDismiss()? ```ts optional iosInteractionDismiss(animator: any): any; ``` Defined in: [ui/transition/index.d.ts:52](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L52) #### Parameters | Parameter | Type | | ------ | ------ | | `animator` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosInteractionDismiss`](Transition.md#iosinteractiondismiss) *** ### iosInteractionPresented()? ```ts optional iosInteractionPresented(animator: any): any; ``` Defined in: [ui/transition/index.d.ts:54](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L54) #### Parameters | Parameter | Type | | ------ | ------ | | `animator` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosInteractionPresented`](Transition.md#iosinteractionpresented) *** ### iosNavigatedController()? ```ts optional iosNavigatedController( navigationController: any, operation: number, fromVC: any, toVC: any): any; ``` Defined in: [ui/transition/index.d.ts:56](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L56) #### Parameters | Parameter | Type | | ------ | ------ | | `navigationController` | `any` | | `operation` | `number` | | `fromVC` | `any` | | `toVC` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosNavigatedController`](Transition.md#iosnavigatedcontroller) *** ### iosPresentedController()? ```ts optional iosPresentedController( presented: any, presenting: any, source: any): any; ``` Defined in: [ui/transition/index.d.ts:50](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L50) #### Parameters | Parameter | Type | | ------ | ------ | | `presented` | `any` | | `presenting` | `any` | | `source` | `any` | #### Returns `any` #### Inherited from [`Transition`](Transition.md).[`iosPresentedController`](Transition.md#iospresentedcontroller) *** ### setDuration() ```ts setDuration(value: number): void; ``` Defined in: [ui/transition/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L41) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `number` | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`setDuration`](Transition.md#setduration) *** ### setupInteractiveGesture()? ```ts optional setupInteractiveGesture(startCallback: () => void, view: View): void; ``` Defined in: [ui/transition/index.d.ts:46](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/transition/index.d.ts#L46) #### Parameters | Parameter | Type | | ------ | ------ | | `startCallback` | () => `void` | | `view` | [`View`](View.md) | #### Returns `void` #### Inherited from [`Transition`](Transition.md).[`setupInteractiveGesture`](Transition.md#setupinteractivegesture) --- --- url: 'https://docs.nativescript.org/api/classes/ParserEvent.md' description: Provides information for a parser event. --- Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Provides information for a parser event. ## Constructors ### Constructor ```ts new ParserEvent( eventType: string, position: Position, prefix?: string, namespace?: string, elementName?: string, attributes?: Object, data?: string): ParserEvent; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventType` | `string` | | `position` | `Position` | | `prefix?` | `string` | | `namespace?` | `string` | | `elementName?` | `string` | | `attributes?` | `Object` | | `data?` | `string` | #### Returns `ParserEvent` ## Accessors ### attributes #### Get Signature ```ts get attributes(): Object; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Returns a JSON object with the attributes of an element in case the eventType is ParserEventType.StartElement. ##### Returns `Object` *** ### data #### Get Signature ```ts get data(): string; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Returns the relevant data in case the eventType is ParserEventType.Text, ParserEventType.CDATA or ParserEventType.Comment. ##### Returns `string` *** ### elementName #### Get Signature ```ts get elementName(): string; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Returns the name of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement. ##### Returns `string` *** ### eventType #### Get Signature ```ts get eventType(): string; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Returns the type of the parser event. This is one of the ParserEventType static members. ##### Returns `string` *** ### namespace #### Get Signature ```ts get namespace(): string; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) If namespace processing is enabled, returns the namespace of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement. ##### Returns `string` *** ### position #### Get Signature ```ts get position(): Position; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Get the position in the xml string where the event was generated. ##### Returns `Position` *** ### prefix #### Get Signature ```ts get prefix(): string; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) If namespace processing is enabled, returns the prefix of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement. ##### Returns `string` ## Methods ### toString() ```ts toString(): string; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Returns a JSON string representation of this instance. #### Returns `string` --- --- url: 'https://docs.nativescript.org/api/classes/ParserEventType.md' description: Specifies the type of parser event. --- Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Specifies the type of parser event. ## Constructors ### Constructor ```ts new ParserEventType(): ParserEventType; ``` #### Returns `ParserEventType` ## Properties ### CDATA ```ts static CDATA: string; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Specifies the CDATA event type. *** ### Comment ```ts static Comment: string; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Specifies the Comment event type. *** ### EndElement ```ts static EndElement: string; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Specifies the EndElement event type. *** ### StartElement ```ts static StartElement: string; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Specifies the StartElement event type. *** ### Text ```ts static Text: string; ``` Defined in: [xml/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/xml/index.ts) Specifies the Text event type. --- --- url: 'https://docs.nativescript.org/api/classes/Placeholder.md' description: >- Represents a Placeholder, which is used to add a native view to the visual tree. --- Defined in: [ui/placeholder/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/placeholder/index.d.ts#L11) Represents a Placeholder, which is used to add a native view to the visual tree. ## Ns View Placeholder ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new Placeholder(): Placeholder; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `Placeholder` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`View`](View.md).[`_androidContentDescriptionUpdated`](View.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_automaticallyAdjustsScrollViewInsets`](View.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`_closeModalCallback`](View.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_context`](View.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_cssState`](View.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingBottom`](View.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingLeft`](View.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingRight`](View.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingTop`](View.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_domId`](View.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_ignoreFlexMinWidthHeightReset`](View.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isAddedToNativeVisualTree`](View.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isPaddingRelative`](View.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldBottom`](View.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldLeft`](View.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldRight`](View.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldTop`](View.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_styleScope`](View.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`View`](View.md).[`_suspendNativeUpdatesCount`](View.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHidden`](View.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHint`](View.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIdentifier`](View.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLabel`](View.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLanguage`](View.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLiveRegion`](View.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityMediaSession`](View.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityRole`](View.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityState`](View.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityValue`](View.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`View`](View.md).[`accessible`](View.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`View`](View.md).[`alignSelf`](View.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`View`](View.md).[`android`](View.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidDynamicElevationOffset`](View.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidElevation`](View.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`androidOverflowEdge`](View.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`View`](View.md).[`background`](View.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundColor`](View.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundImage`](View.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`View`](View.md).[`bindingContext`](View.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomColor`](View.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomLeftRadius`](View.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomRightRadius`](View.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomWidth`](View.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderColor`](View.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftColor`](View.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftWidth`](View.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRadius`](View.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightColor`](View.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightWidth`](View.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopColor`](View.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopLeftRadius`](View.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopRightRadius`](View.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopWidth`](View.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderWidth`](View.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`View`](View.md).[`className`](View.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`col`](View.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`color`](View.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`colSpan`](View.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`column`](View.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`View`](View.md).[`columnSpan`](View.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`View`](View.md).[`cssType`](View.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`View`](View.md).[`defaultVisualState`](View.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](View.md).[`direction`](View.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`View`](View.md).[`dock`](View.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`domNode`](View.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderBottomWidth`](View.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderLeftWidth`](View.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderRightWidth`](View.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveHeight`](View.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveLeft`](View.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginBottom`](View.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginLeft`](View.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginRight`](View.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinHeight`](View.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveTop`](View.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveWidth`](View.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flex`](View.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`View`](View.md).[`flexFlow`](View.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flexGrow`](View.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`View`](View.md).[`flexShrink`](View.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`View`](View.md).[`flexWrapBefore`](View.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`View`](View.md).[`height`](View.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`View`](View.md).[`hidden`](View.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`View`](View.md).[`horizontalAlignment`](View.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`View`](View.md).[`id`](View.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`View`](View.md).[`ios`](View.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityAdjustsFontSize`](View.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMaxFontScale`](View.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`View`](View.md).[`iosGlassEffect`](View.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosIgnoreSafeArea`](View.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeArea`](View.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeAreaEnabled`](View.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`View`](View.md).[`isCollapsed`](View.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isEnabled`](View.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`View`](View.md).[`isLayoutValid`](View.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isUserInteractionEnabled`](View.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`left`](View.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`View`](View.md).[`margin`](View.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginBottom`](View.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginLeft`](View.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginRight`](View.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`View`](View.md).[`mIsRootView`](View.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`View`](View.md).[`modal`](View.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`View`](View.md).[`nativeBackgroundState`](View.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`View`](View.md).[`nativeViewProtected`](View.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`View`](View.md).[`opacity`](View.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`View`](View.md).[`order`](View.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originX`](View.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originY`](View.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`View`](View.md).[`parent`](View.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`perspective`](View.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`recycleNativeView`](View.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`View`](View.md).[`reusable`](View.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotate`](View.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateX`](View.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateY`](View.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`row`](View.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`rowSpan`](View.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleX`](View.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleY`](View.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionIgnore`](View.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionTag`](View.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`View`](View.md).[`statusBarStyle`](View.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`top`](View.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`View`](View.md).[`touchDelay`](View.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`View`](View.md).[`transitionId`](View.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateX`](View.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateY`](View.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`View`](View.md).[`verticalAlignment`](View.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`View`](View.md).[`viewController`](View.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`View`](View.md).[`visibility`](View.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionHoverStyle`](View.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionIgnoreHoverStyle`](View.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`width`](View.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`View`](View.md).[`accessibilityBlurEvent`](View.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`View`](View.md).[`accessibilityFocusChangedEvent`](View.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`View`](View.md).[`accessibilityFocusEvent`](View.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`accessibilityPerformEscapeEvent`](View.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`View`](View.md).[`createdEvent`](View.md#createdevent) *** ### creatingViewEvent ```ts static creatingViewEvent: string; ``` Defined in: [ui/placeholder/index.d.ts:17](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/placeholder/index.d.ts#L17) String value used when hooking to creatingView event. #### Ns Event creatingView *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`View`](View.md).[`disposeNativeViewEvent`](View.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`View`](View.md).[`layoutChangedEvent`](View.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`View`](View.md).[`loadedEvent`](View.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`View`](View.md).[`propertyChangeEvent`](View.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`View`](View.md).[`showingModallyEvent`](View.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`View`](View.md).[`unloadedEvent`](View.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundPosition`](View.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundRepeat`](View.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundSize`](View.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`class`](View.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingBottom`](View.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingLeft`](View.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingRight`](View.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingTop`](View.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`View`](View.md).[`isLoaded`](View.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`View`](View.md).[`nativeView`](View.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`View`](View.md).[`page`](View.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`parentNode`](View.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`style`](View.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`textTransform`](View.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`View`](View.md).[`typeName`](View.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](View.md).[`visualState`](View.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addView`](View.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addViewCore`](View.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_addViewToNativeVisualTree`](View.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`View`](View.md).[`_applyGlassEffect`](View.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`View`](View.md).[`_applyXmlAttribute`](View.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`View`](View.md).[`_batchUpdate`](View.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`_childIndexToNativeChildIndex`](View.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`View`](View.md).[`_closeAllModalViewsInternal`](View.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`View`](View.md).[`_createPropertyChangeData`](View.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_dialogClosed`](View.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_eachLayoutView`](View.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`_emit`](View.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`View`](View.md).[`_getRootModalViews`](View.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_getValue`](View.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_handleLivesync`](View.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_hasAncestorView`](View.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_hideNativeModalView`](View.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyles`](View.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyleScope`](View.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_layoutParent`](View.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_observe`](View.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onAttachedToWindow`](View.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onDetachedFromWindow`](View.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_onRootViewReset`](View.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`View`](View.md).[`_onSizeChanged`](View.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_parentChanged`](View.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseLayoutChangedEvent`](View.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShowingModallyEvent`](View.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShownModallyEvent`](View.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeView`](View.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewCore`](View.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewFromNativeVisualTree`](View.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_resumeNativeUpdates`](View.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setDefaultPaddings`](View.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupAsRootView`](View.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupUI`](View.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_setValue`](View.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`View`](View.md).[`_shouldDelayLayout`](View.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_showNativeModalView`](View.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_suspendNativeUpdates`](View.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_tearDownUI`](View.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`View`](View.md).[`_updateStyleScope`](View.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityAnnouncement`](View.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityScreenChanged`](View.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`View`](View.md).[`addPseudoClass`](View.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`View`](View.md).[`animate`](View.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`View`](View.md).[`bind`](View.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callLoaded`](View.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callUnloaded`](View.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`View`](View.md).[`closeModal`](View.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`View`](View.md).[`createAnimation`](View.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`View`](View.md).[`createNativeView`](View.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`View`](View.md).[`deletePseudoClass`](View.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`View`](View.md).[`destroyNode`](View.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`disposeNativeView`](View.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChild`](View.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChildView`](View.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`View`](View.md).[`ensureDomNode`](View.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`View`](View.md).[`focus`](View.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`View`](View.md).[`get`](View.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`View`](View.md).[`getActualSize`](View.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`View`](View.md).[`getClosestWindow`](View.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`View`](View.md).[`getEffectivePaddingShorthand`](View.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`View`](View.md).[`getGestureObservers`](View.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationInWindow`](View.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationOnScreen`](View.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationRelativeTo`](View.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredHeight`](View.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`View`](View.md).[`getSafeAreaInsets`](View.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewByDomId`](View.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewById`](View.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasGestureObservers`](View.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasListeners`](View.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`initNativeView`](View.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`layout`](View.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutNativeView`](View.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`View`](View.md).[`loadView`](View.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`View`](View.md).[`measure`](View.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`View`](View.md).[`notify`](View.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`notifyPropertyChange`](View.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`View`](View.md).[`off`](View.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/placeholder/index.d.ts:29](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/placeholder/index.d.ts#L29) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `void` ##### Overrides [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "creatingView", callback: (args: CreateViewEventData) => void, thisArg?: any): void; ``` Defined in: [ui/placeholder/index.d.ts:34](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/placeholder/index.d.ts#L34) Raised when a creatingView event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"creatingView"` | | `callback` | (`args`: [`CreateViewEventData`](../interfaces/CreateViewEventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Overrides [`View`](View.md).[`on`](View.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`View`](View.md).[`onBackPressed`](View.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`View`](View.md).[`once`](View.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`onLayout`](View.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onLoaded`](View.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`View`](View.md).[`onMeasure`](View.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onResumeNativeUpdates`](View.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onUnloaded`](View.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`View`](View.md).[`requestLayout`](View.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`resetNativeView`](View.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`View`](View.md).[`sendAccessibilityEvent`](View.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`set`](View.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setAccessibilityIdentifier`](View.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setInlineStyle`](View.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`View`](View.md).[`setMeasuredDimension`](View.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setNativeView`](View.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`View`](View.md).[`setOnTouchListener`](View.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setProperty`](View.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`View`](View.md).[`showModal`](View.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`View`](View.md).[`toString`](View.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`unbind`](View.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`View`](View.md).[`unloadView`](View.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`View`](View.md).[`updateStatusBarStyle`](View.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`View`](View.md).[`combineMeasuredStates`](View.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutChild`](View.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`View`](View.md).[`measureChild`](View.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`off`](View.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`on`](View.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`once`](View.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`resolveSizeAndState`](View.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/Progress.md' description: Represents a progress component. --- Defined in: [ui/progress/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/progress/index.d.ts#L9) Represents a progress component. ## Ns View Progress ## Extends * [`View`](View.md) ## Constructors ### Constructor ```ts new Progress(): Progress; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `Progress` #### Inherited from [`View`](View.md).[`constructor`](View.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`View`](View.md).[`_androidContentDescriptionUpdated`](View.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_automaticallyAdjustsScrollViewInsets`](View.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`_closeModalCallback`](View.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_context`](View.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_cssState`](View.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingBottom`](View.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingLeft`](View.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingRight`](View.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_defaultPaddingTop`](View.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_domId`](View.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_ignoreFlexMinWidthHeightReset`](View.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isAddedToNativeVisualTree`](View.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isPaddingRelative`](View.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_isStyleScopeHost`](View.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldBottom`](View.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldLeft`](View.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldRight`](View.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_oldTop`](View.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`_styleScope`](View.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`View`](View.md).[`_suspendNativeUpdatesCount`](View.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHidden`](View.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityHint`](View.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIdentifier`](View.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityIgnoresInvertColors`](View.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLabel`](View.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLanguage`](View.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityLiveRegion`](View.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityMediaSession`](View.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityRole`](View.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityState`](View.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`View`](View.md).[`accessibilityValue`](View.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`View`](View.md).[`accessible`](View.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`View`](View.md).[`alignSelf`](View.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/progress/index.d.ts:20](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/progress/index.d.ts#L20) 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. #### Overrides [`View`](View.md).[`android`](View.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidDynamicElevationOffset`](View.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`View`](View.md).[`androidElevation`](View.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`androidOverflowEdge`](View.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`View`](View.md).[`automationText`](View.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`View`](View.md).[`background`](View.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundColor`](View.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`View`](View.md).[`backgroundImage`](View.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`View`](View.md).[`bindingContext`](View.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomColor`](View.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomLeftRadius`](View.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomRightRadius`](View.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderBottomWidth`](View.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderColor`](View.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftColor`](View.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderLeftWidth`](View.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRadius`](View.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightColor`](View.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderRightWidth`](View.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopColor`](View.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopLeftRadius`](View.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopRightRadius`](View.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderTopWidth`](View.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`borderWidth`](View.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`View`](View.md).[`boxShadow`](View.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`View`](View.md).[`className`](View.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`col`](View.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`View`](View.md).[`color`](View.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`colSpan`](View.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`column`](View.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`View`](View.md).[`columnSpan`](View.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`View`](View.md).[`cssClasses`](View.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`View`](View.md).[`cssPseudoClasses`](View.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`View`](View.md).[`cssType`](View.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`View`](View.md).[`defaultVisualState`](View.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`View`](View.md).[`direction`](View.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`View`](View.md).[`dock`](View.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`domNode`](View.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderBottomWidth`](View.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderLeftWidth`](View.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderRightWidth`](View.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveBorderTopWidth`](View.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveHeight`](View.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveLeft`](View.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginBottom`](View.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginLeft`](View.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginRight`](View.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMarginTop`](View.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinHeight`](View.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveMinWidth`](View.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveTop`](View.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`effectiveWidth`](View.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flex`](View.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`View`](View.md).[`flexFlow`](View.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`View`](View.md).[`flexGrow`](View.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`View`](View.md).[`flexShrink`](View.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`View`](View.md).[`flexWrapBefore`](View.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`View`](View.md).[`height`](View.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`View`](View.md).[`hidden`](View.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`View`](View.md).[`horizontalAlignment`](View.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`View`](View.md).[`id`](View.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`View`](View.md).[`ignoreTouchAnimation`](View.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/progress/index.d.ts:25](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/progress/index.d.ts#L25) 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. #### Overrides [`View`](View.md).[`ios`](View.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityAdjustsFontSize`](View.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMaxFontScale`](View.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`View`](View.md).[`iosAccessibilityMinFontScale`](View.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`View`](View.md).[`iosGlassEffect`](View.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosIgnoreSafeArea`](View.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:599](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L599) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeArea`](View.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`View`](View.md).[`iosOverflowSafeAreaEnabled`](View.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`View`](View.md).[`isCollapsed`](View.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isEnabled`](View.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`View`](View.md).[`isLayoutValid`](View.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`View`](View.md).[`isUserInteractionEnabled`](View.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`left`](View.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`View`](View.md).[`margin`](View.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginBottom`](View.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginLeft`](View.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginRight`](View.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`View`](View.md).[`marginTop`](View.md#margintop) *** ### maxValue ```ts maxValue: number; ``` Defined in: [ui/progress/index.d.ts:39](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/progress/index.d.ts#L39) Gets or sets a progress max value. #### Ns Property *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minHeight`](View.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`View`](View.md).[`minWidth`](View.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`View`](View.md).[`mIsRootView`](View.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`View`](View.md).[`modal`](View.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`View`](View.md).[`nativeBackgroundState`](View.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`View`](View.md).[`nativeViewProtected`](View.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`View`](View.md).[`opacity`](View.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`View`](View.md).[`order`](View.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originX`](View.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`View`](View.md).[`originY`](View.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`View`](View.md).[`parent`](View.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`perspective`](View.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`View`](View.md).[`recycleNativeView`](View.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`View`](View.md).[`reusable`](View.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotate`](View.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateX`](View.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`View`](View.md).[`rotateY`](View.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`View`](View.md).[`row`](View.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`View`](View.md).[`rowSpan`](View.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleX`](View.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`View`](View.md).[`scaleY`](View.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionIgnore`](View.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`View`](View.md).[`sharedTransitionTag`](View.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`View`](View.md).[`statusBarStyle`](View.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`View`](View.md).[`testID`](View.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`View`](View.md).[`top`](View.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`View`](View.md).[`touchAnimation`](View.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`View`](View.md).[`touchDelay`](View.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`View`](View.md).[`transitionId`](View.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateX`](View.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`View`](View.md).[`translateY`](View.md#translatey) *** ### value ```ts value: number; ``` Defined in: [ui/progress/index.d.ts:32](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/progress/index.d.ts#L32) Gets or sets a progress current value. #### Ns Property *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`View`](View.md).[`verticalAlignment`](View.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`View`](View.md).[`viewController`](View.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`View`](View.md).[`visibility`](View.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionHoverStyle`](View.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`View`](View.md).[`visionIgnoreHoverStyle`](View.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`View`](View.md).[`width`](View.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`View`](View.md).[`accessibilityBlurEvent`](View.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`View`](View.md).[`accessibilityFocusChangedEvent`](View.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`View`](View.md).[`accessibilityFocusEvent`](View.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`View`](View.md).[`accessibilityPerformEscapeEvent`](View.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`View`](View.md).[`androidOverflowInsetEvent`](View.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`View`](View.md).[`createdEvent`](View.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`View`](View.md).[`disposeNativeViewEvent`](View.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`View`](View.md).[`layoutChangedEvent`](View.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`View`](View.md).[`loadedEvent`](View.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`View`](View.md).[`propertyChangeEvent`](View.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`View`](View.md).[`showingModallyEvent`](View.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`View`](View.md).[`shownModallyEvent`](View.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`View`](View.md).[`unloadedEvent`](View.md#unloadedevent) *** ### valueChangeEvent ```ts readonly static valueChangeEvent: "valueChange" = 'valueChange'; ``` Defined in: [ui/progress/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/progress/index.d.ts#L15) String value used when hooking to valueChange event. #### Ns Event valueChange ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundPosition`](View.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundRepeat`](View.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`backgroundSize`](View.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`View`](View.md).[`class`](View.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingBottom`](View.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingLeft`](View.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingRight`](View.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`View`](View.md).[`effectivePaddingTop`](View.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`View`](View.md).[`isLoaded`](View.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`View`](View.md).[`nativeView`](View.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`View`](View.md).[`page`](View.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`parentNode`](View.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`style`](View.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`View`](View.md).[`textTransform`](View.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`View`](View.md).[`typeName`](View.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`View`](View.md).[`visualState`](View.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addView`](View.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`View`](View.md).[`_addViewCore`](View.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_addViewToNativeVisualTree`](View.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`View`](View.md).[`_applyGlassEffect`](View.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`View`](View.md).[`_applyXmlAttribute`](View.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`View`](View.md).[`_batchUpdate`](View.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`_childIndexToNativeChildIndex`](View.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`View`](View.md).[`_closeAllModalViewsInternal`](View.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`View`](View.md).[`_createPropertyChangeData`](View.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_dialogClosed`](View.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_eachLayoutView`](View.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`_emit`](View.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`View`](View.md).[`_getNativeViewsCount`](View.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`View`](View.md).[`_getRootModalViews`](View.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_getValue`](View.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_handleLivesync`](View.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`View`](View.md).[`_hasAncestorView`](View.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`View`](View.md).[`_hideNativeModalView`](View.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyles`](View.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`View`](View.md).[`_inheritStyleScope`](View.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_layoutParent`](View.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_observe`](View.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onAttachedToWindow`](View.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`View`](View.md).[`_onDetachedFromWindow`](View.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`View`](View.md).[`_onRootViewReset`](View.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`View`](View.md).[`_onSizeChanged`](View.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_parentChanged`](View.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseLayoutChangedEvent`](View.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShowingModallyEvent`](View.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`_raiseShownModallyEvent`](View.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeView`](View.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewCore`](View.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_removeViewFromNativeVisualTree`](View.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_resumeNativeUpdates`](View.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setDefaultPaddings`](View.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupAsRootView`](View.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_setupUI`](View.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`View`](View.md).[`_setValue`](View.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`View`](View.md).[`_shouldDelayLayout`](View.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`View`](View.md).[`_showNativeModalView`](View.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`View`](View.md).[`_suspendNativeUpdates`](View.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`_tearDownUI`](View.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`View`](View.md).[`_updateStyleScope`](View.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityAnnouncement`](View.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`View`](View.md).[`accessibilityScreenChanged`](View.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`View`](View.md).[`addPseudoClass`](View.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`View`](View.md).[`animate`](View.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`View`](View.md).[`bind`](View.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callLoaded`](View.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`callUnloaded`](View.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`View`](View.md).[`closeModal`](View.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`View`](View.md).[`createAnimation`](View.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`View`](View.md).[`createNativeView`](View.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`View`](View.md).[`deletePseudoClass`](View.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`View`](View.md).[`destroyNode`](View.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`disposeNativeView`](View.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChild`](View.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`View`](View.md).[`eachChildView`](View.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`View`](View.md).[`ensureDomNode`](View.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`View`](View.md).[`focus`](View.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`View`](View.md).[`get`](View.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`View`](View.md).[`getActualSize`](View.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`View`](View.md).[`getClosestWindow`](View.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`View`](View.md).[`getEffectivePaddingShorthand`](View.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`View`](View.md).[`getGestureObservers`](View.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationInWindow`](View.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationOnScreen`](View.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`View`](View.md).[`getLocationRelativeTo`](View.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredHeight`](View.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredState`](View.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`View`](View.md).[`getMeasuredWidth`](View.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`View`](View.md).[`getSafeAreaInsets`](View.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewByDomId`](View.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`View`](View.md).[`getViewById`](View.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasGestureObservers`](View.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`View`](View.md).[`hasListeners`](View.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`initNativeView`](View.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`View`](View.md).[`layout`](View.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutNativeView`](View.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`View`](View.md).[`loadView`](View.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`View`](View.md).[`measure`](View.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`View`](View.md).[`notify`](View.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`notifyPropertyChange`](View.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`View`](View.md).[`off`](View.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`View`](View.md).[`on`](View.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`View`](View.md).[`onBackPressed`](View.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`View`](View.md).[`once`](View.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`onLayout`](View.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onLoaded`](View.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`View`](View.md).[`onMeasure`](View.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onResumeNativeUpdates`](View.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`View`](View.md).[`onUnloaded`](View.md#onunloaded) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`View`](View.md).[`requestLayout`](View.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`View`](View.md).[`resetNativeView`](View.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`View`](View.md).[`sendAccessibilityEvent`](View.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`set`](View.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setAccessibilityIdentifier`](View.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`setInlineStyle`](View.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`View`](View.md).[`setMeasuredDimension`](View.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setNativeView`](View.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`View`](View.md).[`setOnTouchListener`](View.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`View`](View.md).[`setProperty`](View.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`View`](View.md).[`showModal`](View.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`View`](View.md).[`toString`](View.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`View`](View.md).[`unbind`](View.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`View`](View.md).[`unloadView`](View.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`View`](View.md).[`updateStatusBarStyle`](View.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`addEventListener`](View.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`View`](View.md).[`combineMeasuredStates`](View.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`View`](View.md).[`layoutChild`](View.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`View`](View.md).[`measureChild`](View.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`off`](View.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`on`](View.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`once`](View.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`View`](View.md).[`removeEventListener`](View.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`View`](View.md).[`resolveSizeAndState`](View.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/Property.md' --- Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) ## Extended by * [`CoercibleProperty`](CoercibleProperty.md) * [`InheritedProperty`](InheritedProperty.md) ## Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | | `U` | ## Implements * `TypedPropertyDescriptor`<`U`> * `Property`<`T`, `U`> ## Constructors ### Constructor ```ts new Property(options: PropertyOptions): Property; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `PropertyOptions`<`T`, `U`> | #### Returns `Property`<`T`, `U`> ## Properties ### configurable ```ts configurable: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts TypedPropertyDescriptor.configurable ``` *** ### defaultValue ```ts readonly defaultValue: U; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts Property.defaultValue ``` *** ### defaultValueKey ```ts readonly defaultValueKey: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts Property.defaultValueKey ``` *** ### enumerable ```ts enumerable: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts TypedPropertyDescriptor.enumerable ``` *** ### get ```ts get: () => U; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Returns `U` #### Implementation of ```ts TypedPropertyDescriptor.get ``` *** ### getDefault ```ts readonly getDefault: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts Property.getDefault ``` *** ### isStyleProperty ```ts isStyleProperty: boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts Property.isStyleProperty ``` *** ### key ```ts readonly key: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts Property.key ``` *** ### name ```ts readonly name: string; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts Property.name ``` *** ### nativeValueChange ```ts readonly nativeValueChange: (owner: T, value: U) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `owner` | `T` | | `value` | `U` | #### Returns `void` #### Implementation of ```ts Property.nativeValueChange ``` *** ### overrideHandlers ```ts overrideHandlers: (options: PropertyOptions) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `PropertyOptions`<`T`, `U`> | #### Returns `void` #### Implementation of ```ts Property.overrideHandlers ``` *** ### set ```ts set: (value: U) => void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `U` | #### Returns `void` #### Implementation of ```ts TypedPropertyDescriptor.set ``` *** ### setNative ```ts readonly setNative: symbol; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Implementation of ```ts Property.setNative ``` ## Methods ### isSet() ```ts isSet(instance: T): boolean; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `instance` | `T` | #### Returns `boolean` #### Implementation of ```ts Property.isSet ``` *** ### register() ```ts register(cls: { prototype: T; }): void; ``` Defined in: [ui/core/properties/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/properties/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `cls` | { `prototype`: `T`; } | | `cls.prototype` | `T` | #### Returns `void` #### Implementation of ```ts Property.register ``` --- --- url: 'https://docs.nativescript.org/api/classes/ProxyViewContainer.md' description: >- Proxy view container that adds all its native children directly to the parent. To be used as a logical grouping container of views. --- Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) Proxy view container that adds all its native children directly to the parent. To be used as a logical grouping container of views. ## Ns View ProxyViewContainer ## Extends * [`LayoutBase`](LayoutBase.md) ## Constructors ### Constructor ```ts new ProxyViewContainer(): ProxyViewContainer; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) #### Returns `ProxyViewContainer` #### Overrides [`LayoutBase`](LayoutBase.md).[`constructor`](LayoutBase.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`LayoutBase`](LayoutBase.md).[`_androidContentDescriptionUpdated`](LayoutBase.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_automaticallyAdjustsScrollViewInsets`](LayoutBase.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_closeModalCallback`](LayoutBase.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_context`](LayoutBase.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_cssState`](LayoutBase.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingBottom`](LayoutBase.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingLeft`](LayoutBase.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingRight`](LayoutBase.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_defaultPaddingTop`](LayoutBase.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_domId`](LayoutBase.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_ignoreFlexMinWidthHeightReset`](LayoutBase.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isAddedToNativeVisualTree`](LayoutBase.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isPaddingRelative`](LayoutBase.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_isStyleScopeHost`](LayoutBase.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldBottom`](LayoutBase.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldLeft`](LayoutBase.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldRight`](LayoutBase.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_oldTop`](LayoutBase.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_styleScope`](LayoutBase.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_suspendNativeUpdatesCount`](LayoutBase.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityHidden`](LayoutBase.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityHint`](LayoutBase.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIdentifier`](LayoutBase.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityIgnoresInvertColors`](LayoutBase.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLabel`](LayoutBase.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLanguage`](LayoutBase.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityLiveRegion`](LayoutBase.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityMediaSession`](LayoutBase.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityRole`](LayoutBase.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityState`](LayoutBase.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityValue`](LayoutBase.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessible`](LayoutBase.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`alignSelf`](LayoutBase.md#alignself) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidDynamicElevationOffset`](LayoutBase.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidElevation`](LayoutBase.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowEdge`](LayoutBase.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`automationText`](LayoutBase.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`background`](LayoutBase.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundColor`](LayoutBase.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundImage`](LayoutBase.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`bindingContext`](LayoutBase.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomColor`](LayoutBase.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomLeftRadius`](LayoutBase.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomRightRadius`](LayoutBase.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderBottomWidth`](LayoutBase.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderColor`](LayoutBase.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderLeftColor`](LayoutBase.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderLeftWidth`](LayoutBase.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRadius`](LayoutBase.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRightColor`](LayoutBase.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderRightWidth`](LayoutBase.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopColor`](LayoutBase.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopLeftRadius`](LayoutBase.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopRightRadius`](LayoutBase.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderTopWidth`](LayoutBase.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`borderWidth`](LayoutBase.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`boxShadow`](LayoutBase.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`className`](LayoutBase.md#classname) *** ### clipToBounds ```ts clipToBounds: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L106) Gets or sets a value indicating whether to clip the content of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`clipToBounds`](LayoutBase.md#cliptobounds) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`col`](LayoutBase.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`color`](LayoutBase.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`colSpan`](LayoutBase.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`column`](LayoutBase.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`columnSpan`](LayoutBase.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssClasses`](LayoutBase.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssPseudoClasses`](LayoutBase.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`LayoutBase`](LayoutBase.md).[`cssType`](LayoutBase.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`defaultVisualState`](LayoutBase.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`direction`](LayoutBase.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`dock`](LayoutBase.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`domNode`](LayoutBase.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderBottomWidth`](LayoutBase.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderLeftWidth`](LayoutBase.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderRightWidth`](LayoutBase.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveBorderTopWidth`](LayoutBase.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveHeight`](LayoutBase.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveLeft`](LayoutBase.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginBottom`](LayoutBase.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginLeft`](LayoutBase.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginRight`](LayoutBase.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMarginTop`](LayoutBase.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinHeight`](LayoutBase.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveMinWidth`](LayoutBase.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveTop`](LayoutBase.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectiveWidth`](LayoutBase.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flex`](LayoutBase.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexFlow`](LayoutBase.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexGrow`](LayoutBase.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexShrink`](LayoutBase.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`flexWrapBefore`](LayoutBase.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`height`](LayoutBase.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`hidden`](LayoutBase.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`horizontalAlignment`](LayoutBase.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`id`](LayoutBase.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`ignoreTouchAnimation`](LayoutBase.md#ignoretouchanimation) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityAdjustsFontSize`](LayoutBase.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityMaxFontScale`](LayoutBase.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosAccessibilityMinFontScale`](LayoutBase.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosGlassEffect`](LayoutBase.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosIgnoreSafeArea`](LayoutBase.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosOverflowSafeArea`](LayoutBase.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`iosOverflowSafeAreaEnabled`](LayoutBase.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isCollapsed`](LayoutBase.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isEnabled`](LayoutBase.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`LayoutBase`](LayoutBase.md).[`isLayoutValid`](LayoutBase.md#islayoutvalid) *** ### isPassThroughParentEnabled ```ts isPassThroughParentEnabled: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L115) 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. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isPassThroughParentEnabled`](LayoutBase.md#ispassthroughparentenabled) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`isUserInteractionEnabled`](LayoutBase.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`left`](LayoutBase.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`margin`](LayoutBase.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginBottom`](LayoutBase.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginLeft`](LayoutBase.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginRight`](LayoutBase.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`marginTop`](LayoutBase.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minHeight`](LayoutBase.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`minWidth`](LayoutBase.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`LayoutBase`](LayoutBase.md).[`mIsRootView`](LayoutBase.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`LayoutBase`](LayoutBase.md).[`modal`](LayoutBase.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeBackgroundState`](LayoutBase.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeViewProtected`](LayoutBase.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`opacity`](LayoutBase.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`order`](LayoutBase.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`originX`](LayoutBase.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`originY`](LayoutBase.md#originy) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/layouts/layout-base.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L71) Gets or sets padding style property. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`padding`](LayoutBase.md#padding) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L78) Specify the bottom padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingBottom`](LayoutBase.md#paddingbottom) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L85) Specify the left padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingLeft`](LayoutBase.md#paddingleft) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L92) Specify the right padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingRight`](LayoutBase.md#paddingright) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L99) Specify the top padding of this layout. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`paddingTop`](LayoutBase.md#paddingtop) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`LayoutBase`](LayoutBase.md).[`parent`](LayoutBase.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`perspective`](LayoutBase.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`recycleNativeView`](LayoutBase.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`reusable`](LayoutBase.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotate`](LayoutBase.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotateX`](LayoutBase.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rotateY`](LayoutBase.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`row`](LayoutBase.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`rowSpan`](LayoutBase.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`scaleX`](LayoutBase.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`scaleY`](LayoutBase.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`sharedTransitionIgnore`](LayoutBase.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`sharedTransitionTag`](LayoutBase.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`statusBarStyle`](LayoutBase.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`testID`](LayoutBase.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`top`](LayoutBase.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchAnimation`](LayoutBase.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`touchDelay`](LayoutBase.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`LayoutBase`](LayoutBase.md).[`transitionId`](LayoutBase.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`translateX`](LayoutBase.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`translateY`](LayoutBase.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`verticalAlignment`](LayoutBase.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`LayoutBase`](LayoutBase.md).[`viewController`](LayoutBase.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visibility`](LayoutBase.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visionHoverStyle`](LayoutBase.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`visionIgnoreHoverStyle`](LayoutBase.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`LayoutBase`](LayoutBase.md).[`width`](LayoutBase.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityBlurEvent`](LayoutBase.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityFocusChangedEvent`](LayoutBase.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityFocusEvent`](LayoutBase.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityPerformEscapeEvent`](LayoutBase.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`LayoutBase`](LayoutBase.md).[`androidOverflowInsetEvent`](LayoutBase.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`LayoutBase`](LayoutBase.md).[`createdEvent`](LayoutBase.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`LayoutBase`](LayoutBase.md).[`disposeNativeViewEvent`](LayoutBase.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutChangedEvent`](LayoutBase.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`LayoutBase`](LayoutBase.md).[`loadedEvent`](LayoutBase.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`LayoutBase`](LayoutBase.md).[`propertyChangeEvent`](LayoutBase.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`showingModallyEvent`](LayoutBase.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`LayoutBase`](LayoutBase.md).[`shownModallyEvent`](LayoutBase.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`LayoutBase`](LayoutBase.md).[`unloadedEvent`](LayoutBase.md#unloadedevent) ## Accessors ### android #### Get Signature ```ts get android(): any; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. ##### Returns `any` Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Overrides [`LayoutBase`](LayoutBase.md).[`android`](LayoutBase.md#android) *** ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundPosition`](LayoutBase.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundRepeat`](LayoutBase.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`backgroundSize`](LayoutBase.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`class`](LayoutBase.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingBottom`](LayoutBase.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingLeft`](LayoutBase.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingRight`](LayoutBase.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`effectivePaddingTop`](LayoutBase.md#effectivepaddingtop) *** ### ios #### Get Signature ```ts get ios(): any; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. ##### Returns `any` Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Overrides [`LayoutBase`](LayoutBase.md).[`ios`](LayoutBase.md#ios) *** ### isLayoutRequested #### Get Signature ```ts get isLayoutRequested(): boolean; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) ##### Returns `boolean` *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`isLoaded`](LayoutBase.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`nativeView`](LayoutBase.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`page`](LayoutBase.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`parentNode`](LayoutBase.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`style`](LayoutBase.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`textTransform`](LayoutBase.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`typeName`](LayoutBase.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`visualState`](LayoutBase.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addView`](LayoutBase.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_addViewCore`](LayoutBase.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(child: View, atIndex?: number): boolean; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Overrides [`LayoutBase`](LayoutBase.md).[`_addViewToNativeVisualTree`](LayoutBase.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_applyGlassEffect`](LayoutBase.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`LayoutBase`](LayoutBase.md).[`_applyXmlAttribute`](LayoutBase.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_batchUpdate`](LayoutBase.md#batchupdate) *** ### \_changedLayoutProperty() ```ts _changedLayoutProperty(propName: string, value: string): void; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) Layout property changed, proxy the new value to the child view(s) #### Parameters | Parameter | Type | | ------ | ------ | | `propName` | `string` | | `value` | `string` | #### Returns `void` *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_childIndexToNativeChildIndex`](LayoutBase.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_closeAllModalViewsInternal`](LayoutBase.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`_createPropertyChangeData`](LayoutBase.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_dialogClosed`](LayoutBase.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Overrides [`LayoutBase`](LayoutBase.md).[`_eachLayoutView`](LayoutBase.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_emit`](LayoutBase.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) #### Returns `number` #### Overrides [`LayoutBase`](LayoutBase.md).[`_getNativeViewsCount`](LayoutBase.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getRootModalViews`](LayoutBase.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_getValue`](LayoutBase.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_handleLivesync`](LayoutBase.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_hasAncestorView`](LayoutBase.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_hideNativeModalView`](LayoutBase.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_inheritStyles`](LayoutBase.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_inheritStyleScope`](LayoutBase.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_layoutParent`](LayoutBase.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_observe`](LayoutBase.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onAttachedToWindow`](LayoutBase.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onDetachedFromWindow`](LayoutBase.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onRootViewReset`](LayoutBase.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_onSizeChanged`](LayoutBase.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: View): void; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`View`](View.md) | #### Returns `void` #### Overrides [`LayoutBase`](LayoutBase.md).[`_parentChanged`](LayoutBase.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseLayoutChangedEvent`](LayoutBase.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseShowingModallyEvent`](LayoutBase.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_raiseShownModallyEvent`](LayoutBase.md#raiseshownmodallyevent) *** ### \_registerLayoutChild() ```ts _registerLayoutChild(child: View): void; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Overrides [`LayoutBase`](LayoutBase.md).[`_registerLayoutChild`](LayoutBase.md#registerlayoutchild) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeView`](LayoutBase.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_removeViewCore`](LayoutBase.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(child: View): void; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Overrides [`LayoutBase`](LayoutBase.md).[`_removeViewFromNativeVisualTree`](LayoutBase.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_resumeNativeUpdates`](LayoutBase.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setDefaultPaddings`](LayoutBase.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setupAsRootView`](LayoutBase.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Overrides [`LayoutBase`](LayoutBase.md).[`_setupUI`](LayoutBase.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_setValue`](LayoutBase.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_shouldDelayLayout`](LayoutBase.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_showNativeModalView`](LayoutBase.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_suspendNativeUpdates`](LayoutBase.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Overrides [`LayoutBase`](LayoutBase.md).[`_tearDownUI`](LayoutBase.md#teardownui) *** ### \_unregisterLayoutChild() ```ts _unregisterLayoutChild(child: View): void; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Overrides [`LayoutBase`](LayoutBase.md).[`_unregisterLayoutChild`](LayoutBase.md#unregisterlayoutchild) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`_updateStyleScope`](LayoutBase.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityAnnouncement`](LayoutBase.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`accessibilityScreenChanged`](LayoutBase.md#accessibilityscreenchanged) *** ### addChild() ```ts addChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L30) Adds the view to children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to be added to the end of the children array. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`addChild`](LayoutBase.md#addchild) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`addEventListener`](LayoutBase.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`LayoutBase`](LayoutBase.md).[`addPseudoClass`](LayoutBase.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`animate`](LayoutBase.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`bind`](LayoutBase.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`callLoaded`](LayoutBase.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`callUnloaded`](LayoutBase.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`closeModal`](LayoutBase.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`createAnimation`](LayoutBase.md#createanimation) *** ### createNativeView() ```ts createNativeView(): any; ``` Defined in: [ui/proxy-view-container/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/proxy-view-container/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `any` #### Overrides [`LayoutBase`](LayoutBase.md).[`createNativeView`](LayoutBase.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`LayoutBase`](LayoutBase.md).[`deletePseudoClass`](LayoutBase.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`LayoutBase`](LayoutBase.md).[`destroyNode`](LayoutBase.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`disposeNativeView`](LayoutBase.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachChild`](LayoutBase.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachChildView`](LayoutBase.md#eachchildview) *** ### eachLayoutChild() ```ts eachLayoutChild(callback: (child: View, isLast: boolean) => void): void; ``` Defined in: [ui/layouts/layout-base.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L64) Calls the callback for each child that should be laid out. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md), `isLast`: `boolean`) => `void` | The callback | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`eachLayoutChild`](LayoutBase.md#eachlayoutchild) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`LayoutBase`](LayoutBase.md).[`ensureDomNode`](LayoutBase.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`focus`](LayoutBase.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`get`](LayoutBase.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getActualSize`](LayoutBase.md#getactualsize) *** ### getChildAt() ```ts getChildAt(index: number): View; ``` Defined in: [ui/layouts/layout-base.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L18) Returns the view at the specified position. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | The position at which to get the child from. | #### Returns [`View`](View.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildAt`](LayoutBase.md#getchildat) *** ### getChildIndex() ```ts getChildIndex(child: View): number; ``` Defined in: [ui/layouts/layout-base.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L24) Returns the position of the child view #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | The child view that we are looking for. | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildIndex`](LayoutBase.md#getchildindex) *** ### getChildrenCount() ```ts getChildrenCount(): number; ``` Defined in: [ui/layouts/layout-base.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L12) Returns the number of children in this Layout. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getChildrenCount`](LayoutBase.md#getchildrencount) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getClosestWindow`](LayoutBase.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getEffectivePaddingShorthand`](LayoutBase.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`LayoutBase`](LayoutBase.md).[`getGestureObservers`](LayoutBase.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationInWindow`](LayoutBase.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationOnScreen`](LayoutBase.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getLocationRelativeTo`](LayoutBase.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredHeight`](LayoutBase.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredState`](LayoutBase.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getMeasuredWidth`](LayoutBase.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getSafeAreaInsets`](LayoutBase.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getViewByDomId`](LayoutBase.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`LayoutBase`](LayoutBase.md).[`getViewById`](LayoutBase.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`hasGestureObservers`](LayoutBase.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`hasListeners`](LayoutBase.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`initNativeView`](LayoutBase.md#initnativeview) *** ### insertChild() ```ts insertChild(child: View, atIndex: number): boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L37) Inserts the view to children array at the specified index. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | - | | `atIndex` | `number` | The insertion index. | #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`insertChild`](LayoutBase.md#insertchild) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layout`](LayoutBase.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutNativeView`](LayoutBase.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`loadView`](LayoutBase.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`measure`](LayoutBase.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`notify`](LayoutBase.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`notifyPropertyChange`](LayoutBase.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`LayoutBase`](LayoutBase.md).[`off`](LayoutBase.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onBackPressed`](LayoutBase.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`once`](LayoutBase.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onLayout`](LayoutBase.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onLoaded`](LayoutBase.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onMeasure`](LayoutBase.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onResumeNativeUpdates`](LayoutBase.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`onUnloaded`](LayoutBase.md#onunloaded) *** ### removeChild() ```ts removeChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L43) Removes the specified view from the children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to remove from the children array. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeChild`](LayoutBase.md#removechild) *** ### removeChildren() ```ts removeChildren(): void; ``` Defined in: [ui/layouts/layout-base.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L48) Removes all views in this layout. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeChildren`](LayoutBase.md#removechildren) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeEventListener`](LayoutBase.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`requestLayout`](LayoutBase.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`resetNativeView`](LayoutBase.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`LayoutBase`](LayoutBase.md).[`sendAccessibilityEvent`](LayoutBase.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`set`](LayoutBase.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setAccessibilityIdentifier`](LayoutBase.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setInlineStyle`](LayoutBase.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setMeasuredDimension`](LayoutBase.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setNativeView`](LayoutBase.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setOnTouchListener`](LayoutBase.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`setProperty`](LayoutBase.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`LayoutBase`](LayoutBase.md).[`showModal`](LayoutBase.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`LayoutBase`](LayoutBase.md).[`toString`](LayoutBase.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`unbind`](LayoutBase.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`unloadView`](LayoutBase.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`updateStatusBarStyle`](LayoutBase.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`addEventListener`](LayoutBase.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`combineMeasuredStates`](LayoutBase.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`LayoutBase`](LayoutBase.md).[`layoutChild`](LayoutBase.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`LayoutBase`](LayoutBase.md).[`measureChild`](LayoutBase.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`off`](LayoutBase.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`on`](LayoutBase.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`once`](LayoutBase.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`LayoutBase`](LayoutBase.md).[`removeEventListener`](LayoutBase.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`LayoutBase`](LayoutBase.md).[`resolveSizeAndState`](LayoutBase.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/Repeater.md' description: Represents a UI Repeater component. --- Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) Represents a UI Repeater component. ## Ns View Repeater ## Extends * [`CustomLayoutView`](CustomLayoutView.md) ## Constructors ### Constructor ```ts new Repeater(): Repeater; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) #### Returns `Repeater` #### Overrides [`CustomLayoutView`](CustomLayoutView.md).[`constructor`](CustomLayoutView.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_androidContentDescriptionUpdated`](CustomLayoutView.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_automaticallyAdjustsScrollViewInsets`](CustomLayoutView.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_closeModalCallback`](CustomLayoutView.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_context`](CustomLayoutView.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_cssState`](CustomLayoutView.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingBottom`](CustomLayoutView.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingLeft`](CustomLayoutView.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingRight`](CustomLayoutView.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_defaultPaddingTop`](CustomLayoutView.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_domId`](CustomLayoutView.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_ignoreFlexMinWidthHeightReset`](CustomLayoutView.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isAddedToNativeVisualTree`](CustomLayoutView.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isPaddingRelative`](CustomLayoutView.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_isStyleScopeHost`](CustomLayoutView.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldBottom`](CustomLayoutView.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldLeft`](CustomLayoutView.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldRight`](CustomLayoutView.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_oldTop`](CustomLayoutView.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_styleScope`](CustomLayoutView.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_suspendNativeUpdatesCount`](CustomLayoutView.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityHidden`](CustomLayoutView.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityHint`](CustomLayoutView.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityIdentifier`](CustomLayoutView.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityIgnoresInvertColors`](CustomLayoutView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityLabel`](CustomLayoutView.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityLanguage`](CustomLayoutView.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityLiveRegion`](CustomLayoutView.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityMediaSession`](CustomLayoutView.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityRole`](CustomLayoutView.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityState`](CustomLayoutView.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityValue`](CustomLayoutView.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessible`](CustomLayoutView.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`alignSelf`](CustomLayoutView.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Overrides [`CustomLayoutView`](CustomLayoutView.md).[`android`](CustomLayoutView.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidDynamicElevationOffset`](CustomLayoutView.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidElevation`](CustomLayoutView.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidOverflowEdge`](CustomLayoutView.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`automationText`](CustomLayoutView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`background`](CustomLayoutView.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundColor`](CustomLayoutView.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundImage`](CustomLayoutView.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`bindingContext`](CustomLayoutView.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomColor`](CustomLayoutView.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomLeftRadius`](CustomLayoutView.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomRightRadius`](CustomLayoutView.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderBottomWidth`](CustomLayoutView.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderColor`](CustomLayoutView.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderLeftColor`](CustomLayoutView.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderLeftWidth`](CustomLayoutView.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderRadius`](CustomLayoutView.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderRightColor`](CustomLayoutView.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderRightWidth`](CustomLayoutView.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopColor`](CustomLayoutView.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopLeftRadius`](CustomLayoutView.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopRightRadius`](CustomLayoutView.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderTopWidth`](CustomLayoutView.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`borderWidth`](CustomLayoutView.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`boxShadow`](CustomLayoutView.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`className`](CustomLayoutView.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`col`](CustomLayoutView.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`color`](CustomLayoutView.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`colSpan`](CustomLayoutView.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`column`](CustomLayoutView.md#column) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`columnSpan`](CustomLayoutView.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssClasses`](CustomLayoutView.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssPseudoClasses`](CustomLayoutView.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`cssType`](CustomLayoutView.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`defaultVisualState`](CustomLayoutView.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`direction`](CustomLayoutView.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`dock`](CustomLayoutView.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`domNode`](CustomLayoutView.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderBottomWidth`](CustomLayoutView.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderLeftWidth`](CustomLayoutView.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderRightWidth`](CustomLayoutView.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveBorderTopWidth`](CustomLayoutView.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveHeight`](CustomLayoutView.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveLeft`](CustomLayoutView.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginBottom`](CustomLayoutView.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginLeft`](CustomLayoutView.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginRight`](CustomLayoutView.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMarginTop`](CustomLayoutView.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMinHeight`](CustomLayoutView.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveMinWidth`](CustomLayoutView.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveTop`](CustomLayoutView.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectiveWidth`](CustomLayoutView.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flex`](CustomLayoutView.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexFlow`](CustomLayoutView.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexGrow`](CustomLayoutView.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexShrink`](CustomLayoutView.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`flexWrapBefore`](CustomLayoutView.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`height`](CustomLayoutView.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`hidden`](CustomLayoutView.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`horizontalAlignment`](CustomLayoutView.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`id`](CustomLayoutView.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`ignoreTouchAnimation`](CustomLayoutView.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Overrides [`CustomLayoutView`](CustomLayoutView.md).[`ios`](CustomLayoutView.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosAccessibilityAdjustsFontSize`](CustomLayoutView.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosAccessibilityMaxFontScale`](CustomLayoutView.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosAccessibilityMinFontScale`](CustomLayoutView.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosGlassEffect`](CustomLayoutView.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosIgnoreSafeArea`](CustomLayoutView.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosOverflowSafeArea`](CustomLayoutView.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`iosOverflowSafeAreaEnabled`](CustomLayoutView.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isCollapsed`](CustomLayoutView.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isEnabled`](CustomLayoutView.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isLayoutValid`](CustomLayoutView.md#islayoutvalid) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isUserInteractionEnabled`](CustomLayoutView.md#isuserinteractionenabled) *** ### items ```ts items: any[] | ItemsSource; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) Gets or set the items collection of the Repeater. The items property can be set to an array or an object defining length and getItem(index) method. *** ### itemsLayout ```ts itemsLayout: LayoutBase; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) Gets or set the items layout of the Repeater. Default value is StackLayout with orientation="vertical". *** ### itemTemplate ```ts itemTemplate: string | Template; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) Gets or set the item template of the Repeater. *** ### itemTemplates ```ts itemTemplates: string | KeyedTemplate[]; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) Gets or set the item templates of the Repeater. *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`left`](CustomLayoutView.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`margin`](CustomLayoutView.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginBottom`](CustomLayoutView.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginLeft`](CustomLayoutView.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginRight`](CustomLayoutView.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`marginTop`](CustomLayoutView.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`minHeight`](CustomLayoutView.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`minWidth`](CustomLayoutView.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`mIsRootView`](CustomLayoutView.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`modal`](CustomLayoutView.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`nativeBackgroundState`](CustomLayoutView.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`nativeViewProtected`](CustomLayoutView.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`opacity`](CustomLayoutView.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`order`](CustomLayoutView.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`originX`](CustomLayoutView.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`originY`](CustomLayoutView.md#originy) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`parent`](CustomLayoutView.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`perspective`](CustomLayoutView.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`recycleNativeView`](CustomLayoutView.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`reusable`](CustomLayoutView.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rotate`](CustomLayoutView.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rotateX`](CustomLayoutView.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rotateY`](CustomLayoutView.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`row`](CustomLayoutView.md#row) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`rowSpan`](CustomLayoutView.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`scaleX`](CustomLayoutView.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`scaleY`](CustomLayoutView.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`sharedTransitionIgnore`](CustomLayoutView.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`sharedTransitionTag`](CustomLayoutView.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`statusBarStyle`](CustomLayoutView.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`testID`](CustomLayoutView.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`top`](CustomLayoutView.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`touchAnimation`](CustomLayoutView.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`touchDelay`](CustomLayoutView.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`transitionId`](CustomLayoutView.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`translateX`](CustomLayoutView.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`translateY`](CustomLayoutView.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`verticalAlignment`](CustomLayoutView.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`viewController`](CustomLayoutView.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visibility`](CustomLayoutView.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visionHoverStyle`](CustomLayoutView.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visionIgnoreHoverStyle`](CustomLayoutView.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`width`](CustomLayoutView.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityBlurEvent`](CustomLayoutView.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityFocusChangedEvent`](CustomLayoutView.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityFocusEvent`](CustomLayoutView.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityPerformEscapeEvent`](CustomLayoutView.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`androidOverflowInsetEvent`](CustomLayoutView.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`createdEvent`](CustomLayoutView.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`disposeNativeViewEvent`](CustomLayoutView.md#disposenativeviewevent) *** ### knownFunctions ```ts static knownFunctions: string[]; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layoutChangedEvent`](CustomLayoutView.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`loadedEvent`](CustomLayoutView.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`propertyChangeEvent`](CustomLayoutView.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`showingModallyEvent`](CustomLayoutView.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`shownModallyEvent`](CustomLayoutView.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`unloadedEvent`](CustomLayoutView.md#unloadedevent) ## Accessors ### \_childrenCount #### Get Signature ```ts get _childrenCount(): number; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) ##### Returns `number` *** ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundPosition`](CustomLayoutView.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundRepeat`](CustomLayoutView.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`backgroundSize`](CustomLayoutView.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`class`](CustomLayoutView.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingBottom`](CustomLayoutView.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingLeft`](CustomLayoutView.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingRight`](CustomLayoutView.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`effectivePaddingTop`](CustomLayoutView.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`isLoaded`](CustomLayoutView.md#isloaded) *** ### itemTemplateSelector #### Get Signature ```ts get itemTemplateSelector(): | string | ((item: any, index: number, items: any) => string); ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) ##### Returns | `string` | ((`item`: `any`, `index`: `number`, `items`: `any`) => `string`) #### Set Signature ```ts set itemTemplateSelector(value: | string | ((item: any, index: number, items: any) => string)): void; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | | `string` | ((`item`: `any`, `index`: `number`, `items`: `any`) => `string`) | ##### Returns `void` *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`nativeView`](CustomLayoutView.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`page`](CustomLayoutView.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`parentNode`](CustomLayoutView.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`style`](CustomLayoutView.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`textTransform`](CustomLayoutView.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`typeName`](CustomLayoutView.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`visualState`](CustomLayoutView.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_addView`](CustomLayoutView.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_addViewCore`](CustomLayoutView.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_addViewToNativeVisualTree`](CustomLayoutView.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_applyGlassEffect`](CustomLayoutView.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_applyXmlAttribute`](CustomLayoutView.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_batchUpdate`](CustomLayoutView.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_childIndexToNativeChildIndex`](CustomLayoutView.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_closeAllModalViewsInternal`](CustomLayoutView.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_createPropertyChangeData`](CustomLayoutView.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_dialogClosed`](CustomLayoutView.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_eachLayoutView`](CustomLayoutView.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_emit`](CustomLayoutView.md#emit) *** ### \_getDefaultItemContent() ```ts _getDefaultItemContent(index: number): View; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index` | `number` | #### Returns [`View`](View.md) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getNativeViewsCount`](CustomLayoutView.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getRootModalViews`](CustomLayoutView.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_getValue`](CustomLayoutView.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_handleLivesync`](CustomLayoutView.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_hasAncestorView`](CustomLayoutView.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_hideNativeModalView`](CustomLayoutView.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_inheritStyles`](CustomLayoutView.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_inheritStyleScope`](CustomLayoutView.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_layoutParent`](CustomLayoutView.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_observe`](CustomLayoutView.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onAttachedToWindow`](CustomLayoutView.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onDetachedFromWindow`](CustomLayoutView.md#ondetachedfromwindow) *** ### \_onItemsChanged() ```ts _onItemsChanged(data: ChangedData): void; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `data` | [`ChangedData`](../interfaces/ChangedData.md)<`any`> | #### Returns `void` *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onRootViewReset`](CustomLayoutView.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_onSizeChanged`](CustomLayoutView.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_parentChanged`](CustomLayoutView.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_raiseLayoutChangedEvent`](CustomLayoutView.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_raiseShowingModallyEvent`](CustomLayoutView.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_raiseShownModallyEvent`](CustomLayoutView.md#raiseshownmodallyevent) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_removeView`](CustomLayoutView.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_removeViewCore`](CustomLayoutView.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_removeViewFromNativeVisualTree`](CustomLayoutView.md#removeviewfromnativevisualtree) *** ### \_requestRefresh() ```ts _requestRefresh(): void; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) #### Returns `void` *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_resumeNativeUpdates`](CustomLayoutView.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setDefaultPaddings`](CustomLayoutView.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setupAsRootView`](CustomLayoutView.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setupUI`](CustomLayoutView.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_setValue`](CustomLayoutView.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_shouldDelayLayout`](CustomLayoutView.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_showNativeModalView`](CustomLayoutView.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_suspendNativeUpdates`](CustomLayoutView.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_tearDownUI`](CustomLayoutView.md#teardownui) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`_updateStyleScope`](CustomLayoutView.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityAnnouncement`](CustomLayoutView.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`accessibilityScreenChanged`](CustomLayoutView.md#accessibilityscreenchanged) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`addEventListener`](CustomLayoutView.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`addPseudoClass`](CustomLayoutView.md#addpseudoclass) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`animate`](CustomLayoutView.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`bind`](CustomLayoutView.md#bind) *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`callLoaded`](CustomLayoutView.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`callUnloaded`](CustomLayoutView.md#callunloaded) *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`closeModal`](CustomLayoutView.md#closemodal) *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`createAnimation`](CustomLayoutView.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`createNativeView`](CustomLayoutView.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`deletePseudoClass`](CustomLayoutView.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`destroyNode`](CustomLayoutView.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`disposeNativeView`](CustomLayoutView.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`eachChild`](CustomLayoutView.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (child: View) => boolean): void; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Overrides [`CustomLayoutView`](CustomLayoutView.md).[`eachChildView`](CustomLayoutView.md#eachchildview) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`ensureDomNode`](CustomLayoutView.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`focus`](CustomLayoutView.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`get`](CustomLayoutView.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getActualSize`](CustomLayoutView.md#getactualsize) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getClosestWindow`](CustomLayoutView.md#getclosestwindow) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getEffectivePaddingShorthand`](CustomLayoutView.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getGestureObservers`](CustomLayoutView.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getLocationInWindow`](CustomLayoutView.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getLocationOnScreen`](CustomLayoutView.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getLocationRelativeTo`](CustomLayoutView.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredHeight`](CustomLayoutView.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredState`](CustomLayoutView.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getMeasuredWidth`](CustomLayoutView.md#getmeasuredwidth) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getSafeAreaInsets`](CustomLayoutView.md#getsafeareainsets) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getViewByDomId`](CustomLayoutView.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`getViewById`](CustomLayoutView.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`hasGestureObservers`](CustomLayoutView.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`hasListeners`](CustomLayoutView.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`initNativeView`](CustomLayoutView.md#initnativeview) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layout`](CustomLayoutView.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layoutNativeView`](CustomLayoutView.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`loadView`](CustomLayoutView.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`measure`](CustomLayoutView.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`notify`](CustomLayoutView.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`notifyPropertyChange`](CustomLayoutView.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`off`](CustomLayoutView.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onBackPressed`](CustomLayoutView.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`once`](CustomLayoutView.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Overrides [`CustomLayoutView`](CustomLayoutView.md).[`onLayout`](CustomLayoutView.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) #### Returns `void` #### Overrides [`CustomLayoutView`](CustomLayoutView.md).[`onLoaded`](CustomLayoutView.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Overrides [`CustomLayoutView`](CustomLayoutView.md).[`onMeasure`](CustomLayoutView.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onResumeNativeUpdates`](CustomLayoutView.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`onUnloaded`](CustomLayoutView.md#onunloaded) *** ### refresh() ```ts refresh(): void; ``` Defined in: [ui/repeater/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/repeater/index.ts) Forces the Repeater to reload all its items. #### Returns `void` *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`removeEventListener`](CustomLayoutView.md#removeeventlistener) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`requestLayout`](CustomLayoutView.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`resetNativeView`](CustomLayoutView.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`sendAccessibilityEvent`](CustomLayoutView.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`set`](CustomLayoutView.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setAccessibilityIdentifier`](CustomLayoutView.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setInlineStyle`](CustomLayoutView.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setMeasuredDimension`](CustomLayoutView.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setNativeView`](CustomLayoutView.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setOnTouchListener`](CustomLayoutView.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`setProperty`](CustomLayoutView.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`showModal`](CustomLayoutView.md#showmodal) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`toString`](CustomLayoutView.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`unbind`](CustomLayoutView.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`unloadView`](CustomLayoutView.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`updateStatusBarStyle`](CustomLayoutView.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`addEventListener`](CustomLayoutView.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`combineMeasuredStates`](CustomLayoutView.md#combinemeasuredstates) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`layoutChild`](CustomLayoutView.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`measureChild`](CustomLayoutView.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`off`](CustomLayoutView.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`on`](CustomLayoutView.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`once`](CustomLayoutView.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`removeEventListener`](CustomLayoutView.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`CustomLayoutView`](CustomLayoutView.md).[`resolveSizeAndState`](CustomLayoutView.md#resolvesizeandstate) --- --- url: 'https://docs.nativescript.org/api/classes/RootLayout.md' --- Defined in: [ui/layouts/root-layout/index.d.ts:7](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/root-layout/index.d.ts#L7) ## Ns View RootLayout ## Extends * [`GridLayout`](GridLayout.md) ## Constructors ### Constructor ```ts new RootLayout(): RootLayout; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `RootLayout` #### Inherited from [`GridLayout`](GridLayout.md).[`constructor`](GridLayout.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`GridLayout`](GridLayout.md).[`_androidContentDescriptionUpdated`](GridLayout.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_automaticallyAdjustsScrollViewInsets`](GridLayout.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_closeModalCallback`](GridLayout.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_context`](GridLayout.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_cssState`](GridLayout.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_defaultPaddingBottom`](GridLayout.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_defaultPaddingLeft`](GridLayout.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_defaultPaddingRight`](GridLayout.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_defaultPaddingTop`](GridLayout.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_domId`](GridLayout.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_ignoreFlexMinWidthHeightReset`](GridLayout.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_isAddedToNativeVisualTree`](GridLayout.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_isPaddingRelative`](GridLayout.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_isStyleScopeHost`](GridLayout.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_oldBottom`](GridLayout.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_oldLeft`](GridLayout.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_oldRight`](GridLayout.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_oldTop`](GridLayout.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`_styleScope`](GridLayout.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`GridLayout`](GridLayout.md).[`_suspendNativeUpdatesCount`](GridLayout.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityHidden`](GridLayout.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityHint`](GridLayout.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityIdentifier`](GridLayout.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityIgnoresInvertColors`](GridLayout.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityLabel`](GridLayout.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityLanguage`](GridLayout.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityLiveRegion`](GridLayout.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityMediaSession`](GridLayout.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityRole`](GridLayout.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityState`](GridLayout.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityValue`](GridLayout.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`accessible`](GridLayout.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`alignSelf`](GridLayout.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`GridLayout`](GridLayout.md).[`android`](GridLayout.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`androidDynamicElevationOffset`](GridLayout.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`androidElevation`](GridLayout.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`androidOverflowEdge`](GridLayout.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`automationText`](GridLayout.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`background`](GridLayout.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`backgroundColor`](GridLayout.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`backgroundImage`](GridLayout.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`bindingContext`](GridLayout.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderBottomColor`](GridLayout.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderBottomLeftRadius`](GridLayout.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderBottomRightRadius`](GridLayout.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderBottomWidth`](GridLayout.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderColor`](GridLayout.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderLeftColor`](GridLayout.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderLeftWidth`](GridLayout.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderRadius`](GridLayout.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderRightColor`](GridLayout.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderRightWidth`](GridLayout.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderTopColor`](GridLayout.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderTopLeftRadius`](GridLayout.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderTopRightRadius`](GridLayout.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderTopWidth`](GridLayout.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`borderWidth`](GridLayout.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`boxShadow`](GridLayout.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`className`](GridLayout.md#classname) *** ### clipToBounds ```ts clipToBounds: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:106](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L106) Gets or sets a value indicating whether to clip the content of this layout. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`clipToBounds`](GridLayout.md#cliptobounds) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`col`](GridLayout.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`color`](GridLayout.md#color) *** ### colSpan ```ts colSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of columns for the element to span across. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`colSpan`](GridLayout.md#colspan) *** ### column ```ts column: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`column`](GridLayout.md#column) *** ### columns ```ts columns: string; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:67](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L67) A string value representing column widths delimited with commas. Valid values: an absolute number, auto, or \*: #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`columns`](GridLayout.md#columns) *** ### columnSpan ```ts columnSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`columnSpan`](GridLayout.md#columnspan) *** ### cssClasses ```ts cssClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:685](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L685) #### Inherited from [`GridLayout`](GridLayout.md).[`cssClasses`](GridLayout.md#cssclasses) *** ### cssPseudoClasses ```ts cssPseudoClasses: Set; ``` Defined in: [ui/core/view/index.d.ts:686](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L686) #### Inherited from [`GridLayout`](GridLayout.md).[`cssPseudoClasses`](GridLayout.md#csspseudoclasses) *** ### cssType ```ts cssType: string; ``` Defined in: [ui/core/view/index.d.ts:667](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L667) Gets the CSS fully qualified type name. Using this as element type should allow for PascalCase and kebap-case selectors, when fully qualified, to match the element. #### Inherited from [`GridLayout`](GridLayout.md).[`cssType`](GridLayout.md#csstype) *** ### defaultVisualState ```ts defaultVisualState: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Default visual state, defaults to 'normal' #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`defaultVisualState`](GridLayout.md#defaultvisualstate) *** ### direction ```ts direction: LayoutDirectionType; ``` Defined in: [ui/core/view/index.d.ts:403](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L403) Gets or sets the layout direction of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`direction`](GridLayout.md#direction) *** ### dock ```ts dock: "left" | "right" | "top" | "bottom"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Dock position of the view within its parent. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`dock`](GridLayout.md#dock) *** ### domNode ```ts domNode: DOMNode; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`domNode`](GridLayout.md#domnode) *** ### effectiveBorderBottomWidth ```ts effectiveBorderBottomWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveBorderBottomWidth`](GridLayout.md#effectiveborderbottomwidth) *** ### effectiveBorderLeftWidth ```ts effectiveBorderLeftWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveBorderLeftWidth`](GridLayout.md#effectiveborderleftwidth) *** ### effectiveBorderRightWidth ```ts effectiveBorderRightWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveBorderRightWidth`](GridLayout.md#effectiveborderrightwidth) *** ### effectiveBorderTopWidth ```ts effectiveBorderTopWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveBorderTopWidth`](GridLayout.md#effectivebordertopwidth) *** ### effectiveHeight ```ts effectiveHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveHeight`](GridLayout.md#effectiveheight) *** ### effectiveLeft ```ts effectiveLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveLeft`](GridLayout.md#effectiveleft) *** ### effectiveMarginBottom ```ts effectiveMarginBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveMarginBottom`](GridLayout.md#effectivemarginbottom) *** ### effectiveMarginLeft ```ts effectiveMarginLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveMarginLeft`](GridLayout.md#effectivemarginleft) *** ### effectiveMarginRight ```ts effectiveMarginRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveMarginRight`](GridLayout.md#effectivemarginright) *** ### effectiveMarginTop ```ts effectiveMarginTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveMarginTop`](GridLayout.md#effectivemargintop) *** ### effectiveMinHeight ```ts effectiveMinHeight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveMinHeight`](GridLayout.md#effectiveminheight) *** ### effectiveMinWidth ```ts effectiveMinWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveMinWidth`](GridLayout.md#effectiveminwidth) *** ### effectiveTop ```ts effectiveTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveTop`](GridLayout.md#effectivetop) *** ### effectiveWidth ```ts effectiveWidth: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`effectiveWidth`](GridLayout.md#effectivewidth) *** ### flex ```ts flex: Flex; ``` Defined in: [ui/core/view/index.d.ts:578](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L578) The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`flex`](GridLayout.md#flex) *** ### flexFlow ```ts flexFlow: FlexFlow; ``` Defined in: [ui/core/view/index.d.ts:573](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L573) The flex-flow Shorthand property specifies the direction of a flex container, as well as its wrapping behavior. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`flexFlow`](GridLayout.md#flexflow) *** ### flexGrow ```ts flexGrow: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`flexGrow`](GridLayout.md#flexgrow) *** ### flexShrink ```ts flexShrink: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`flexShrink`](GridLayout.md#flexshrink) *** ### flexWrapBefore ```ts flexWrapBefore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When true, forces the item to wrap onto a new line. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`flexWrapBefore`](GridLayout.md#flexwrapbefore) *** ### height ```ts height: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:431](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L431) Gets or sets the desired height of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`height`](GridLayout.md#height) *** ### hidden ```ts hidden: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the visual state of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`hidden`](GridLayout.md#hidden) *** ### horizontalAlignment ```ts horizontalAlignment: HorizontalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:473](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L473) Gets or sets the alignment of this view within its parent along the Horizontal axis. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`horizontalAlignment`](GridLayout.md#horizontalalignment) *** ### id ```ts id: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the id for this view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`id`](GridLayout.md#id) *** ### ignoreTouchAnimation ```ts ignoreTouchAnimation: boolean; ``` Defined in: [ui/core/view/index.d.ts:647](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L647) #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`ignoreTouchAnimation`](GridLayout.md#ignoretouchanimation) *** ### ios ```ts ios: any; ``` Defined in: [ui/core/view/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L117) Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform. #### Inherited from [`GridLayout`](GridLayout.md).[`ios`](GridLayout.md#ios) *** ### iosAccessibilityAdjustsFontSize ```ts iosAccessibilityAdjustsFontSize: boolean; ``` Defined in: [ui/core/view/index.d.ts:329](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L329) Defines whether accessibility font scale should affect font size. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`iosAccessibilityAdjustsFontSize`](GridLayout.md#iosaccessibilityadjustsfontsize) *** ### iosAccessibilityMaxFontScale ```ts iosAccessibilityMaxFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:343](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L343) Gets or sets the maximum accessibility font scale. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`iosAccessibilityMaxFontScale`](GridLayout.md#iosaccessibilitymaxfontscale) *** ### iosAccessibilityMinFontScale ```ts iosAccessibilityMinFontScale: number; ``` Defined in: [ui/core/view/index.d.ts:336](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L336) Gets or sets the minimum accessibility font scale. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`iosAccessibilityMinFontScale`](GridLayout.md#iosaccessibilityminfontscale) *** ### iosGlassEffect ```ts iosGlassEffect: GlassEffectType; ``` Defined in: [ui/core/view/index.d.ts:634](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L634) Set the iOS liquid glass effect style on the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`iosGlassEffect`](GridLayout.md#iosglasseffect) *** ### iosIgnoreSafeArea ```ts iosIgnoreSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:613](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L613) Gets or sets a value indicating whether the the view should totally ignore safe areas computation. This property is iOS specific. Default value: false #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`iosIgnoreSafeArea`](GridLayout.md#iosignoresafearea) *** ### iosOverflowSafeArea ```ts iosOverflowSafeArea: boolean; ``` Defined in: [ui/core/view/index.d.ts:1130](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1130) Instruct container view to expand beyond the safe area. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`iosOverflowSafeArea`](GridLayout.md#iosoverflowsafearea) *** ### iosOverflowSafeAreaEnabled ```ts iosOverflowSafeAreaEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:606](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L606) Enables or disables the iosOverflowSafeArea property for all children. This property is iOS specific. Default value: true #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`iosOverflowSafeAreaEnabled`](GridLayout.md#iosoverflowsafeareaenabled) *** ### isCollapsed ```ts isCollapsed: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property #### Inherited from [`GridLayout`](GridLayout.md).[`isCollapsed`](GridLayout.md#iscollapsed) *** ### isEnabled ```ts isEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:585](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L585) Gets or sets a value indicating whether the the view is enabled. This affects the appearance of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`isEnabled`](GridLayout.md#isenabled) *** ### isLayoutValid ```ts isLayoutValid: boolean; ``` Defined in: [ui/core/view/index.d.ts:656](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L656) Gets if layout is valid. This is a read-only property. #### Inherited from [`GridLayout`](GridLayout.md).[`isLayoutValid`](GridLayout.md#islayoutvalid) *** ### isPassThroughParentEnabled ```ts isPassThroughParentEnabled: boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:115](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L115) 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. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`isPassThroughParentEnabled`](GridLayout.md#ispassthroughparentenabled) *** ### isUserInteractionEnabled ```ts isUserInteractionEnabled: boolean; ``` Defined in: [ui/core/view/index.d.ts:592](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L592) Gets or sets a value indicating whether the user can interact with the view. This does not affect the appearance of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`isUserInteractionEnabled`](GridLayout.md#isuserinteractionenabled) *** ### left ```ts left: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`left`](GridLayout.md#left) *** ### margin ```ts margin: | string | number | LengthDipUnit | LengthPxUnit | LengthPercentUnit; ``` Defined in: [ui/core/view/index.d.ts:438](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L438) Gets or sets margin style property. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`margin`](GridLayout.md#margin) *** ### marginBottom ```ts marginBottom: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:466](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L466) Specifies extra space on the bottom side of this view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`marginBottom`](GridLayout.md#marginbottom) *** ### marginLeft ```ts marginLeft: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:445](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L445) Specifies extra space on the left side of this view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`marginLeft`](GridLayout.md#marginleft) *** ### marginRight ```ts marginRight: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:459](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L459) Specifies extra space on the right side of this view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`marginRight`](GridLayout.md#marginright) *** ### marginTop ```ts marginTop: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:452](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L452) Specifies extra space on the top side of this view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`marginTop`](GridLayout.md#margintop) *** ### minHeight ```ts minHeight: LengthType; ``` Defined in: [ui/core/view/index.d.ts:417](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L417) Gets or sets the minimum height the view may grow to. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`minHeight`](GridLayout.md#minheight) *** ### minWidth ```ts minWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:410](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L410) Gets or sets the minimum width the view may grow to. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`minWidth`](GridLayout.md#minwidth) *** ### mIsRootView ```ts mIsRootView: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) if \_setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that \_addViewToNativeVisualTree is not called in \_setupAsRootView #### Inherited from [`GridLayout`](GridLayout.md).[`mIsRootView`](GridLayout.md#misrootview) *** ### modal ```ts modal: View; ``` Defined in: [ui/core/view/index.d.ts:848](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L848) Returns the current modal view that this page is showing (is parent of), if any. #### Inherited from [`GridLayout`](GridLayout.md).[`modal`](GridLayout.md#modal) *** ### nativeBackgroundState? ```ts optional nativeBackgroundState?: "unset" | "invalid" | "drawn"; ``` Defined in: [ui/core/view/index.d.ts:661](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L661) Native background states. This is a read-only property. #### Inherited from [`GridLayout`](GridLayout.md).[`nativeBackgroundState`](GridLayout.md#nativebackgroundstate) *** ### nativeViewProtected ```ts nativeViewProtected: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) read-only. If you want to set out-of-band the nativeView use the setNativeView method. #### Inherited from [`GridLayout`](GridLayout.md).[`nativeViewProtected`](GridLayout.md#nativeviewprotected) *** ### opacity ```ts opacity: number; ``` Defined in: [ui/core/view/index.d.ts:494](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L494) Gets or sets the opacity style property. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`opacity`](GridLayout.md#opacity) *** ### order ```ts order: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Sets the order in which child elements inside a Flex appear in relation to one another. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`order`](GridLayout.md#order) *** ### originX ```ts originX: number; ``` Defined in: [ui/core/view/index.d.ts:560](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L560) Gets or sets the X component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`originX`](GridLayout.md#originx) *** ### originY ```ts originY: number; ``` Defined in: [ui/core/view/index.d.ts:567](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L567) Gets or sets the Y component of the origin point around which the view will be transformed. The default value is 0.5 representing the center of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`originY`](GridLayout.md#originy) *** ### padding ```ts padding: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/layouts/layout-base.d.ts:71](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L71) Gets or sets padding style property. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`padding`](GridLayout.md#padding) *** ### paddingBottom ```ts paddingBottom: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:78](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L78) Specify the bottom padding of this layout. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`paddingBottom`](GridLayout.md#paddingbottom) *** ### paddingLeft ```ts paddingLeft: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:85](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L85) Specify the left padding of this layout. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`paddingLeft`](GridLayout.md#paddingleft) *** ### paddingRight ```ts paddingRight: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L92) Specify the right padding of this layout. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`paddingRight`](GridLayout.md#paddingright) *** ### paddingTop ```ts paddingTop: LengthType; ``` Defined in: [ui/layouts/layout-base.d.ts:99](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L99) Specify the top padding of this layout. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`paddingTop`](GridLayout.md#paddingtop) *** ### parent ```ts parent: ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the parent view. This property is read-only. #### Inherited from [`GridLayout`](GridLayout.md).[`parent`](GridLayout.md#parent) *** ### perspective ```ts perspective: number; ``` Defined in: [ui/core/view/index.d.ts:523](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L523) Gets or sets the distance of the camera form the view perspective. Usually needed when rotating the view over the X or Y axis. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`perspective`](GridLayout.md#perspective) *** ### recycleNativeView ```ts recycleNativeView: "auto" | "always" | "never"; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`recycleNativeView`](GridLayout.md#recyclenativeview) *** ### reusable ```ts reusable: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`reusable`](GridLayout.md#reusable) *** ### rotate ```ts rotate: number; ``` Defined in: [ui/core/view/index.d.ts:501](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L501) Gets or sets the rotate affine transform of the view along the Z axis. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`rotate`](GridLayout.md#rotate) *** ### rotateX ```ts rotateX: number; ``` Defined in: [ui/core/view/index.d.ts:508](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L508) Gets or sets the rotate affine transform of the view along the X axis. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`rotateX`](GridLayout.md#rotatex) *** ### rotateY ```ts rotateY: number; ``` Defined in: [ui/core/view/index.d.ts:515](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L515) Gets or sets the rotate affine transform of the view along the Y axis. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`rotateY`](GridLayout.md#rotatey) *** ### row ```ts row: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The row for the element. The rows are 0-indexed, so the first row is indicated by 0. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`row`](GridLayout.md#row) *** ### rows ```ts rows: string; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L59) A string value representing row heights delimited with commas. Valid values: an absolute number, auto, or \*: #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`rows`](GridLayout.md#rows) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The number of rows for the element to span across. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`rowSpan`](GridLayout.md#rowspan) *** ### scaleX ```ts scaleX: number; ``` Defined in: [ui/core/view/index.d.ts:544](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L544) Gets or sets the scaleX affine transform of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`scaleX`](GridLayout.md#scalex) *** ### scaleY ```ts scaleY: number; ``` Defined in: [ui/core/view/index.d.ts:551](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L551) Gets or sets the scaleY affine transform of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`scaleY`](GridLayout.md#scaley) *** ### sharedTransitionIgnore ```ts sharedTransitionIgnore: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Opt out of shared transition under different binding conditions #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`sharedTransitionIgnore`](GridLayout.md#sharedtransitionignore) *** ### sharedTransitionTag ```ts sharedTransitionTag: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the shared transition tag for animated view transitions #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`sharedTransitionTag`](GridLayout.md#sharedtransitiontag) *** ### statusBarStyle ```ts statusBarStyle: "dark" | "light"; ``` Defined in: [ui/core/view/index.d.ts:683](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L683) Gets or sets the status bar style for this view. Platform Notes: * Android: When using this property throughout navigations, ensure starting views have it set as well. Ensures it will reset on back navigation. * iOS: You must remove Info.plist key `UIViewControllerBasedStatusBarAppearance` It defaults to true when not present: https://developer.apple.com/documentation/bundleresources/information-property-list/uiviewcontrollerbasedstatusbarappearance Or you can explicitly set it to true: \UIViewControllerBasedStatusBarAppearance\ \ False value will make this property have no effect. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`statusBarStyle`](GridLayout.md#statusbarstyle) *** ### testID ```ts testID: string; ``` Defined in: [ui/core/view/index.d.ts:639](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L639) #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`testID`](GridLayout.md#testid) *** ### top ```ts top: LengthType; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`top`](GridLayout.md#top) *** ### touchAnimation ```ts touchAnimation: | boolean | TouchAnimationOptions; ``` Defined in: [ui/core/view/index.d.ts:643](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L643) #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`touchAnimation`](GridLayout.md#touchanimation) *** ### touchDelay ```ts touchDelay: number; ``` Defined in: [ui/core/view/index.d.ts:651](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L651) #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`touchDelay`](GridLayout.md#touchdelay) *** ### transitionId ```ts transitionId: number; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Active transition instance id for tracking state #### Inherited from [`GridLayout`](GridLayout.md).[`transitionId`](GridLayout.md#transitionid) *** ### translateX ```ts translateX: number; ``` Defined in: [ui/core/view/index.d.ts:530](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L530) Gets or sets the translateX affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`translateX`](GridLayout.md#translatex) *** ### translateY ```ts translateY: number; ``` Defined in: [ui/core/view/index.d.ts:537](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L537) Gets or sets the translateY affine transform of the view in device independent pixels. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`translateY`](GridLayout.md#translatey) *** ### verticalAlignment ```ts verticalAlignment: VerticalAlignmentType; ``` Defined in: [ui/core/view/index.d.ts:480](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L480) Gets or sets the alignment of this view within its parent along the Vertical axis. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`verticalAlignment`](GridLayout.md#verticalalignment) *** ### viewController ```ts viewController: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) returns the native UIViewController. #### Inherited from [`GridLayout`](GridLayout.md).[`viewController`](GridLayout.md#viewcontroller) *** ### visibility ```ts visibility: VisibilityType; ``` Defined in: [ui/core/view/index.d.ts:487](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L487) Gets or sets the visibility of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`visibility`](GridLayout.md#visibility) *** ### visionHoverStyle ```ts visionHoverStyle: string | VisionHoverOptions; ``` Defined in: [ui/core/view/index.d.ts:627](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L627) visionOS only #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`visionHoverStyle`](GridLayout.md#visionhoverstyle) *** ### visionIgnoreHoverStyle ```ts visionIgnoreHoverStyle: boolean; ``` Defined in: [ui/core/view/index.d.ts:620](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L620) visionOS only #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`visionIgnoreHoverStyle`](GridLayout.md#visionignorehoverstyle) *** ### width ```ts width: PercentLengthType; ``` Defined in: [ui/core/view/index.d.ts:424](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L424) Gets or sets the desired width of the view. #### Ns Property #### Inherited from [`GridLayout`](GridLayout.md).[`width`](GridLayout.md#width) *** ### accessibilityBlurEvent ```ts static accessibilityBlurEvent: string; ``` Defined in: [ui/core/view/index.d.ts:79](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L79) String value used when hooking to accessibilityBlur event. #### Ns Event accessibilityBlur #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityBlurEvent`](GridLayout.md#accessibilityblurevent) *** ### accessibilityFocusChangedEvent ```ts static accessibilityFocusChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:93](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L93) String value used when hooking to accessibilityFocusChanged event. #### Ns Event accessibilityFocusChanged #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityFocusChangedEvent`](GridLayout.md#accessibilityfocuschangedevent) *** ### accessibilityFocusEvent ```ts static accessibilityFocusEvent: string; ``` Defined in: [ui/core/view/index.d.ts:86](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L86) String value used when hooking to accessibilityFocus event. #### Ns Event accessibilityFocus #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityFocusEvent`](GridLayout.md#accessibilityfocusevent) *** ### accessibilityPerformEscapeEvent ```ts static accessibilityPerformEscapeEvent: string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityPerformEscapeEvent`](GridLayout.md#accessibilityperformescapeevent) *** ### androidOverflowInsetEvent ```ts static androidOverflowInsetEvent: string; ``` Defined in: [ui/core/view/index.d.ts:100](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L100) String value used when hooking to androidOverflowInset event. #### Ns Event androidOverflowInset #### Inherited from [`GridLayout`](GridLayout.md).[`androidOverflowInsetEvent`](GridLayout.md#androidoverflowinsetevent) *** ### createdEvent ```ts static createdEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to creation event #### Ns Event created #### Inherited from [`GridLayout`](GridLayout.md).[`createdEvent`](GridLayout.md#createdevent) *** ### disposeNativeViewEvent ```ts static disposeNativeViewEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to disposeNativeView event #### Ns Event disposeNativeView #### Inherited from [`GridLayout`](GridLayout.md).[`disposeNativeViewEvent`](GridLayout.md#disposenativeviewevent) *** ### layoutChangedEvent ```ts static layoutChangedEvent: string; ``` Defined in: [ui/core/view/index.d.ts:59](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L59) String value used when hooking to layoutChanged event. #### Ns Event layoutChanged #### Inherited from [`GridLayout`](GridLayout.md).[`layoutChangedEvent`](GridLayout.md#layoutchangedevent) *** ### loadedEvent ```ts static loadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to loaded event. #### Ns Event loaded #### Inherited from [`GridLayout`](GridLayout.md).[`loadedEvent`](GridLayout.md#loadedevent) *** ### propertyChangeEvent ```ts static propertyChangeEvent: string; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) String value used when hooking to propertyChange event. #### Ns Event propertyChange #### Inherited from [`GridLayout`](GridLayout.md).[`propertyChangeEvent`](GridLayout.md#propertychangeevent) *** ### showingModallyEvent ```ts static showingModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:65](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L65) String value used when hooking to showingModally event. #### Ns Event showingModally #### Inherited from [`GridLayout`](GridLayout.md).[`showingModallyEvent`](GridLayout.md#showingmodallyevent) *** ### shownModallyEvent ```ts static shownModallyEvent: string; ``` Defined in: [ui/core/view/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L72) String value used when hooking to shownModally event. #### Ns Event shownModally #### Inherited from [`GridLayout`](GridLayout.md).[`shownModallyEvent`](GridLayout.md#shownmodallyevent) *** ### unloadedEvent ```ts static unloadedEvent: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) String value used when hooking to unloaded event. #### Ns Event unloaded #### Inherited from [`GridLayout`](GridLayout.md).[`unloadedEvent`](GridLayout.md#unloadedevent) ## Accessors ### backgroundPosition #### Get Signature ```ts get backgroundPosition(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundPosition(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`backgroundPosition`](GridLayout.md#backgroundposition) *** ### backgroundRepeat #### Get Signature ```ts get backgroundRepeat(): BackgroundRepeatType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) #### Set Signature ```ts set backgroundRepeat(value: BackgroundRepeatType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`BackgroundRepeatType`](../namespaces/CoreTypes/type-aliases/BackgroundRepeatType.md) | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`backgroundRepeat`](GridLayout.md#backgroundrepeat) *** ### backgroundSize #### Get Signature ```ts get backgroundSize(): string; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns `string` #### Set Signature ```ts set backgroundSize(value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `string` | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`backgroundSize`](GridLayout.md#backgroundsize) *** ### class #### Get Signature ```ts get class(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `string` #### Set Signature ```ts set class(v: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `string` | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`class`](GridLayout.md#class) *** ### effectivePaddingBottom #### Get Signature ```ts get effectivePaddingBottom(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingBottom(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`effectivePaddingBottom`](GridLayout.md#effectivepaddingbottom) *** ### effectivePaddingLeft #### Get Signature ```ts get effectivePaddingLeft(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingLeft(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`effectivePaddingLeft`](GridLayout.md#effectivepaddingleft) *** ### effectivePaddingRight #### Get Signature ```ts get effectivePaddingRight(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingRight(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`effectivePaddingRight`](GridLayout.md#effectivepaddingright) *** ### effectivePaddingTop #### Get Signature ```ts get effectivePaddingTop(): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `number` #### Set Signature ```ts set effectivePaddingTop(v: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `v` | `number` | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`effectivePaddingTop`](GridLayout.md#effectivepaddingtop) *** ### isLoaded #### Get Signature ```ts get isLoaded(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `boolean` #### Inherited from [`GridLayout`](GridLayout.md).[`isLoaded`](GridLayout.md#isloaded) *** ### nativeView #### Get Signature ```ts get nativeView(): any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Returns `any` #### Set Signature ```ts set nativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`nativeView`](GridLayout.md#nativeview) *** ### page #### Get Signature ```ts get page(): Page; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets owner page. This is a read-only property. ##### Returns [`Page`](Page.md) #### Inherited from [`GridLayout`](GridLayout.md).[`page`](GridLayout.md#page) *** ### parentNode #### Get Signature ```ts get parentNode(): ViewBase; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the template parent or the native parent. Sets the template parent. ##### Returns [`ViewBase`](ViewBase.md) #### Set Signature ```ts set parentNode(node: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `node` | [`ViewBase`](ViewBase.md) | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`parentNode`](GridLayout.md#parentnode) *** ### style #### Get Signature ```ts get style(): Style; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the style object associated to this view. ##### Returns [`Style`](Style.md) #### Set Signature ```ts set style(inlineStyle: Style): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Ns Property ##### Parameters | Parameter | Type | | ------ | ------ | | `inlineStyle` | [`Style`](Style.md) | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`style`](GridLayout.md#style) *** ### textTransform #### Get Signature ```ts get textTransform(): TextTransformType; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Returns [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) #### Set Signature ```ts set textTransform(value: TextTransformType): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) ##### Parameters | Parameter | Type | | ------ | ------ | | `value` | [`TextTransformType`](../namespaces/CoreTypes/type-aliases/TextTransformType.md) | ##### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`textTransform`](GridLayout.md#texttransform) *** ### typeName #### Get Signature ```ts get typeName(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button". ##### Returns `string` #### Inherited from [`GridLayout`](GridLayout.md).[`typeName`](GridLayout.md#typename) *** ### visualState #### Get Signature ```ts get visualState(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) ##### Deprecated ##### Returns `string` #### Inherited from [`GridLayout`](GridLayout.md).[`visualState`](GridLayout.md#visualstate) ## Methods ### \_addView() ```ts _addView(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_addView`](GridLayout.md#addview) *** ### \_addViewCore() ```ts _addViewCore(view: ViewBase, atIndex?: number): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_addViewCore`](GridLayout.md#addviewcore) *** ### \_addViewToNativeVisualTree() ```ts _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected". #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | | `atIndex?` | `number` | #### Returns `boolean` #### Inherited from [`GridLayout`](GridLayout.md).[`_addViewToNativeVisualTree`](GridLayout.md#addviewtonativevisualtree) *** ### \_applyGlassEffect() ```ts protected _applyGlassEffect(value: GlassEffectType, options: { effectType: "glass" | "container"; onCreate?: (effectView: UIVisualEffectView, effect: UIVisualEffect) => void; onUpdate?: (effectView: UIVisualEffectView, effect: UIVisualEffect, duration: number) => void; targetView?: UIVisualEffectView; toGlassStyleFn?: (variant?: GlassEffectVariant) => number; }): any; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shared helper method for applying glass effects to views. This method can be used by View and its subclasses (LiquidGlass, LiquidGlassContainer, etc.) iOS only at the moment but could be applied to others once supported in other platforms. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | [`GlassEffectType`](../type-aliases/GlassEffectType.md) | The glass effect configuration | | `options` | { `effectType`: `"glass"` | `"container"`; `onCreate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void`; `onUpdate?`: (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void`; `targetView?`: `UIVisualEffectView`; `toGlassStyleFn?`: (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number`; } | Configuration options for different glass effect behaviors | | `options.effectType` | `"glass"` | `"container"` | Type of effect to create: 'glass' | 'container' | | `options.onCreate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`) => `void` | Callback when a new effect view is created (for initial setup) | | `options.onUpdate?` | (`effectView`: `UIVisualEffectView`, `effect`: `UIVisualEffect`, `duration`: `number`) => `void` | Callback when an existing effect view is updated | | `options.targetView?` | `UIVisualEffectView` | The UIVisualEffectView to apply the effect to (if updating existing view) | | `options.toGlassStyleFn?` | (`variant?`: [`GlassEffectVariant`](../type-aliases/GlassEffectVariant.md)) => `number` | Custom function to convert variant to UIGlassEffectStyle | #### Returns `any` #### Inherited from [`GridLayout`](GridLayout.md).[`_applyGlassEffect`](GridLayout.md#applyglasseffect) *** ### ~~\_applyXmlAttribute()~~ ```ts _applyXmlAttribute(attribute: string, value: string): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `attribute` | `string` | | `value` | `string` | #### Returns `boolean` #### Deprecated This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances. #### Inherited from [`GridLayout`](GridLayout.md).[`_applyXmlAttribute`](GridLayout.md#applyxmlattribute) *** ### \_batchUpdate() ```ts _batchUpdate(callback: () => T): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Allow multiple updates to be performed on the instance at once. #### Type Parameters | Type Parameter | | ------ | | `T` | #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | () => `T` | #### Returns `T` #### Inherited from [`GridLayout`](GridLayout.md).[`_batchUpdate`](GridLayout.md#batchupdate) *** ### \_childIndexToNativeChildIndex() ```ts _childIndexToNativeChildIndex(index?: number): number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `index?` | `number` | #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`_childIndexToNativeChildIndex`](GridLayout.md#childindextonativechildindex) *** ### \_closeAllModalViewsInternal() ```ts _closeAllModalViewsInternal(): boolean; ``` Defined in: [ui/core/view/index.d.ts:924](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L924) Internal method: Closes all modal views. Should be used by plugins like `nativescript-angular` which implement their own `modal views` service. #### Returns `boolean` #### Inherited from [`GridLayout`](GridLayout.md).[`_closeAllModalViewsInternal`](GridLayout.md#closeallmodalviewsinternal) *** ### \_createPropertyChangeData() ```ts _createPropertyChangeData( propertyName: string, value: any, oldValue?: any): PropertyChangeData; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) This method is intended to be overriden by inheritors to provide additional implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `propertyName` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns [`PropertyChangeData`](../interfaces/PropertyChangeData.md) #### Inherited from [`GridLayout`](GridLayout.md).[`_createPropertyChangeData`](GridLayout.md#createpropertychangedata) *** ### \_dialogClosed() ```ts _dialogClosed(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_dialogClosed`](GridLayout.md#dialogclosed) *** ### \_eachLayoutView() ```ts _eachLayoutView(callback: (View: any) => void): void; ``` Defined in: [ui/core/view/index.d.ts:932](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L932) #### Parameters | Parameter | Type | | ------ | ------ | | `callback` | (`View`: `any`) => `void` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_eachLayoutView`](GridLayout.md#eachlayoutview) *** ### \_emit() ```ts _emit(eventName: string): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_emit`](GridLayout.md#emit) *** ### \_getNativeViewsCount() ```ts _getNativeViewsCount(): number; ``` Defined in: [ui/core/view/index.d.ts:918](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L918) #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`_getNativeViewsCount`](GridLayout.md#getnativeviewscount) *** ### \_getRootModalViews() ```ts _getRootModalViews(): ViewBase[]; ``` Defined in: [ui/core/view/index.d.ts:930](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L930) Internal method: Gets all modal views of the current view. #### Returns [`ViewBase`](ViewBase.md)\[] #### Inherited from [`GridLayout`](GridLayout.md).[`_getRootModalViews`](GridLayout.md#getrootmodalviews) *** ### \_getValue() ```ts _getValue(property: any): never; ``` Defined in: [ui/core/view/index.d.ts:1113](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1113) **Obsolete:** There is a new property system that does not rely on \_getValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | #### Returns `never` #### Inherited from [`GridLayout`](GridLayout.md).[`_getValue`](GridLayout.md#getvalue) *** ### \_handleLivesync() ```ts _handleLivesync(context?: { path: string; type: string; }): boolean; ``` Defined in: [ui/core/view/index.d.ts:1084](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1084) #### Parameters | Parameter | Type | | ------ | ------ | | `context?` | { `path`: `string`; `type`: `string`; } | | `context.path?` | `string` | | `context.type?` | `string` | #### Returns `boolean` #### Inherited from [`GridLayout`](GridLayout.md).[`_handleLivesync`](GridLayout.md#handlelivesync) *** ### \_hasAncestorView() ```ts _hasAncestorView(ancestorView: View): boolean; ``` Defined in: [ui/core/view/index.d.ts:1107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1107) Checks whether the current view has specific view for an ancestor. #### Parameters | Parameter | Type | | ------ | ------ | | `ancestorView` | [`View`](View.md) | #### Returns `boolean` #### Inherited from [`GridLayout`](GridLayout.md).[`_hasAncestorView`](GridLayout.md#hasancestorview) *** ### \_hideNativeModalView() ```ts protected _hideNativeModalView(parent: ViewCommon, whenClosedCallback: () => void): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `whenClosedCallback` | () => `void` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_hideNativeModalView`](GridLayout.md#hidenativemodalview) *** ### \_inheritStyles() ```ts _inheritStyles(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_inheritStyles`](GridLayout.md#inheritstyles) *** ### \_inheritStyleScope() ```ts _inheritStyleScope(styleScope: StyleScope): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `styleScope` | `StyleScope` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_inheritStyleScope`](GridLayout.md#inheritstylescope) *** ### \_layoutParent() ```ts _layoutParent(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_layoutParent`](GridLayout.md#layoutparent) *** ### \_observe() ```ts protected _observe( type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | | `callback` | (`args`: [`GestureEventData`](../interfaces/GestureEventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_observe`](GridLayout.md#observe) *** ### \_onAttachedToWindow() ```ts _onAttachedToWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1097](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1097) Called in android when native view is attached to window. #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_onAttachedToWindow`](GridLayout.md#onattachedtowindow) *** ### \_onDetachedFromWindow() ```ts _onDetachedFromWindow(): void; ``` Defined in: [ui/core/view/index.d.ts:1102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1102) Called in android when native view is dettached from window. #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_onDetachedFromWindow`](GridLayout.md#ondetachedfromwindow) *** ### \_onRootViewReset() ```ts _onRootViewReset(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_onRootViewReset`](GridLayout.md#onrootviewreset) *** ### \_onSizeChanged()? ```ts optional _onSizeChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:937](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L937) iOS Only Internal method used to update various view details like background rerendering, border, etc. #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_onSizeChanged`](GridLayout.md#onsizechanged) *** ### \_parentChanged() ```ts _parentChanged(oldParent: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `oldParent` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_parentChanged`](GridLayout.md#parentchanged) *** ### \_raiseLayoutChangedEvent() ```ts protected _raiseLayoutChangedEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_raiseLayoutChangedEvent`](GridLayout.md#raiselayoutchangedevent) *** ### \_raiseShowingModallyEvent() ```ts protected _raiseShowingModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_raiseShowingModallyEvent`](GridLayout.md#raiseshowingmodallyevent) *** ### \_raiseShownModallyEvent() ```ts protected _raiseShownModallyEvent(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_raiseShownModallyEvent`](GridLayout.md#raiseshownmodallyevent) *** ### \_registerLayoutChild() ```ts _registerLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:53](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L53) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_registerLayoutChild`](GridLayout.md#registerlayoutchild) *** ### \_removeView() ```ts _removeView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_removeView`](GridLayout.md#removeview) *** ### \_removeViewCore() ```ts _removeViewCore(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_removeViewCore`](GridLayout.md#removeviewcore) *** ### \_removeViewFromNativeVisualTree() ```ts _removeViewFromNativeVisualTree(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Method is intended to be overridden by inheritors and used as "protected" #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_removeViewFromNativeVisualTree`](GridLayout.md#removeviewfromnativevisualtree) *** ### \_resumeNativeUpdates() ```ts _resumeNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_resumeNativeUpdates`](GridLayout.md#resumenativeupdates) *** ### \_setDefaultPaddings() ```ts _setDefaultPaddings(insets: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `insets` | `any` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_setDefaultPaddings`](GridLayout.md#setdefaultpaddings) *** ### \_setupAsRootView() ```ts _setupAsRootView(context: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_setupAsRootView`](GridLayout.md#setupasrootview) *** ### \_setupUI() ```ts _setupUI( context: any, atIndex?: number, parentIsLoaded?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Setups the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `context` | `any` | | `atIndex?` | `number` | | `parentIsLoaded?` | `boolean` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_setupUI`](GridLayout.md#setupui) *** ### \_setValue() ```ts _setValue(property: any, value: any): never; ``` Defined in: [ui/core/view/index.d.ts:1118](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1118) **Obsolete:** There is a new property system that does not rely on \_setValue. #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `any` | | `value` | `any` | #### Returns `never` #### Inherited from [`GridLayout`](GridLayout.md).[`_setValue`](GridLayout.md#setvalue) *** ### \_shouldDelayLayout() ```ts _shouldDelayLayout(): boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected" #### Returns `boolean` #### Inherited from [`GridLayout`](GridLayout.md).[`_shouldDelayLayout`](GridLayout.md#shoulddelaylayout) *** ### \_showNativeModalView() ```ts protected _showNativeModalView(parent: ViewCommon, options: ShowModalOptions): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `parent` | `ViewCommon` | | `options` | [`ShowModalOptions`](../interfaces/ShowModalOptions.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_showNativeModalView`](GridLayout.md#shownativemodalview) *** ### \_suspendNativeUpdates() ```ts _suspendNativeUpdates(type: SuspendType): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | `SuspendType` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_suspendNativeUpdates`](GridLayout.md#suspendnativeupdates) *** ### \_tearDownUI() ```ts _tearDownUI(force?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI for ViewBase and all its children recursively. This method should *not* be overridden by derived views. #### Parameters | Parameter | Type | | ------ | ------ | | `force?` | `boolean` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_tearDownUI`](GridLayout.md#teardownui) *** ### \_unregisterLayoutChild() ```ts _unregisterLayoutChild(child: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:58](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L58) INTERNAL. Used by the layout system. #### Parameters | Parameter | Type | | ------ | ------ | | `child` | [`View`](View.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_unregisterLayoutChild`](GridLayout.md#unregisterlayoutchild) *** ### \_updateStyleScope() ```ts _updateStyleScope( cssFileName?: string, cssString?: string, css?: string): void; ``` Defined in: [ui/core/view/index.d.ts:1092](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L1092) Updates styleScope or create new styleScope. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `cssFileName?` | `string` | - | | `cssString?` | `string` | - | | `css?` | `string` | - | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`_updateStyleScope`](GridLayout.md#updatestylescope) *** ### accessibilityAnnouncement() ```ts accessibilityAnnouncement(msg?: string): void; ``` Defined in: [ui/core/view/index.d.ts:972](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L972) Make an announcement to the screen reader. #### Parameters | Parameter | Type | | ------ | ------ | | `msg?` | `string` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityAnnouncement`](GridLayout.md#accessibilityannouncement) *** ### accessibilityScreenChanged() ```ts accessibilityScreenChanged(): void; ``` Defined in: [ui/core/view/index.d.ts:977](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L977) Announce screen changed #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`accessibilityScreenChanged`](GridLayout.md#accessibilityscreenchanged) *** ### addChild() ```ts addChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:30](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L30) Adds the view to children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to be added to the end of the children array. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`addChild`](GridLayout.md#addchild) *** ### addChildAtCell() ```ts addChildAtCell( view: View, row: number, column: number, rowSpan?: number, columnSpan?: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:122](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L122) Adds a child at specific cell in GridLayout. Optional rowSpan and columnSpan attributes #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `row` | `number` | | `column` | `number` | | `rowSpan?` | `number` | | `columnSpan?` | `number` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`addChildAtCell`](GridLayout.md#addchildatcell) *** ### addColumn() ```ts addColumn(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:112](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L112) Adds a column specification to a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`addColumn`](GridLayout.md#addcolumn) *** ### addEventListener() ```ts addEventListener( eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Adds a listener for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | A function to be called when some of the specified event(s) is raised. | | `thisArg?` | `any` | An optional parameter which when set will be used as "this" in callback method call. | | `once?` | `boolean` | An optional parameter which when set will cause the event listener to fire once. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`addEventListener`](GridLayout.md#addeventlistener) *** ### addPseudoClass() ```ts protected addPseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to add a matching css pseudo class. #### Inherited from [`GridLayout`](GridLayout.md).[`addPseudoClass`](GridLayout.md#addpseudoclass) *** ### addRow() ```ts addRow(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:117](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L117) Adds a row specification to a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`addRow`](GridLayout.md#addrow) *** ### animate() ```ts animate(options: AnimationDefinition): AnimationPromise; ``` Defined in: [ui/core/view/index.d.ts:853](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L853) Animates one or more properties of the view based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`AnimationPromise`](../type-aliases/AnimationPromise.md) #### Inherited from [`GridLayout`](GridLayout.md).[`animate`](GridLayout.md#animate) *** ### bind() ```ts bind(options: BindingOptions, source?: Object): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`BindingOptions`](../interfaces/BindingOptions.md) | | `source?` | `Object` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`bind`](GridLayout.md#bind) *** ### bringToFront() ```ts bringToFront(view: View, animated?: boolean): Promise; ``` Defined in: [ui/layouts/root-layout/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/root-layout/index.d.ts#L11) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `animated?` | `boolean` | #### Returns `Promise`<`void`> *** ### callLoaded() ```ts callLoaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`callLoaded`](GridLayout.md#callloaded) *** ### callUnloaded() ```ts callUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`callUnloaded`](GridLayout.md#callunloaded) *** ### close() ```ts close(view: View, exitTo?: TransitionAnimation): Promise; ``` Defined in: [ui/layouts/root-layout/index.d.ts:9](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/root-layout/index.d.ts#L9) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `exitTo?` | `TransitionAnimation` | #### Returns `Promise`<`void`> *** ### closeAll() ```ts closeAll(): Promise; ``` Defined in: [ui/layouts/root-layout/index.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/root-layout/index.d.ts#L12) #### Returns `Promise`<`void`\[]> *** ### closeModal() ```ts closeModal(...args: any[]): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Closes the current modal view that this page is showing. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`closeModal`](GridLayout.md#closemodal) *** ### closeShadeCover() ```ts closeShadeCover(shadeCoverOptions?: ShadeCoverOptions): Promise; ``` Defined in: [ui/layouts/root-layout/index.d.ts:15](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/root-layout/index.d.ts#L15) #### Parameters | Parameter | Type | | ------ | ------ | | `shadeCoverOptions` | [`ShadeCoverOptions`](../interfaces/ShadeCoverOptions.md) | #### Returns `Promise`<`void`> *** ### createAnimation() ```ts createAnimation(options: AnimationDefinition): Animation; ``` Defined in: [ui/core/view/index.d.ts:858](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L858) Creates an Animation object based on the supplied options. #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AnimationDefinition` | #### Returns [`Animation`](Animation.md) #### Inherited from [`GridLayout`](GridLayout.md).[`createAnimation`](GridLayout.md#createanimation) *** ### createNativeView() ```ts createNativeView(): Object; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Creates a native view. Returns either android.view.View or UIView. #### Returns `Object` #### Inherited from [`GridLayout`](GridLayout.md).[`createNativeView`](GridLayout.md#createnativeview) *** ### deletePseudoClass() ```ts protected deletePseudoClass(name: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `void` #### Unstable A widget can call this method to discard matching css pseudo class. #### Inherited from [`GridLayout`](GridLayout.md).[`deletePseudoClass`](GridLayout.md#deletepseudoclass) *** ### destroyNode() ```ts destroyNode(forceDestroyChildren?: boolean): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Tears down the UI of a reusable node by making it no longer reusable. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `forceDestroyChildren?` | `boolean` | Force destroy the children (even if they are reusable) | #### Returns `void` #### See \_tearDownUI #### Inherited from [`GridLayout`](GridLayout.md).[`destroyNode`](GridLayout.md#destroynode) *** ### disposeNativeView() ```ts disposeNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Clean up references to the native view. #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`disposeNativeView`](GridLayout.md#disposenativeview) *** ### eachChild() ```ts eachChild(callback: (child: ViewBase) => boolean): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Iterates over children of type ViewBase. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`ViewBase`](ViewBase.md)) => `boolean` | Called for each child of type ViewBase. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`eachChild`](GridLayout.md#eachchild) *** ### eachChildView() ```ts eachChildView(callback: (view: View) => boolean): void; ``` Defined in: [ui/core/view/index.d.ts:953](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L953) Iterates over children of type View. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`view`: [`View`](View.md)) => `boolean` | Called for each child of type View. Iteration stops if this method returns falsy value. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`eachChildView`](GridLayout.md#eachchildview) *** ### eachLayoutChild() ```ts eachLayoutChild(callback: (child: View, isLast: boolean) => void): void; ``` Defined in: [ui/layouts/layout-base.d.ts:64](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L64) Calls the callback for each child that should be laid out. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `callback` | (`child`: [`View`](View.md), `isLast`: `boolean`) => `void` | The callback | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`eachLayoutChild`](GridLayout.md#eachlayoutchild) *** ### ensureDomNode() ```ts ensureDomNode(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Unstable Ensures a dom-node for this view. #### Inherited from [`GridLayout`](GridLayout.md).[`ensureDomNode`](GridLayout.md#ensuredomnode) *** ### focus() ```ts focus(): boolean; ``` Defined in: [ui/core/view/index.d.ts:787](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L787) Tries to focus the view. Returns a value indicating whether this view or one of its descendants actually took focus. #### Returns `boolean` #### Inherited from [`GridLayout`](GridLayout.md).[`focus`](GridLayout.md#focus) *** ### get() ```ts get(name: string): any; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Gets the value of the specified property. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns `any` #### Inherited from [`GridLayout`](GridLayout.md).[`get`](GridLayout.md#get) *** ### getActualSize() ```ts getActualSize(): Size; ``` Defined in: [ui/core/view/index.d.ts:883](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L883) Returns the actual size of the view in device-independent pixels. #### Returns [`Size`](../interfaces/Size.md) #### Inherited from [`GridLayout`](GridLayout.md).[`getActualSize`](GridLayout.md#getactualsize) *** ### getChildAt() ```ts getChildAt(index: number): View; ``` Defined in: [ui/layouts/layout-base.d.ts:18](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L18) Returns the view at the specified position. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `index` | `number` | The position at which to get the child from. | #### Returns [`View`](View.md) #### Inherited from [`GridLayout`](GridLayout.md).[`getChildAt`](GridLayout.md#getchildat) *** ### getChildIndex() ```ts getChildIndex(child: View): number; ``` Defined in: [ui/layouts/layout-base.d.ts:24](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L24) Returns the position of the child view #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | The child view that we are looking for. | #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`getChildIndex`](GridLayout.md#getchildindex) *** ### getChildrenCount() ```ts getChildrenCount(): number; ``` Defined in: [ui/layouts/layout-base.d.ts:12](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L12) Returns the number of children in this Layout. #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`getChildrenCount`](GridLayout.md#getchildrencount) *** ### getClosestWindow() ```ts getClosestWindow(): Window; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) (Android only) Gets closest window parent considering modals. #### Returns `Window` #### Inherited from [`GridLayout`](GridLayout.md).[`getClosestWindow`](GridLayout.md#getclosestwindow) *** ### getColumns() ```ts getColumns(): ItemSpec[]; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:147](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L147) Gets array of column specifications defined on this instance of GridLayout. #### Returns [`ItemSpec`](ItemSpec.md)\[] #### Inherited from [`GridLayout`](GridLayout.md).[`getColumns`](GridLayout.md#getcolumns) *** ### getEffectivePaddingShorthand() ```ts getEffectivePaddingShorthand(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `string` #### Inherited from [`GridLayout`](GridLayout.md).[`getEffectivePaddingShorthand`](GridLayout.md#geteffectivepaddingshorthand) *** ### getGestureObservers() ```ts getGestureObservers(type: GestureTypes): GesturesObserver[]; ``` Defined in: [ui/core/view/index.d.ts:789](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L789) #### Parameters | Parameter | Type | | ------ | ------ | | `type` | [`GestureTypes`](../enumerations/GestureTypes.md) | #### Returns [`GesturesObserver`](GesturesObserver.md)\[] #### Inherited from [`GridLayout`](GridLayout.md).[`getGestureObservers`](GridLayout.md#getgestureobservers) *** ### getLocationInWindow() ```ts getLocationInWindow(): Point; ``` Defined in: [ui/core/view/index.d.ts:868](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L868) Returns the location of this view in the window coordinate system. #### Returns `Point` #### Inherited from [`GridLayout`](GridLayout.md).[`getLocationInWindow`](GridLayout.md#getlocationinwindow) *** ### getLocationOnScreen() ```ts getLocationOnScreen(): Point; ``` Defined in: [ui/core/view/index.d.ts:873](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L873) Returns the location of this view in the screen coordinate system. #### Returns `Point` #### Inherited from [`GridLayout`](GridLayout.md).[`getLocationOnScreen`](GridLayout.md#getlocationonscreen) *** ### getLocationRelativeTo() ```ts getLocationRelativeTo(otherView: View): Point; ``` Defined in: [ui/core/view/index.d.ts:878](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L878) Returns the location of this view in the otherView's coordinate system. #### Parameters | Parameter | Type | | ------ | ------ | | `otherView` | [`View`](View.md) | #### Returns `Point` #### Inherited from [`GridLayout`](GridLayout.md).[`getLocationRelativeTo`](GridLayout.md#getlocationrelativeto) *** ### getMeasuredHeight() ```ts getMeasuredHeight(): number; ``` Defined in: [ui/core/view/index.d.ts:715](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L715) Returns the raw height component. #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`getMeasuredHeight`](GridLayout.md#getmeasuredheight) *** ### getMeasuredState() ```ts getMeasuredState(): number; ``` Defined in: [ui/core/view/index.d.ts:717](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L717) #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`getMeasuredState`](GridLayout.md#getmeasuredstate) *** ### getMeasuredWidth() ```ts getMeasuredWidth(): number; ``` Defined in: [ui/core/view/index.d.ts:710](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L710) Returns the raw width component. #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`getMeasuredWidth`](GridLayout.md#getmeasuredwidth) *** ### getRows() ```ts getRows(): ItemSpec[]; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L152) Gets array of row specifications defined on this instance of GridLayout. #### Returns [`ItemSpec`](ItemSpec.md)\[] #### Inherited from [`GridLayout`](GridLayout.md).[`getRows`](GridLayout.md#getrows) *** ### getSafeAreaInsets() ```ts getSafeAreaInsets(): Position; ``` Defined in: [ui/core/view/index.d.ts:863](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L863) Returns the iOS safe area insets of this view. #### Returns `Position` #### Inherited from [`GridLayout`](GridLayout.md).[`getSafeAreaInsets`](GridLayout.md#getsafeareainsets) *** ### getShadeCover() ```ts getShadeCover(): View; ``` Defined in: [ui/layouts/root-layout/index.d.ts:13](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/root-layout/index.d.ts#L13) #### Returns [`View`](View.md) *** ### getViewByDomId() ```ts getViewByDomId(domId: number): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified domId. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `domId` | `number` | #### Returns `T` #### Inherited from [`GridLayout`](GridLayout.md).[`getViewByDomId`](GridLayout.md#getviewbydomid) *** ### getViewById() ```ts getViewById(id: string): T; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns the child view with the specified id. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* [`ViewBase`](ViewBase.md) | #### Parameters | Parameter | Type | | ------ | ------ | | `id` | `string` | #### Returns `T` #### Inherited from [`GridLayout`](GridLayout.md).[`getViewById`](GridLayout.md#getviewbyid) *** ### hasGestureObservers()? ```ts optional hasGestureObservers(): boolean; ``` Defined in: [ui/core/view/index.d.ts:942](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L942) Android only check if gesture observers are attached #### Returns `boolean` #### Inherited from [`GridLayout`](GridLayout.md).[`hasGestureObservers`](GridLayout.md#hasgestureobservers) *** ### hasListeners() ```ts hasListeners(eventName: string): boolean; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Checks whether a listener is registered for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event to check for. | #### Returns `boolean` #### Inherited from [`GridLayout`](GridLayout.md).[`hasListeners`](GridLayout.md#haslisteners) *** ### initNativeView() ```ts initNativeView(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Initializes properties/listeners of the native view. #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`initNativeView`](GridLayout.md#initnativeview) *** ### insertChild() ```ts insertChild(child: View, atIndex: number): boolean; ``` Defined in: [ui/layouts/layout-base.d.ts:37](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L37) Inserts the view to children array at the specified index. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `child` | [`View`](View.md) | - | | `atIndex` | `number` | The insertion index. | #### Returns `boolean` #### Inherited from [`GridLayout`](GridLayout.md).[`insertChild`](GridLayout.md#insertchild) *** ### layout() ```ts layout( left: number, top: number, right: number, bottom: number, setFrame?: boolean): void; ``` Defined in: [ui/core/view/index.d.ts:705](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L705) Assign a size and position to a view and all of its descendants This is the second phase of the layout mechanism. (The first is measuring). In this phase, each parent calls layout on all of its children to position them. This is typically done using the child measurements that were stored in the measure pass(). Derived classes should not override this method. Derived classes with children should override onLayout. In that method, they should call layout on each of their children. #### Parameters | Parameter | Type | | ------ | ------ | | `left` | `number` | | `top` | `number` | | `right` | `number` | | `bottom` | `number` | | `setFrame?` | `boolean` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`layout`](GridLayout.md#layout) *** ### layoutNativeView() ```ts layoutNativeView( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:750](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L750) Called from onLayout when native view position is about to be changed. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`layoutNativeView`](GridLayout.md#layoutnativeview) *** ### loadView() ```ts loadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Load view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to load. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`loadView`](GridLayout.md#loadview) *** ### measure() ```ts measure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:694](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L694) This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters. The actual measurement work of a view is performed in onMeasure(int, int), called by this method. Therefore, only onMeasure(int, int) can and must be overridden by subclasses. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | Horizontal space requirements as imposed by the parent | | `heightMeasureSpec` | `number` | Vertical space requirements as imposed by the parent | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`measure`](GridLayout.md#measure) *** ### notify() ```ts notify(data: T): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class. #### Type Parameters | Type Parameter | | ------ | | `T` *extends* `Optional`<[`EventData`](../interfaces/EventData.md), `"object"`> | #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `T` | an object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`notify`](GridLayout.md#notify) *** ### notifyPropertyChange() ```ts notifyPropertyChange( name: string, value: any, oldValue?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Notifies all the registered listeners for the property change event. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | | `oldValue?` | `any` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`notifyPropertyChange`](GridLayout.md#notifypropertychange) *** ### off() ```ts off( eventName: string, callback?: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:800](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L800) Removes the listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback?` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional specific event listener to remove (if omitted, all event listeners by this name will be removed). | | `thisArg?` | `any` | An optional parameter which, when set, will be used to refine search of the correct event listener to be removed. | #### Returns `any` #### Inherited from [`GridLayout`](GridLayout.md).[`off`](GridLayout.md#off) *** ### on() #### Call Signature ```ts on( eventName: string, callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:812](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L812) Adds a listener for the specified event name. ##### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | ##### Returns `any` ##### Inherited from [`GridLayout`](GridLayout.md).[`on`](GridLayout.md#on) #### Call Signature ```ts on( event: "loaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:817](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L817) Raised when a loaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"loaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`GridLayout`](GridLayout.md).[`on`](GridLayout.md#on) #### Call Signature ```ts on( event: "unloaded", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:822](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L822) Raised when an unloaded event occurs. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"unloaded"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`GridLayout`](GridLayout.md).[`on`](GridLayout.md#on) #### Call Signature ```ts on( event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:828](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L828) Raised when a back button is pressed. This event is raised only for android. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidBackPressed"` | | `callback` | (`args`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`GridLayout`](GridLayout.md).[`on`](GridLayout.md#on) #### Call Signature ```ts on( event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/index.d.ts:833](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L833) Raised before the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"showingModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `void` ##### Inherited from [`GridLayout`](GridLayout.md).[`on`](GridLayout.md#on) #### Call Signature ```ts on( event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:838](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L838) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"shownModally"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`GridLayout`](GridLayout.md).[`on`](GridLayout.md#on) #### Call Signature ```ts on( event: "androidOverflowInset", callback: (args: ShownModallyData) => void, thisArg?: any): any; ``` Defined in: [ui/core/view/index.d.ts:843](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L843) Raised after the view is shown as a modal dialog. ##### Parameters | Parameter | Type | | ------ | ------ | | `event` | `"androidOverflowInset"` | | `callback` | (`args`: [`ShownModallyData`](../interfaces/ShownModallyData.md)) => `void` | | `thisArg?` | `any` | ##### Returns `any` ##### Inherited from [`GridLayout`](GridLayout.md).[`on`](GridLayout.md#on) *** ### onBackPressed() ```ts onBackPressed(): boolean; ``` Defined in: [ui/core/view/index.d.ts:888](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L888) Derived classes can override this method to handle Android back button press. #### Returns `boolean` #### Inherited from [`GridLayout`](GridLayout.md).[`onBackPressed`](GridLayout.md#onbackpressed) *** ### once() ```ts once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Adds a listener for the specified event name, which, once fired, will remove itself. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventName` | `string` | The name of the event. | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | The event listener to add. Will be called when an event of the given name is raised. | | `thisArg?` | `any` | An optional parameter which, when set, will be bound as the `this` context when the callback is called. Falsy values will be not be bound. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`once`](GridLayout.md#once) *** ### onLayout() ```ts onLayout( left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:734](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L734) Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`onLayout`](GridLayout.md#onlayout) *** ### onLoaded() ```ts onLoaded(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`onLoaded`](GridLayout.md#onloaded) *** ### onMeasure() ```ts onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; ``` Defined in: [ui/core/view/index.d.ts:725](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L725) Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overriden by subclasses to provide accurate and efficient measurement of their contents. When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an exception, thrown by measure(int, int). #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `widthMeasureSpec` | `number` | horizontal space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | | `heightMeasureSpec` | `number` | vertical space requirements as imposed by the parent. The requirements are encoded with View.MeasureSpec. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`onMeasure`](GridLayout.md#onmeasure) *** ### onResumeNativeUpdates() ```ts onResumeNativeUpdates(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`onResumeNativeUpdates`](GridLayout.md#onresumenativeupdates) *** ### onUnloaded() ```ts onUnloaded(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`onUnloaded`](GridLayout.md#onunloaded) *** ### open() ```ts open(view: View, options?: RootLayoutOptions): Promise; ``` Defined in: [ui/layouts/root-layout/index.d.ts:8](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/root-layout/index.d.ts#L8) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `options` | [`RootLayoutOptions`](../interfaces/RootLayoutOptions.md) | #### Returns `Promise`<`void`> *** ### openShadeCover() ```ts openShadeCover(options?: ShadeCoverOptions): Promise; ``` Defined in: [ui/layouts/root-layout/index.d.ts:14](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/root-layout/index.d.ts#L14) #### Parameters | Parameter | Type | | ------ | ------ | | `options` | [`ShadeCoverOptions`](../interfaces/ShadeCoverOptions.md) | #### Returns `Promise`<`void`> *** ### removeChild() ```ts removeChild(view: View): void; ``` Defined in: [ui/layouts/layout-base.d.ts:43](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L43) Removes the specified view from the children array. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`View`](View.md) | The view to remove from the children array. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`removeChild`](GridLayout.md#removechild) *** ### removeChildren() ```ts removeChildren(): void; ``` Defined in: [ui/layouts/layout-base.d.ts:48](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/layout-base.d.ts#L48) Removes all views in this layout. #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`removeChildren`](GridLayout.md#removechildren) *** ### removeColumn() ```ts removeColumn(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:127](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L127) Removes a column specification from a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`removeColumn`](GridLayout.md#removecolumn) *** ### removeColumns() ```ts removeColumns(): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:132](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L132) Removes all column specifications from a GridLayout. #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`removeColumns`](GridLayout.md#removecolumns) *** ### removeEventListener() ```ts removeEventListener( eventNames: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Removes listener(s) for the specified event name. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `eventNames` | `string` | - | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | An optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed. | | `thisArg?` | `any` | An optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`removeEventListener`](GridLayout.md#removeeventlistener) *** ### removeRow() ```ts removeRow(itemSpec: ItemSpec): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:137](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L137) Removes a row specification from a GridLayout. #### Parameters | Parameter | Type | | ------ | ------ | | `itemSpec` | [`ItemSpec`](ItemSpec.md) | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`removeRow`](GridLayout.md#removerow) *** ### removeRows() ```ts removeRows(): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:142](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L142) Removes all row specifications from a GridLayout. #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`removeRows`](GridLayout.md#removerows) *** ### requestLayout() ```ts requestLayout(): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Invalidates the layout of the view and triggers a new layout pass. #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`requestLayout`](GridLayout.md#requestlayout) *** ### resetNativeView() ```ts resetNativeView(): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Resets properties/listeners set to the native view. #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`resetNativeView`](GridLayout.md#resetnativeview) *** ### sendAccessibilityEvent() ```ts sendAccessibilityEvent(options: AccessibilityEventOptions): void; ``` Defined in: [ui/core/view/index.d.ts:967](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L967) Send accessibility event #### Parameters | Parameter | Type | | ------ | ------ | | `options` | `AccessibilityEventOptions` | #### Returns `void` #### Params options AccessibilityEventOptions androidAccessibilityEvent: AndroidAccessibilityEvent; iosNotificationType: IOSPostAccessibilityNotificationType; message: string; iOS Notes: type = 'announcement' will announce `args` via VoiceOver. If no args element will be announced instead. type = 'layout' used when the layout of a screen changes. type = 'screen' large change made to the screen. #### Inherited from [`GridLayout`](GridLayout.md).[`sendAccessibilityEvent`](GridLayout.md#sendaccessibilityevent) *** ### set() ```ts set(name: string, value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Updates the specified property with the provided value. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`set`](GridLayout.md#set) *** ### setAccessibilityIdentifier() ```ts setAccessibilityIdentifier(view: any, value: string): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `view` | `any` | | `value` | `string` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`setAccessibilityIdentifier`](GridLayout.md#setaccessibilityidentifier) *** ### setInlineStyle() ```ts setInlineStyle(style: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `style` | `string` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`setInlineStyle`](GridLayout.md#setinlinestyle) *** ### setMeasuredDimension() ```ts setMeasuredDimension(measuredWidth: number, measuredHeight: number): void; ``` Defined in: [ui/core/view/index.d.ts:741](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L741) This method must be called by onMeasure(int, int) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `measuredWidth` | `number` | The measured width of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | | `measuredHeight` | `number` | The measured height of this view. May be a complex bit mask as defined by MEASURED\_SIZE\_MASK and MEASURED\_STATE\_TOO\_SMALL. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`setMeasuredDimension`](GridLayout.md#setmeasureddimension) *** ### setNativeView() ```ts setNativeView(value: any): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items. #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `any` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`setNativeView`](GridLayout.md#setnativeview) *** ### setOnTouchListener()? ```ts optional setOnTouchListener(): void; ``` Defined in: [ui/core/view/index.d.ts:947](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L947) Android only to set the touch listener #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`setOnTouchListener`](GridLayout.md#setontouchlistener) *** ### setProperty() ```ts setProperty(name: string, value: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name. #### Parameters | Parameter | Type | | ------ | ------ | | `name` | `string` | | `value` | `any` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`setProperty`](GridLayout.md#setproperty) *** ### showModal() ```ts showModal(...args: any[]): View; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) Shows the view passed as parameter as a modal view. #### Parameters | Parameter | Type | | ------ | ------ | | ...`args` | `any`\[] | #### Returns [`View`](View.md) #### Inherited from [`GridLayout`](GridLayout.md).[`showModal`](GridLayout.md#showmodal) *** ### topmost() ```ts topmost(): View; ``` Defined in: [ui/layouts/root-layout/index.d.ts:10](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/root-layout/index.d.ts#L10) #### Returns [`View`](View.md) *** ### toString() ```ts toString(): string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Returns a string representation of an object. #### Returns `string` #### Inherited from [`GridLayout`](GridLayout.md).[`toString`](GridLayout.md#tostring) *** ### unbind() ```ts unbind(property: string): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `property` | `string` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`unbind`](GridLayout.md#unbind) *** ### unloadView() ```ts unloadView(view: ViewBase): void; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Unload view. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `view` | [`ViewBase`](ViewBase.md) | to unload. | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`unloadView`](GridLayout.md#unloadview) *** ### updateStatusBarStyle() ```ts updateStatusBarStyle(value: "dark" | "light"): void; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Parameters | Parameter | Type | | ------ | ------ | | `value` | `"dark"` | `"light"` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`updateStatusBarStyle`](GridLayout.md#updatestatusbarstyle) *** ### ~~addEventListener()~~ ```ts static addEventListener( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`GridLayout`](GridLayout.md).[`addEventListener`](GridLayout.md#addeventlistener-1) *** ### combineMeasuredStates() ```ts static combineMeasuredStates(curState: number, newState: any): number; ``` Defined in: [ui/core/view/index.d.ts:781](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L781) #### Parameters | Parameter | Type | | ------ | ------ | | `curState` | `number` | | `newState` | `any` | #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`combineMeasuredStates`](GridLayout.md#combinemeasuredstates) *** ### getColumn() ```ts static getColumn(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:72](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L72) Gets the value of the Column attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`getColumn`](GridLayout.md#getcolumn) *** ### getColumnSpan() ```ts static getColumnSpan(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:82](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L82) Gets the value of the ColumnSpan attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`getColumnSpan`](GridLayout.md#getcolumnspan) *** ### getRow() ```ts static getRow(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:92](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L92) Gets the value of the Row attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`getRow`](GridLayout.md#getrow) *** ### getRowSpan() ```ts static getRowSpan(view: View): number; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:102](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L102) Gets the value of the RowSpan attached property from a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`getRowSpan`](GridLayout.md#getrowspan) *** ### layoutChild() ```ts static layoutChild( parent: View, child: View, left: number, top: number, right: number, bottom: number): void; ``` Defined in: [ui/core/view/index.d.ts:769](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L769) Layout a child by taking into account its margins, horizontal and vertical alignments and a given bounds. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | - | | `left` | `number` | Left position, relative to parent | | `top` | `number` | Top position, relative to parent | | `right` | `number` | Right position, relative to parent | | `bottom` | `number` | Bottom position, relative to parent | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`layoutChild`](GridLayout.md#layoutchild) *** ### measureChild() ```ts static measureChild( parent: View, child: View, widthMeasureSpec: number, heightMeasureSpec: number): { measuredHeight: number; measuredWidth: number; }; ``` Defined in: [ui/core/view/index.d.ts:759](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L759) Measure a child by taking into account its margins and a given measureSpecs. #### Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `parent` | [`View`](View.md) | This parameter is not used. You can pass null. | | `child` | [`View`](View.md) | The view to be measured. | | `widthMeasureSpec` | `number` | - | | `heightMeasureSpec` | `number` | - | #### Returns ```ts { measuredHeight: number; measuredWidth: number; } ``` ##### measuredHeight ```ts measuredHeight: number; ``` ##### measuredWidth ```ts measuredWidth: number; ``` #### Inherited from [`GridLayout`](GridLayout.md).[`measureChild`](GridLayout.md#measurechild) *** ### ~~off()~~ ```ts static off( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`GridLayout`](GridLayout.md).[`off`](GridLayout.md#off-1) *** ### ~~on()~~ ```ts static on( eventName: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | | `once?` | `boolean` | #### Returns `void` #### Deprecated #### Inherited from [`GridLayout`](GridLayout.md).[`on`](GridLayout.md#on-1) *** ### ~~once()~~ ```ts static once( eventName: string, callback: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`GridLayout`](GridLayout.md).[`once`](GridLayout.md#once-1) *** ### ~~removeEventListener()~~ ```ts static removeEventListener( eventName: string, callback?: (data: EventData) => void, thisArg?: any): void; ``` Defined in: [data/observable/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/data/observable/index.ts) Please avoid using the static event-handling APIs as they will be removed in future. #### Parameters | Parameter | Type | | ------ | ------ | | `eventName` | `string` | | `callback?` | (`data`: [`EventData`](../interfaces/EventData.md)) => `void` | | `thisArg?` | `any` | #### Returns `void` #### Deprecated #### Inherited from [`GridLayout`](GridLayout.md).[`removeEventListener`](GridLayout.md#removeeventlistener-1) *** ### resolveSizeAndState() ```ts static resolveSizeAndState( size: number, specSize: number, specMode: number, childMeasuredState: number): number; ``` Defined in: [ui/core/view/index.d.ts:779](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L779) Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the MEASURED\_SIZE\_MASK bits and optionally the bit MEASURED\_STATE\_TOO\_SMALL set if the resulting size is smaller than the size the view wants to be. #### Parameters | Parameter | Type | | ------ | ------ | | `size` | `number` | | `specSize` | `number` | | `specMode` | `number` | | `childMeasuredState` | `number` | #### Returns `number` #### Inherited from [`GridLayout`](GridLayout.md).[`resolveSizeAndState`](GridLayout.md#resolvesizeandstate) *** ### setColumn() ```ts static setColumn(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:77](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L77) Sets the value of the Column attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`setColumn`](GridLayout.md#setcolumn) *** ### setColumnSpan() ```ts static setColumnSpan(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:87](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L87) Sets the value of the ColumnSpan attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`setColumnSpan`](GridLayout.md#setcolumnspan) *** ### setRow() ```ts static setRow(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:97](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L97) Sets the value of the Row attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`setRow`](GridLayout.md#setrow) *** ### setRowSpan() ```ts static setRowSpan(view: View, value: number): void; ``` Defined in: [ui/layouts/grid-layout/index.d.ts:107](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/layouts/grid-layout/index.d.ts#L107) Sets the value of the RowSpan attached property to a given View. #### Parameters | Parameter | Type | | ------ | ------ | | `view` | [`View`](View.md) | | `value` | `number` | #### Returns `void` #### Inherited from [`GridLayout`](GridLayout.md).[`setRowSpan`](GridLayout.md#setrowspan) --- --- url: 'https://docs.nativescript.org/api/classes/Screen.md' description: An object describing general information about a display. --- Defined in: [platform/screen/index.d.ts:41](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/platform/screen/index.d.ts#L41) An object describing general information about a display. ## Constructors ### Constructor ```ts new Screen(): Screen; ``` #### Returns `Screen` ## Properties ### mainScreen ```ts static mainScreen: ScreenMetrics; ``` Defined in: [platform/screen/index.d.ts:45](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/platform/screen/index.d.ts#L45) Gets information about the main screen of the current device. --- --- url: 'https://docs.nativescript.org/api/classes/ScrollView.md' description: >- Represents a scrollable area that can have content that is larger than its bounds. --- Defined in: [ui/scroll-view/index.d.ts:11](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/scroll-view/index.d.ts#L11) Represents a scrollable area that can have content that is larger than its bounds. ## Ns View ScrollView ## Extends * [`ContentView`](ContentView.md) ## Constructors ### Constructor ```ts new ScrollView(): ScrollView; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Returns `ScrollView` #### Inherited from [`ContentView`](ContentView.md).[`constructor`](ContentView.md#constructor) ## Properties ### \_androidContentDescriptionUpdated? ```ts optional _androidContentDescriptionUpdated?: boolean; ``` Defined in: [ui/core/view/index.d.ts:348](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L348) Internal use only. This is used to limit the number of updates to android.view.View.setContentDescription() #### Inherited from [`ContentView`](ContentView.md).[`_androidContentDescriptionUpdated`](ContentView.md#androidcontentdescriptionupdated) *** ### \_automaticallyAdjustsScrollViewInsets ```ts _automaticallyAdjustsScrollViewInsets: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_automaticallyAdjustsScrollViewInsets`](ContentView.md#automaticallyadjustsscrollviewinsets) *** ### \_closeModalCallback ```ts protected _closeModalCallback: Function; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`ContentView`](ContentView.md).[`_closeModalCallback`](ContentView.md#closemodalcallback) *** ### \_context ```ts _context: any; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_context`](ContentView.md#context) *** ### \_cssState ```ts _cssState: CssState; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_cssState`](ContentView.md#cssstate) *** ### \_defaultPaddingBottom ```ts protected _defaultPaddingBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_defaultPaddingBottom`](ContentView.md#defaultpaddingbottom) *** ### \_defaultPaddingLeft ```ts protected _defaultPaddingLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_defaultPaddingLeft`](ContentView.md#defaultpaddingleft) *** ### \_defaultPaddingRight ```ts protected _defaultPaddingRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_defaultPaddingRight`](ContentView.md#defaultpaddingright) *** ### \_defaultPaddingTop ```ts protected _defaultPaddingTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_defaultPaddingTop`](ContentView.md#defaultpaddingtop) *** ### \_domId ```ts _domId: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_domId`](ContentView.md#domid) *** ### \_ignoreFlexMinWidthHeightReset ```ts _ignoreFlexMinWidthHeightReset: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_ignoreFlexMinWidthHeightReset`](ContentView.md#ignoreflexminwidthheightreset) *** ### \_isAddedToNativeVisualTree ```ts _isAddedToNativeVisualTree: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_isAddedToNativeVisualTree`](ContentView.md#isaddedtonativevisualtree) *** ### \_isPaddingRelative ```ts protected _isPaddingRelative: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_isPaddingRelative`](ContentView.md#ispaddingrelative) *** ### \_isStyleScopeHost ```ts _isStyleScopeHost: boolean; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_isStyleScopeHost`](ContentView.md#isstylescopehost) *** ### \_oldBottom ```ts _oldBottom: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_oldBottom`](ContentView.md#oldbottom) *** ### \_oldLeft ```ts _oldLeft: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_oldLeft`](ContentView.md#oldleft) *** ### \_oldRight ```ts _oldRight: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_oldRight`](ContentView.md#oldright) *** ### \_oldTop ```ts _oldTop: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_oldTop`](ContentView.md#oldtop) *** ### \_styleScope ```ts _styleScope: StyleScope; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) #### Inherited from [`ContentView`](ContentView.md).[`_styleScope`](ContentView.md#stylescope) *** ### \_suspendNativeUpdatesCount ```ts _suspendNativeUpdatesCount: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the \_batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree. #### Inherited from [`ContentView`](ContentView.md).[`_suspendNativeUpdatesCount`](ContentView.md#suspendnativeupdatescount) *** ### accessibilityHidden ```ts accessibilityHidden: boolean; ``` Defined in: [ui/core/view/index.d.ts:250](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L250) Hide the view and its children from the a11y service #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityHidden`](ContentView.md#accessibilityhidden) *** ### accessibilityHint ```ts accessibilityHint: string; ``` Defined in: [ui/core/view/index.d.ts:295](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L295) A hint describes the elements behavior. Example: 'Tap change playback speed' #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityHint`](ContentView.md#accessibilityhint) *** ### accessibilityIdentifier ```ts accessibilityIdentifier: string; ``` Defined in: [ui/core/view/index.d.ts:259](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L259) The view's unique accessibilityIdentifier. This is used for automated testing. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityIdentifier`](ContentView.md#accessibilityidentifier) *** ### accessibilityIgnoresInvertColors ```ts accessibilityIgnoresInvertColors: boolean; ``` Defined in: [ui/core/view/index.d.ts:322](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L322) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityIgnoresInvertColors`](ContentView.md#accessibilityignoresinvertcolors) *** ### accessibilityLabel ```ts accessibilityLabel: string; ``` Defined in: [ui/core/view/index.d.ts:281](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L281) Short description of the element, ideally one word. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityLabel`](ContentView.md#accessibilitylabel) *** ### accessibilityLanguage ```ts accessibilityLanguage: string; ``` Defined in: [ui/core/view/index.d.ts:310](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L310) Sets the language in which to speak the element's label and value. Accepts language ID tags that follows the "BCP 47" specification. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityLanguage`](ContentView.md#accessibilitylanguage) *** ### accessibilityLiveRegion ```ts accessibilityLiveRegion: AccessibilityLiveRegion; ``` Defined in: [ui/core/view/index.d.ts:302](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L302) When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityLiveRegion`](ContentView.md#accessibilityliveregion) *** ### accessibilityMediaSession ```ts accessibilityMediaSession: boolean; ``` Defined in: [ui/core/view/index.d.ts:317](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L317) This view starts a media session. Equivalent to trait = startsMedia #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityMediaSession`](ContentView.md#accessibilitymediasession) *** ### accessibilityRole ```ts accessibilityRole: AccessibilityRole; ``` Defined in: [ui/core/view/index.d.ts:266](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L266) Which role should this view be treated by the a11y service? #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityRole`](ContentView.md#accessibilityrole) *** ### accessibilityState ```ts accessibilityState: AccessibilityState; ``` Defined in: [ui/core/view/index.d.ts:274](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L274) Which state should this view be treated as by the a11y service? #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityState`](ContentView.md#accessibilitystate) *** ### accessibilityValue ```ts accessibilityValue: string; ``` Defined in: [ui/core/view/index.d.ts:288](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L288) Current value of the element in a localized string. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessibilityValue`](ContentView.md#accessibilityvalue) *** ### accessible ```ts accessible: boolean; ``` Defined in: [ui/core/view/index.d.ts:243](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L243) If `true` the element is an accessibility element and all the children will be treated as a single selectable component. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`accessible`](ContentView.md#accessible) *** ### alignSelf ```ts alignSelf: AlignSelf; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) (Android-only) Overrides the alignItems value for the child. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`alignSelf`](ContentView.md#alignself) *** ### android ```ts android: any; ``` Defined in: [ui/core/view/index.d.ts:111](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L111) Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform. #### Inherited from [`ContentView`](ContentView.md).[`android`](ContentView.md#android) *** ### androidDynamicElevationOffset ```ts androidDynamicElevationOffset: number; ``` Defined in: [ui/core/view/index.d.ts:368](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L368) Gets or sets the dynamic elevation offset of the android view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`androidDynamicElevationOffset`](ContentView.md#androiddynamicelevationoffset) *** ### androidElevation ```ts androidElevation: number; ``` Defined in: [ui/core/view/index.d.ts:361](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L361) Gets or sets the elevation of the android view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`androidElevation`](ContentView.md#androidelevation) *** ### androidOverflowEdge ```ts androidOverflowEdge: AndroidOverflow; ``` Defined in: [ui/core/view/view-common.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/view-common.ts) #### Inherited from [`ContentView`](ContentView.md).[`androidOverflowEdge`](ContentView.md#androidoverflowedge) *** ### automationText ```ts automationText: string; ``` Defined in: [ui/core/view/index.d.ts:354](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L354) #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`automationText`](ContentView.md#automationtext) *** ### background ```ts background: string; ``` Defined in: [ui/core/view/index.d.ts:375](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L375) Gets or sets the background style property. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`background`](ContentView.md#background) *** ### backgroundColor ```ts backgroundColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:382](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L382) Gets or sets the background color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`backgroundColor`](ContentView.md#backgroundcolor) *** ### backgroundImage ```ts backgroundImage: string | LinearGradient; ``` Defined in: [ui/core/view/index.d.ts:389](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L389) Gets or sets the background image of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`backgroundImage`](ContentView.md#backgroundimage) *** ### bindingContext ```ts bindingContext: any; ``` Defined in: [ui/core/view/index.d.ts:124](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L124) Gets or sets the binding context of this instance. This object is used as a source for each Binding that does not have a source object specified. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`bindingContext`](ContentView.md#bindingcontext) *** ### borderBottomColor ```ts borderBottomColor: Color; ``` Defined in: [ui/core/view/index.d.ts:152](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L152) Gets or sets the bottom border color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderBottomColor`](ContentView.md#borderbottomcolor) *** ### borderBottomLeftRadius ```ts borderBottomLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:229](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L229) Gets or sets the bottom left border radius of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderBottomLeftRadius`](ContentView.md#borderbottomleftradius) *** ### borderBottomRightRadius ```ts borderBottomRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:222](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L222) Gets or sets the bottom right border radius of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderBottomRightRadius`](ContentView.md#borderbottomrightradius) *** ### borderBottomWidth ```ts borderBottomWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:187](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L187) Gets or sets the bottom border width of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderBottomWidth`](ContentView.md#borderbottomwidth) *** ### borderColor ```ts borderColor: string | Color; ``` Defined in: [ui/core/view/index.d.ts:131](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L131) Gets or sets the border color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderColor`](ContentView.md#bordercolor) *** ### borderLeftColor ```ts borderLeftColor: Color; ``` Defined in: [ui/core/view/index.d.ts:159](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L159) Gets or sets the left border color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderLeftColor`](ContentView.md#borderleftcolor) *** ### borderLeftWidth ```ts borderLeftWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:194](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L194) Gets or sets the left border width of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderLeftWidth`](ContentView.md#borderleftwidth) *** ### borderRadius ```ts borderRadius: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:201](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L201) Gets or sets the border radius of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderRadius`](ContentView.md#borderradius) *** ### borderRightColor ```ts borderRightColor: Color; ``` Defined in: [ui/core/view/index.d.ts:145](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L145) Gets or sets the right border color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderRightColor`](ContentView.md#borderrightcolor) *** ### borderRightWidth ```ts borderRightWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:180](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L180) Gets or sets the right border width of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderRightWidth`](ContentView.md#borderrightwidth) *** ### borderTopColor ```ts borderTopColor: Color; ``` Defined in: [ui/core/view/index.d.ts:138](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L138) Gets or sets the top border color of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderTopColor`](ContentView.md#bordertopcolor) *** ### borderTopLeftRadius ```ts borderTopLeftRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:208](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L208) Gets or sets the top left border radius of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderTopLeftRadius`](ContentView.md#bordertopleftradius) *** ### borderTopRightRadius ```ts borderTopRightRadius: LengthType; ``` Defined in: [ui/core/view/index.d.ts:215](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L215) Gets or sets the top right border radius of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderTopRightRadius`](ContentView.md#bordertoprightradius) *** ### borderTopWidth ```ts borderTopWidth: LengthType; ``` Defined in: [ui/core/view/index.d.ts:173](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L173) Gets or sets the top border width of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderTopWidth`](ContentView.md#bordertopwidth) *** ### borderWidth ```ts borderWidth: | string | number | LengthDipUnit | LengthPxUnit; ``` Defined in: [ui/core/view/index.d.ts:166](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L166) Gets or sets the border width of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`borderWidth`](ContentView.md#borderwidth) *** ### boxShadow ```ts boxShadow: string | ShadowCSSValues[]; ``` Defined in: [ui/core/view/index.d.ts:396](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L396) Gets or sets the box shadow of the view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`boxShadow`](ContentView.md#boxshadow) *** ### className ```ts className: string; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) Gets or sets the CSS class name for this view. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`className`](ContentView.md#classname) *** ### col ```ts col: number; ``` Defined in: [ui/core/view-base/index.ts](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view-base/index.ts) The column for the element. The columns are 0-indexed, so the first column is indicated by 0. #### Ns Property #### Inherited from [`ContentView`](ContentView.md).[`col`](ContentView.md#col) *** ### color ```ts color: Color; ``` Defined in: [ui/core/view/index.d.ts:236](https://github.com/NativeScript/NativeScript/blob/9.0.20-core/packages/core/ui/core/view/index.d.ts#L236) Gets or sets the color of the view. #### Ns Property #### Inherited f